[Camera Support]: FFmpeg5 does not work with 2 of my cameras
See original GitHub issueDescribe the problem you are having
FFmpeg5 does not work with 2 of my cameras.
I tried the latest release 0.11.0
and 2 of my cameras are not working any more.
based on the logs its clearly a FFmpeg problem Invalid data found when processing input
.
testing older version I ended up with 0.11.0-3C46A33
(0.11.0-beta7) as last working one.
is there a way to easy get a build with the FFmpeg used in beta7?
Note: I am running frigate in a kubernetes cluster so the mount trick for docker in the docs will not work for me, the only way is to build a Image.
Version
0.11.0
Frigate config file
cameras:
cam_1:
ffmpeg:
inputs:
- path: rtsp://xxxx:yyyy@1.2.3.5:8554/live0.264
roles:
- detect
- rtmp
detect:
width: 1920
height: 1080
motion:
mask:
- 0,0,925,0,940,78,558,100,0,494
zones:
door:
coordinates: 1091,830,1153,1080,659,1080,585,1019,689,572,830,517,1002,495,976,0,1094,0
way:
coordinates: 588,1080,89,1080,386,547,698,534
ffmpeg:
input_args: -avoid_negative_ts make_zero -fflags nobuffer+genpts+discardcorrupt -avioflags direct -flags low_delay -timeout 5000000 -use_wallclock_as_timestamps 1
output_args:
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an
Relevant log output
[2022-09-30 20:28:36] frigate.video ERROR : cam_2: Unable to read frames from ffmpeg process.
[2022-09-30 20:28:36] frigate.video ERROR : cam_2: ffmpeg process is not running. exiting capture thread...
[2022-09-30 20:28:36] frigate.video ERROR : cam_1: Unable to read frames from ffmpeg process.
[2022-09-30 20:28:36] frigate.video ERROR : cam_1: ffmpeg process is not running. exiting capture thread...
[2022-09-30 20:28:46] watchdog.cam_2 ERROR : Ffmpeg process crashed unexpectedly for cam_2.
[2022-09-30 20:28:46] watchdog.cam_2 ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-30 20:28:46] ffmpeg.cam_2.detect ERROR : [rtsp @ 0x55cf73ef6a80] Missing PPS in sprop-parameter-sets, ignoring
[2022-09-30 20:28:46] ffmpeg.cam_2.detect ERROR : rtsp://xxxx:yyyy@1.2.3.5:8554/live0.264: Invalid data found when processing input
[2022-09-30 20:28:46] watchdog.cam_1 ERROR : Ffmpeg process crashed unexpectedly for cam_1.
[2022-09-30 20:28:46] watchdog.cam_1 ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
[2022-09-30 20:28:46] ffmpeg.cam_1.detect ERROR : [rtsp @ 0x55760b11da80] Missing PPS in sprop-parameter-sets, ignoring
[2022-09-30 20:28:46] ffmpeg.cam_1.detect ERROR : rtsp://user:user@1.2.3.4:8554/live0.264: Invalid data found when processing input
[2022-09-30 20:28:46] frigate.video ERROR : cam_2: Unable to read frames from ffmpeg process.
[2022-09-30 20:28:46] frigate.video ERROR : cam_2: ffmpeg process is not running. exiting capture thread...
[2022-09-30 20:28:46] frigate.video ERROR : cam_1: Unable to read frames from ffmpeg process.
[2022-09-30 20:28:46] frigate.video ERROR : cam_1: ffmpeg process is not running. exiting capture thread...
FFprobe output from your camera
[tcp @ 0x55b7090f2b00] No default whitelist set
[tcp @ 0x55b7090f2b00] Original list of addresses:
[tcp @ 0x55b7090f2b00] Address 1.2.3.4 port 8554
[tcp @ 0x55b7090f2b00] Interleaved list of addresses:
[tcp @ 0x55b7090f2b00] Address 1.2.3.4 port 8554
[tcp @ 0x55b7090f2b00] Starting connection attempt to 1.2.3.4 port 8554
[tcp @ 0x55b7090f2b00] Successfully connected to 1.2.3.4 port 8554
[rtsp @ 0x55b7090efec0] SDP:
v=0
o=- 570184018 1 IN IP4 1.2.3.4
s=Session Streamed by LIBEASYRTSPD-JV
i=live0.264
t=0 0
a=tool:LIBEASYRTSPD-JV v1/0.1
m=video 0 RTP/AVP 96
c=IN IP4 1.2.3.4
b=AS:3
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=4D002A;sprop-parameter-sets=,
a=control:track1
[rtsp @ 0x55b7090efec0] video codec set to: h264
[rtsp @ 0x55b7090efec0] RTP Packetization Mode: 1
[rtsp @ 0x55b7090efec0] RTP Profile IDC: 4d Profile IOP: 0 Level: 2a
[rtsp @ 0x55b7090efec0] Missing PPS in sprop-parameter-sets, ignoring
[rtp @ 0x55b7090f51c0] No default whitelist set
[udp @ 0x55b7090f5d80] No default whitelist set
[udp @ 0x55b7090f5d80] end receive buffer size reported is 786432
[udp @ 0x55b7090f5a00] No default whitelist set
[udp @ 0x55b7090f5a00] end receive buffer size reported is 786432
rtsp://xxxx:yyyy@1.2.3.4:8554/live0.264: Invalid data found when processing input
Frigate stats
No response
Operating system
Debian
Install method
Kubernetes
Coral version
PCIe
Network connection
Wired
Camera make and model
jovision H6EV200-20-L
Any other information that may be helpful
Frigate is running in a Kubernetes cluster. 2 of my cameras are not working and others a working good.
Issue Analytics
- State:
- Created a year ago
- Comments:8
Top Results From Across the Web
[Camera Support]: ffmpeg repeatedly fails and restarts #3999
On 2 of my cameras (same model), ffmpeg repeatedly fails and restarts. Sometimes it resolves after around 15 minutes of retries, but not...
Read more >Unable to add Multiple IP Cameras - Home Assistant Community
So try removing the second “camera” before your second “platform: ffmpeg”. I think there are some “-” missing too (one for each camera...
Read more >Can someone help with Camera FFmpeg config (error - Reddit
My device is an NVR yes. Planning on implementing 2-3 cameras... In VLC it works great to just change the channel=# part of...
Read more >FFmpeg RTSP problem with IP camera - Stack Overflow
I can play Bosch IP camera with VLC Player...But can not with FFmpeg... So. Does ffmpeg not support H264? ffmpeg · rtsp ·...
Read more >Motion Guide
Documentation; Supported Hardware; Known Problems ... If you have for example two cameras you need motion.conf and two camera config files.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
where able to build a new image, in case someone needs it: src: https://github.com/Links2004/frigate-ffmpeg-backport image: ghcr.io/links2004/frigate-ffmpeg-backport:0.11.0-ff5.0.1-8
if there are any ideas for args for ffmpeg / ffprobe I am happy to test. with the new image I can easy switch between the to ffmpeg versions.
did some testing, same result and most urls listed on the pages do not work for my PoE cam.