-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pure-FTPd doesn't work with FFmpeg #129
Comments
@bachya |
@shadow-1 Awesome, worked great – thank you. Until a more official mechanism is put into the UI, for anyone stumbling on this:
|
@bachya
|
@ilshatms Not quite; it should look like this: if [[ $(get_config FTPD) == "yes" ]] ; then
tcpsvd -vE 0.0.0.0 21 ftpd -w &
fi |
Hi guys. I get invalid directory listing. Any idea what is wrong and why I cannot connect after making the change? Thanks. |
I correct line code... with tcpsvd -vE 0.0.0.0 21 ftpd -w & ...but unsuccesful Error starting FFmpeg. |
@vpomax I'm also getting this issue! |
I managed to get the camera running!
Now I face a different issue! the frame rate is just awful, 1 frame every ~3 minutes. |
That's correct. It updates via FTP every few minutes. The live feed option is wip apparently! Maybe! |
@DeanNotDin , same issue here. It tooks an eternity to update and sometimes freezes. :/ |
HTTP 550 means "Permission Denied", so I would guess that the username and password you're using to access the camera aren't valid. |
thanks for the info. the password is correct, is the same i use for ssh e telnet. this is my configuration in the file configuration.yaml...is correct? camera:
|
Hmm, that does look correct. Can you FTP directly into the camera using those credentials? |
yes, in ftp it's ok (no tls) |
same issue... [homeassistant.components.camera.yi] Error while fetching video: Waiting for ('2xx',) but got 550 [' Error'] |
Wait, so HomeAssistant aside, is there a way to retrieve a video with at least around 20 fps? |
So, i've changed the ftpd line in config, rebooted camera (from webui), changed password and here's what I get now when i try
OR
UPD: I've found that it stores a video file each minute, and it has a tmp.mp4.tmp file which is presumably what it's using to write it before saving it. But is there any way of viewing this unfinished file? Otherwise videos can only be shown with 1 minute delay at best. UPD2: Checked HomeAssistant's code, yes, it just finds latest saved mp4 video and grabs last frame of it. Essentially making it so it can only update it 1 frame per minute. |
The super long delay caused by using this method with HA makes it nearly useless from my point of view. I don't want to see video from X minutes ago, I want to see live video, that's the only reason to have the camera showing in HA dashboard. |
@Evanlec You're right. It is not HA's issue though, it's this firmware's issue. You can't really read unclosed mp4 h264 stream, and camera only saves it once a minute. And there's no 'current frame' file there, not that I could find. If this firmware at least implemented that, saving current frame into a file at least at around 5 fps that would already be a huge achievement. That's why I'm ordering another wifi camera. And actually considering building one of my own on Raspberry Pi Zero W and even adding some temp, humidity and light sensors to it to make it the smartest and yet cheapest baby monitor lol. Nothing like that on the market really. As for this - well, even 1 image a minute is still better than nothing, and may find it's use in HA or otherwise. Could at least be used for timelapses :D |
Where and how do I access this file? I've FTP'ed my camera's and I've tried accessing them through telnet but I'm unable to locate the files. |
@ajdezigns If using Telnet, you will need to edit the file using |
I've made the changes to one Yi 1080p Home Cam and two Yi 1080p Dome Cam's but I'm getting the following errors in home assistant Log Details (ERROR) I'm unsure how to get it to work. I've added my Code from my config below as you can see I've tried different ways on each cam but all provide the same error.
Oh, additionally one of the cameras I have a 2GB SD card installed to see if perhaps it required one for me to access the stream. |
I have 2 yi dome 720 and sometimes I get the same error but only for a camera |
What does your settings look like? |
This Is my config:
The second One Is the camera with problem |
Do you have a sd card in either or cam? |
any clue how to fix this? it's so frustrating... |
Hi @Aiace88, Thank you very much
|
@marcogazzola Thank you very much! |
NOTE: If you are trying to disable Pure-FTPd as mentioned in the issue shadow-1/yi-hack-v3#129 (comment) you can enable this option instead of manually editing the system.sh file.
Hi everybody, I've changed Any ideas to solve that? thanks |
I know I was the one to originally suggest Pure-FTPd... 😄
My original use case is to use FFmpeg to render videos from the SD card via commands that look like this:
...which, with the latest firmware version, gives a
moov atom not found
error. Info is hard to come by, but it seems like Pure-FTPd may produce content that FFmpeg can't parse.No clue how you can help this; you've done the right thing. Wondering if there'd be some way to toggle between Pure-FTPd and ftpd?
The text was updated successfully, but these errors were encountered: