Page 1 of 1
Ffmpg image distortion
Posted: Thu Dec 22, 2016 7:03 pm
by algae
Hi, I'm running zoneminder 1.29 on Raspbian (RP 3b). I'm having an issue where the video gets distorted periodically, every couple minutes. This will often look like half the picture is smeared. It clears quickly but causes a motion alert. The same cameras set to remote and RTSP don't experience this issue but produce constant log entries stating "error while decoding frame...". I wouldn't mind ignoring these errors but one of my cameras will only work with ffmpg. I have found that if I lower the bit rate substantially on the ffmpg connected camera there is less issue but it's to the point of poor video quality.
I understand I'm working with limited resources on the PI but it doesn't appear to be sweating the load. CPU utilization hovers around 50% and I've got it booting from a USB hard drive so disk access is a bit more reasonable.
Any suggestions on where I should check? Thanks!
Re: Ffmpg image distortion
Posted: Fri Dec 23, 2016 3:36 pm
by PacoLM
Slow down the FPS in the camera side and leave blank the FPS settings on the ZM monitor side. Usually works.
Re: Ffmpg image distortion
Posted: Sat Dec 24, 2016 12:52 am
by algae
Thanks for the suggestion. I already have the FPS down to 5 but still have the issue.
Re: Ffmpg image distortion
Posted: Sun Dec 25, 2016 10:26 pm
by bbunge
What camera are you using? Smearing can be frustrating...
bb
Re: Ffmpg image distortion
Posted: Mon Dec 26, 2016 2:12 am
by algae
they're all Amcrest cameras, different models. All of them will experience this issue when connecting via ffmpeg but one of them will only work via ffmpeg. the others work via "direct".
Re: Ffmpg image distortion
Posted: Mon Dec 26, 2016 9:25 pm
by bbunge
algae wrote:they're all Amcrest cameras, different models. All of them will experience this issue when connecting via ffmpeg but one of them will only work via ffmpeg. the others work via "direct".
What is the model of the camera causing problems?
Re: Ffmpg image distortion
Posted: Tue Dec 27, 2016 1:31 am
by knight-of-ni
The ffmpeg smearing/tearing/distorted issue is a common problem and has been reported in this forum many times.
For some, simply changing from UDP to TCP clears up the issue. To do that, change your remote method from RTP/Unicast to RTP/RTSP.
You could also try the libvlc source type
Re: Ffmpg image distortion
Posted: Tue Dec 27, 2016 2:45 am
by algae
Kninggett, thanks for TCP suggestion, I will give it a shot. I had already tried libvlc, the camera doesn't work at all.
bbunge, I experience the issue on 3 Amcrest cameras - models are IP2M-844E, IP3M-954E and IPM-722S.
Re: Ffmpg image distortion
Posted: Wed Dec 28, 2016 2:31 am
by algae
Changing to TCP took care of it. Thanks!