Closed jwebbstevens closed 4 years ago
FWIW I'm happy to document over on the Wiki here or over on the repo homebridge-camera-ffmpeg/wiki the full setup of FFMPEG on a docker container since it seems cameras are one of the main reasons folks install homebridge and link un-supported homekit devices for. If anyone on this repo has any insight on my errors that would be awesome to share.
I think you're missing the -
at the start of this line:
"source": "re -rtsp_transport tcp -i rtsp://XXX.XXX.X.X:XXXX/XXXXXXXXXX",
Should be:
"source": "-re -rtsp_transport tcp -i rtsp://XXX.XXX.X.X:XXXX/XXXXXXXXXX",
@oznu
Thank you. Great catch!
Unfortunately after fixing that I'm getting the following error.
[udp @ 0x5633a57e4340] No default whitelist set
[udp @ 0x5633a59f5620] No default whitelist set
Successfully opened the file.
detected 4 logical cores
[graph 0 input from stream 0:1 @ 0x5633a59f5280] Setting 'video_size' to value '1024x576'
[graph 0 input from stream 0:1 @ 0x5633a59f5280] Setting 'pix_fmt' to value '12'
[graph 0 input from stream 0:1 @ 0x5633a59f5280] Setting 'time_base' to value '1/90000'
[graph 0 input from stream 0:1 @ 0x5633a59f5280] Setting 'pixel_aspect' to value '1/1'
[graph 0 input from stream 0:1 @ 0x5633a59f5280] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:1 @ 0x5633a59f5280] Setting 'frame_rate' to value '15/1'
[graph 0 input from stream 0:1 @ 0x5633a59f5280] w:1024 h:576 pixfmt:yuvj420p tb:1/90000 fr:15/1 sar:1/1 sws_param:flags=2
[format @ 0x5633a59f3160] compat: called with args=[yuv420p]
[format @ 0x5633a59f3160] Setting 'pix_fmts' to value 'yuv420p'
[auto-inserted scaler 0 @ 0x5633a58131a0] Setting 'flags' to value 'bicubic'
[auto-inserted scaler 0 @ 0x5633a58131a0] w:iw h:ih flags:'bicubic' interl:0
[format @ 0x5633a59f3160] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format'
[AVFilterGraph @ 0x5633a58377e0] query_formats: 4 queried, 2 merged, 1 already done, 0 delayed
[swscaler @ 0x5633a5934120] deprecated pixel format used, make sure you did set range correctly
[auto-inserted scaler 0 @ 0x5633a58131a0] w:1024 h:576 fmt:yuvj420p sar:1/1 -> w:1024 h:576 fmt:yuv420p sar:1/1 flags:0x4
[h264 @ 0x5633a57f4500] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x5633a57f4500] nal_unit_type: 8, nal_ref_idc: 3
**[h264_omx @ 0x5633a582dfe0] libOMX_Core.so not found**
**[h264_omx @ 0x5633a582dfe0] libOmxCore.so not found**
Stream mapping:
Stream #0:1 -> #0:0 (h264 (native) -> h264 (h264_omx))
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[AVIOContext @ 0x5633a59f3560] Statistics: 0 seeks, 0 writeouts
[11/18/2019, 3:25:15 PM] [Camera-ffmpeg] ERROR: FFmpeg exited with code 1```
Remove this:
"vcodec": "h264_omx",
FWIW I'm happy to document over on the Wiki here or over on the repo homebridge-camera-ffmpeg/wiki the full setup of FFMPEG on a docker container since it seems cameras are one of the main reasons folks install homebridge and link un-supported homekit devices for. If anyone on this repo has any insight on my errors that would be awesome to share.
Are you still willing to document the steps you took to enabling FFmpeg?
Oh yes @FlyersPh9 I forgot completely about this. I actually have to re-implement because I made some changes to my setup. It will probably take a bit but I'll post my use case and setup methodology here when I can.
Describe Your Problem: Love this build of Homebridge for Docker. It's brilliant. I've connected several services easily but like a lot of end users hit a wall when it comes to FFMPEG.
I installed FFMPEG directly in the Docker container. I added
ffmpeg,ffmepg-libs
to the Container environment variables, as well as the startup.sh usingapt-get update apt-get install -y ffmpeg
These are the principle error messages from the log
Invalid argument and ERROR: FFmepg exited with code1
Show the Docker container logs here
docker run --net=host ...
Not sure what this means.
Screenshots:
Error Screenshots
Environment:
Image Tag / Type: Docker oznu/homebridge:debian
I am running the following Environment:
Synology DS918+ DSM Version DSM 6.2.2-24922 Update 4 Homebridge Version Version 0.4.50 Docker oznu/homebridge:debian
Homebridge was installed via the SPK package homebridge-syno-spk
This is the version of FFMPEG