FFMPEG RTSP Distorted (Smearing) images

Forum for questions and support relating to the 1.27.x releases only.
Locked
3esmit
Posts: 6
Joined: Fri Nov 14, 2014 2:26 am

FFMPEG RTSP Distorted (Smearing) images

Post by 3esmit »

Hello,

I've done some searches in this forum and in the web and found out that there are other people having this problem.

http://www.zoneminder.com/forums/viewto ... 29&t=22658
http://www.zoneminder.com/forums/viewto ... 29&t=21492
http://www.zoneminder.com/forums/viewto ... 30&t=21420
http://www.zoneminder.com/forums/viewto ... 30&t=21408
http://www.zoneminder.com/forums/viewtopic.php?t=21390

I think this is a FFMPEG bug, but as it is used in ZM I feel free to ask here.

I'm running Ubuntu Server 14.04 x86_64 w/ ZoneMinder 1.27.99 from ppa:iconnor/zoneminder-master
Currently modetect 2 cameras (System load is always low).

The camera that gives bugs is configured as:
Source Type: FFMPEG
Source Path: rtsp://192.168.1.10:554/user=user&password=&channel=1&stream=1.sdp
Remote Method: RTP/RTSP/HTTP
WidthxHeight: 800x600

Code: Select all

avconv version 9.16-6:9.16-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers
  built on Aug 10 2014 18:16:02 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
avconv 9.16-6:9.16-0ubuntu0.14.04.1
libavutil     52.  3. 0 / 52.  3. 0
libavcodec    54. 35. 0 / 54. 35. 0
libavformat   54. 20. 4 / 54. 20. 4
libavdevice   53.  2. 0 / 53.  2. 0
libavfilter    3.  3. 0 /  3.  3. 0
libavresample  1.  0. 1 /  1.  0. 1
libswscale     2.  1. 1 /  2.  1. 1

Code: Select all

 free -m
             total       usado      livre    compart.  buffers     em cache
Mem:          2941       2835        106        120        218       2084
-/+ buffers/cache:        532       2409
Swap:         2999          0       2999

Code: Select all

sysctl -a | grep shm;
kernel.shm_next_id = -1
kernel.shm_rmid_forced = 0
kernel.shmall = 512000
kernel.shmmax = 1000000000
kernel.shmmni = 4096
vm.hugetlb_shm_group = 0

There is any bugfix or workaround for this problem?
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: FFMPEG RTSP Distorted (Smearing) images

Post by bbunge »

There are several things you can try: lower the frame rate at the camera, increase the key frame rate at the camera, force tcp (?tcp at the end of your source line), lower the resolution at the camera.
I have a Foscam h.264 camera running ffmpeg without issues. On the same system I have a Vivotek h.264 that does not like ffmpeg. Am running mjpg now with that one on just the remote setting.
What cameras are you using?

bb
3esmit
Posts: 6
Joined: Fri Nov 14, 2014 2:26 am

Re: FFMPEG RTSP Distorted (Smearing) images

Post by 3esmit »

I am using Foscam FI8918W without issues, and seldom distortions at a ESCAM Snail QD500.
ESCAM QD500 is a nice câmera with a great price (got for USD 36,49 on dx) but it haves a shitty web interface with configuration just accessible at IE with ActiveX plugin installed. At IE ActiveX Plugin the câmera runs smooth with full resolution and high framerate, but at survilliance systems it got some issues, one of them is this distorted images.
Segaboy
Posts: 1
Joined: Thu Feb 19, 2015 10:44 am

Re: FFMPEG RTSP Distorted (Smearing) images

Post by Segaboy »

I'm running Ubuntu Server 14.04 x86_64 w/ ZoneMinder 1.27.99 from ppa:iconnor/zoneminder-master
Currently modetect 2 cameras (System load is always low).
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: FFMPEG RTSP Distorted (Smearing) images

Post by SteveGilvarry »

Try RTP/RTSP instead that stopped incomplete frames, the smearing, for me.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
Locked