-
Notifications
You must be signed in to change notification settings - Fork 34
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
FFmpeg issues and windows directory. #9
Comments
Hey @kaytek , Can u check logs for differences between ffmpeg commands posted by Also make sure you have installed all ffmpeg dependencies. You can set custom config in For your absolute path issue, i dont have a windows machine to test it but can you try absolute path like |
I would also appreciate if you can help me test |
Also having the same issue on macOS 10.14.2. When using normal homebridge-camera-ffmpeg plugin, I can get the stream to load fine. When using just homebridge-dafang, I get '[Dafang] ERROR: FFmpeg exited with code 1' All other functions appear to work fine. |
Hey @tarbychark , Can u share logs for differences between ffmpeg commands posted by homebridge-camera-ffmpeg & homebridge-dafang ? Make sure to enable debug flag in |
Hey @sahilchaddha , Here is when running the camera from the Dafang plugin: [2018-12-10 17:23:53] [Dafang] Snapshot from Kitchen Camera at 480x270 From Camera-FFmpeg after I switched the config: [2018-12-10 17:24:39] [Camera-ffmpeg] Snapshot from Kitchen Cam at 480x270 Let me know if there are any other logs you’d like. |
Hi @tarbychark , These are just basic logs, for command output u will need to enable To enable debug on homebridge-dafang :
For camera-ffmpeg
The debug key needs to be set true in order to print command logs. |
hey @sahilchaddha , Sorry about that. Here are some logs with debug enabled for Dafang: [2018-12-11 13:42:49] [Dafang] Snapshot from Kitchen Camera at 480x270 Here is just Camera-ffmpeg with debug enabled: [2018-12-11 13:44:10] [Camera-ffmpeg] Snapshot from Kitchen Cam at 480x270 libavutil 56. 22.100 / 56. 22.100 [mp3float @ 0x7fb4a2813000] Header missing Input #0, rtsp, from 'rtsp://10.0.1.44:8554/unicast':
Duration: N/A, start: -0.182522, bitrate: N/A
Stream mapping: frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A [libx264 @ 0x7fb4a2834a00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 0x7fb4a2834a00] profile High, level 3.1 Output #0, rtp, to 'srtp://10.0.1.22:61056?rtcpport=61056&localrtcpport=61056&pkt_size=1316':
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 200000 vbv_delay: -1 frame= 17 fps= 17 q=34.0 size= 15kB time=00:00:00.64 bitrate= 188.8kbits/s dup=12 drop=0 speed=0.638x [rtsp @ 0x7fb4a2803a00] max delay reached. need to consume packet [h264 @ 0x7fb4a2891800] Increasing reorder buffer to 10 [2018-12-11 13:44:18] [Dafang] Snapshot from Kitchen Camera at 480x270 [libx264 @ 0x7fb4a2834a00] frame I:1 Avg QP:45.25 size: 3994 [libx264 @ 0x7fb4a2834a00] 8x8 transform intra:63.9% inter:79.3% Exiting normally, received signal 15. [2018-12-11 13:44:19] [Camera-ffmpeg] Stopped streaming Hope this helps. Thanks! |
Hey @tarbychark , Thanks for the logs. I will check them once i get little free time. Meanwhile can you also share your config.json for both the plugins ? |
Hey @sahilchaddha , Here’s the Dafang config: { Here’s the Camera-FFmpeg config: { Thanks for looking into it! |
Hey @tarbychark , Can you try this attached config ?
Looks like you are missing audio codecs for ffmpeg. If it works meaning you need to install ffmpeg dependencies for your audio codec. Keep us updated. And do share the logs. |
Hey @sahilchaddha , Thanks for all of your prompt responses. Which audio codecs should I be installing for macOS? I’d be happy to test the video config both with the audio codecs installed and with audio disabled when I get out of work later today. Thanks! |
Usually Dafang hacks stream with |
also looking for help with this. |
@myusuf3 , Try setting audio to false as stated in #9 (comment). Do share the logs with debug enabled. |
@sahilchaddha I installed ffme library
|
Any news on this? I have the same issue it seems. When pulling up the Home app, I can see the current snapshot, but tapping on the video then only shows a still image, no video. My logs on my server show ffmpeg exiting with error code 1 as well. I'm using an OptiPlex 3020 as a server, so it's not exactly under-powered. |
Hey @joemulray, As i can see from the logs. Looks like audio is still enabled. Command still provides audio codec to ffmpeg.
@enz1ey Make sure all ffmpeg dependencies are installed. You will also need to enable h264 and aac codecs in ffmpeg. Each OS has different commands for that. To self-debug try running the ffmpeg command printed in logs manually. You will be able to see the exact error more clearly. You can also try reinstalling ffmpeg. Refer to Required ffmpeg Codecs :
You can google how to install ffmpeg with libx264 and libfdk_aac according to your OS. e.g. Kindly provide :
|
@joemulray Try running this command manually
This ffmpeg command will throw the real error. It will also display missing dependencies |
{ |
Seems to be an issue with ffmpeg with missing packages, im working on a snippet that would solve this issue ill post it on here if im able to resolve everything |
kaytek Use the homebridge-ffmpeg plugin to stream the stream and my configuration, and leave this plugin for the camera control. In this case, everything is perfect without streaming the stream. |
Okay this is what I did to get it working from this same issue.
This did the trick for me solved this issue I was seeing
let me know if that helped |
I'm on a pi and am experiencing the same issues. I compiled with aac and mp3 just in case, using this: EDIT: EDIT 2: |
@gamer106 can you please provide the steps you took to recompile ffmpeg to solve this issue 👍 |
Hi all,
Currently trying to transition my setup of my hacked Xiaofang from using homebridge-ffmpeg to this as it allows for much better control of the camera, but I've run into a few issues.
At the moment whenever I try and stream from the camera the console will always spit out a FFmpeg exited with code 1 and the stream will fail to load. I haven't had this issue with homebridge-ffmpeg, so I'm not too sure where I've gone wrong. I've attached the config down below.
Here is the full error:
Another issue is that I'm not too sure how to translate a windows directory to absolute path to save the recordings. Currently I've just glossed over it and had something random but obviously I can't save anything.
My homebridge setup is currently running on our media PC which runs on windows 10, so any help would be greatly appreciated!
The text was updated successfully, but these errors were encountered: