Closed t1dals closed 2 years ago
I get the same error with my Reolink 422 using rtsp. This is running Homebridge 1.4 on a Synology NAS. Previously used the ffmpeg plugin without any issues.
This issue is still present in 5.0.12
@t1dals
can you type following in your terminal pls
ffmpeg -y -i rtsp://192.168.50.155:554/live/stream0 -vframes 1 test.jpg
Does it work?
:~$ ffmpeg -y -i rtsp://192.168.50.155:554/live/stream0 -vframes 1 test.jpg ffmpeg version 4.1.6 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 7.5.0 (GCC) configuration: --prefix=/usr --incdir='${prefix}/include/ffmpeg' --arch=i686 --target-os=linux --cross-prefix=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- --enable-cross-compile --enable-optimizations --enable-pic --enable-gpl --enable-shared --disable-static --disable-stripping --enable-version3 --enable-encoders --enable-pthreads --disable-protocols --disable-protocol=rtp --enable-protocol=file --enable-protocol=pipe --disable-muxer=image2 --disable-muxer=image2pipe --disable-swscale-alpha --disable-ffplay --disable-ffprobe --disable-doc --disable-devices --disable-bzlib --disable-altivec --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --disable-vaapi --disable-cuvid --disable-nvenc --disable-decoder=amrnb --disable-decoder=ac3 --disable-decoder=ac3_fixed --disable-encoder=zmbv --disable-encoder=dca --disable-decoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3 --disable-decoder=eac3 --disable-encoder=truehd --disable-decoder=truehd --disable-encoder=hevc_vaapi --disable-decoder=hevc --disable-muxer=hevc --disable-demuxer=hevc --disable-parser=hevc --disable-bsf=hevc_mp4toannexb --x86asmexe=yasm --cc=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-wrap-gcc --enable-yasm --enable-libx264 --enable-encoder=libx264 libavutil 56. 22.100 / 56. 22.100 libavcodec 58. 35.100 / 58. 35.100 libavformat 58. 20.100 / 58. 20.100 libavdevice 58. 5.100 / 58. 5.100 libavfilter 7. 40.101 / 7. 40.101 libswscale 5. 3.100 / 5. 3.100 libswresample 3. 3.100 / 3. 3.100 libpostproc 55. 3.100 / 55. 3.100 rtsp://192.168.50.155:554/live/stream0: Protocol not found Did you mean file:rtsp://192.168.50.155:554/live/stream0?
As you can see this is not related to camera.ui
can you post your full config.json pls
{ "bridge": { "name": "Homebridge", "username": "-deleted-", "port": 51675, "pin": "-deleted-" }, "accessories": [], "platforms": [ { "name": "Config", "port": 8581, "auth": "form", "theme": "auto", "tempUnits": "f", "lang": "auto", "platform": "config" }, { "email": "-deleted-", "password": "-deleted-", "platform": "myQ" }, { "name": "CameraUI", "port": 8081, "debug": false, "mqtt": { "active": false }, "http": { "active": false }, "smtp": { "active": false }, "ftp": { "active": false }, "ssl": { "active": false }, "cameras": [ { "name": "August", "motion": true, "unbridge": true, "hsv": true, "prebuffering": true, "prebufferLength": 4, "videoConfig": { "source": "-i rtsp://192.168.50.155:554/live/stream0", "maxStreams": 2, "vcodec": "copy", "acodec": "libfdk_aac", "audio": false }, "videoanalysis": { "active": true } } ], "platform": "CameraUI" } ] }
@t1dals
Which os?
Synology DSM 7.0.1-42218 Update 2
I looks like my ffmpeg is out of date.
What version do you recommend?
I did have some errors within Homebridge loading the camera.ui that might have been related to ffmpeg
I looks like my ffmpeg is out of date.
What version do you recommend?
I did have some errors within Homebridge loading the camera.ui that might have been related to ffmpeg
No issues with v4.3 so far
I have 4.3.3 installed but now have this issue.
August: Can not determine stream codecs, probe timed out
I've tried for video the copy, h264_omx and h264_videotoolbox
I have 4.3.3 installed but now have this issue.
August: Can not determine stream codecs, probe timed out
I've tried for video the copy, h264_omx and h264_videotoolbox
That means ffmpeg could not connect to your camera within 5 seconds to determine the stream codecs, it has nothing to do with vcodec in the config
does the command work now?
ffmpeg -y -i rtsp://192.168.50.155:554/live/stream0 -vframes 1 test.jpg
It does not. It's clearly an ffmpeg issue that I need to research. Thanks for the help. I'll close this if you have nothing else to add.
It does not. It's clearly an ffmpeg issue that I need to research. Thanks for the help. I'll close this if you have nothing else to add.
Allright 👍
For anyone interested, installing ffmpeg from opkg fixed this issue. You just need to point camera.ui to the /opt/bin/ffmpeg
path
[1/21/2022, 11:21:46 PM] [CameraUI] August: Restart prebuffer session.. [1/21/2022, 11:21:48 PM] [Homebridge UI] [homebridge-camera-ui] Incoming Request: /interfaceConfig [1/21/2022, 11:21:49 PM] [CameraUI] August: Videoanalysis scheduled for restart at 4AM: 278 minutes [1/21/2022, 11:21:49 PM] [CameraUI] August: FFmpeg videoanalysis process exited with error! (null) - rtsp://192.168.50.155:554/live/stream0: Protocol not foundDid you mean file:rtsp://192.168.50.155:554/live/stream0? [1/21/2022, 11:21:49 PM] [CameraUI] August: FFmpeg videoanalysis process exited with error! (null) - rtsp://192.168.50.155:554/live/stream0: Protocol not foundDid you mean file:rtsp://192.168.50.155:554/live/stream0? [1/21/2022, 11:21:49 PM] [CameraUI] August: Restart videoanalysis session..
Config: "cameras": [ { "name": "August", "motion": true, "unbridge": true, "hsv": true, "prebuffering": true, "prebufferLength": 4, "videoConfig": { "source": "-i rtsp://192.168.50.155:554/live/stream0", "maxStreams": 2, "vcodec": "copy", "acodec": "libfdk_aac", "audio": false }, "videoanalysis": { "active": true } } ], "platform": "CameraUI"