Smearing images making system unusable

Forum for questions and support relating to the 1.26.x releases only.
User avatar
Basildane
Posts: 108
Joined: Mon Sep 16, 2013 1:09 pm

Smearing images making system unusable

Post by Basildane » Mon Sep 23, 2013 1:18 pm

I have 291 alarms recorded from just one camera, from just last night. Almost all of them due to smearing images. The camera is an IP Grandstream GXV3672 FHD.

I've tried just about everything, including lowering the resolution to an unacceptably low quality. Nothing helps.

Been at this for about 4 hours a day for 5 days now and I'm getting burned out trying to make this work.

Torsten73
Posts: 26
Joined: Thu Sep 19, 2013 9:45 pm

Re: Smearing images making system unusable

Post by Torsten73 » Thu Sep 26, 2013 9:36 pm

did you try source extern without rstp? this should work when choosing a mpeg stream of your cam with lower resolutions like max 1080p with 15 frames.
but you can´t use h264 with extern source.

Live video is without distortion? I think not when using h264.

the rest we talked about in my thread.

whatboy
Posts: 304
Joined: Mon Aug 31, 2009 10:31 pm

Re: Smearing images making system unusable

Post by whatboy » Mon Sep 30, 2013 9:03 pm

Old ffmpeg version... you need to upgrade... and rebuild zm... then ldconfig...

whatboy
Posts: 304
Joined: Mon Aug 31, 2009 10:31 pm

Re: Smearing images making system unusable

Post by whatboy » Mon Sep 30, 2013 9:16 pm

OLD ffmpeg version... problems...

Code: Select all

FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jun 15 2013 17:28:03 with gcc 4.5.1 20100924 (Red Hat 4.5.1-4)
  configuration: --enable-shared --enable-pthreads --enable-gpl --prefix=/usr/local --enable-swscale
  libavutil     50.36. 0 / 50.36. 0
  libavcore      0.16. 1 /  0.16. 1
  libavcodec    52.108. 0 / 52.108. 0
  libavformat   52.93. 0 / 52.93. 0
  libavdevice   52. 2. 3 / 52. 2. 3
  libavfilter    1.74. 0 /  1.74. 0
  libswscale     0.12. 0 /  0.12. 0
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'
NEW ffmpeg version, no problems!!! :)

Code: Select all

ffmpeg version N-56254-gb7bd688 Copyright (c) 2000-2013 the FFmpeg developers
  built on Sep 28 2013 19:20:33 with gcc 4.5.1 (GCC) 20100924 (Red Hat 4.5.1-4)
  configuration: --enable-shared --enable-pthreads --enable-gpl --prefix=/usr/local --enable-swscale
  libavutil      52. 43.100 / 52. 43.100
  libavcodec     55. 31.101 / 55. 31.101
  libavformat    55. 16.102 / 55. 16.102
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 84.100 /  3. 84.100
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'

User avatar
Basildane
Posts: 108
Joined: Mon Sep 16, 2013 1:09 pm

Re: Smearing images making system unusable

Post by Basildane » Mon Sep 30, 2013 10:44 pm

Torsten73 wrote:did you try source extern without rstp? this should work when choosing a mpeg stream of your cam with lower resolutions like max 1080p with 15 frames.
but you can´t use h264 with extern source.

Live video is without distortion? I think not when using h264.

the rest we talked about in my thread.
I can see the camera at full resolution (2048x1536) using the included software, using h264, but that totally chokes the zoneminder / ffmpeg.

I built a dedicated server over the weekend with sata-6 drives, 8 gigs of dual channel memory, I5 processor, new SSE motherboard.
It works much better now, but I still can't get close to the resolution I planned to use for this. And I haven't even added on all the other cameras yet.

lpallard
Posts: 85
Joined: Fri Mar 05, 2010 10:59 pm

Re: Smearing images making system unusable

Post by lpallard » Mon Oct 07, 2013 10:56 pm

After I upgraded ffmpeg from the obsolete 0.11.1 on slackware64-14.0 to ffmpeg 1.2, I eliminated the smearing problem which was also creating false events.

ffmpeg:

ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
built on Oct 6 2013 22:57:37 with gcc 4.7.1 (GCC)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/man --enable-libmp3lame --enable-libfaac --enable-libvo-aacenc --enable-nonfree --enable-gpl --enable-version3 --enable-avfilter --enable-avresample --enable-libass --enable-libdc1394 --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-postproc --enable-runtime-cpudetect --enable-vaapi --disable-vdpau --enable-memalign-hack --enable-pthreads --enable-x11grab --enable-bzlib --enable-zlib --enable-shared --enable-static --disable-debug --arch=x86_64 --enable-pic --extra-cflags='-I/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/include -DRUNTIME_CPUDETECT' --extra-ldflags='-L/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/lib64 -ldl -lssl -lcrypto -lz -lusb'
libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Hyper fast Audio and Video encoder


My suggestion would be to upgrade ffmpeg

User avatar
Basildane
Posts: 108
Joined: Mon Sep 16, 2013 1:09 pm

Re: Smearing images making system unusable

Post by Basildane » Tue Oct 08, 2013 6:44 pm

I compiled ffmpeg from source today.

Code: Select all

ffmpeg version git-2013-10-08-162e22e Copyright (c) 2000-2013 the FFmpeg developers
  built on Oct  8 2013 13:46:29 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --prefix=/home/phil/ffmpeg_build --extra-cflags=-I/home/phil/ffmpeg_build/include --extra-ldflags=-L/home/phil/ffmpeg_build/lib --bindir=/home/phil/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
  libavutil      52. 46.101 / 52. 46.101
  libavcodec     55. 35.100 / 55. 35.100
  libavformat    55. 19.100 / 55. 19.100
  libavdevice    55.  4.100 / 55.  4.100
  libavfilter     3. 88.101 /  3. 88.101
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
Hyper fast Audio and Video encoder
Unfortunately, every minute or so, the IP camera smears like this.
I can get it reliable by drastically lowering the resolution and bitrate, but then it won't be useful for what I got it for.

Image

lpallard
Posts: 85
Joined: Fri Mar 05, 2010 10:59 pm

Re: Smearing images making system unusable

Post by lpallard » Tue Oct 08, 2013 7:03 pm

I think most of the issues we are experiencing with zoneminder are caused by underlying software such as ffmpeg.

I too had this smear issue. Since I upgraded to ffmpeg 1.2, I no longer have this smear issue but zoneminder stopped working..

Try ffmpeg 1.2. Later tonight, I will post my comfigure command with the flags I used. I compiled ffmpeg for my specific platform with processor optimization flags (Opteron Piledriver)

User avatar
Basildane
Posts: 108
Joined: Mon Sep 16, 2013 1:09 pm

Re: Smearing images making system unusable

Post by Basildane » Tue Oct 08, 2013 7:09 pm

First, thank you all for responding and providing all this help, such as the config statements.

As for ffmpeg 1.2, I'm having a little trouble finding that. I thought I had the latest version as of today. Seems everyone has a different version number format.

lpallard
Posts: 85
Joined: Fri Mar 05, 2010 10:59 pm

Re: Smearing images making system unusable

Post by lpallard » Tue Oct 08, 2013 8:02 pm

[quote]Seems everyone has a different version number format.[/quote]

Its just inherent to the nature of opensource projects... That doesnt help when debugging and developping but eh, what can you do!? :)

I always try to maintain my packages to the latest STABLE releases... That way I stand a significant chance not falling in strange bugs due to premature code while also maintaing a reasonable chance not to fall in bugs that have recently ben fixed.

Slackware has v1.2 from AlienBob, one of the main maintainers and devs. I suppose the version I currently use is NOT the latest.. I will try upgrading to a newer version but I must admit, 4 days playing with ZM and spending my nights trying to make it work, compiling packages, fine tuning, etc and I got so far as a un-usable setup...

"dont give up" this is what I tell myself.. :)

User avatar
Basildane
Posts: 108
Joined: Mon Sep 16, 2013 1:09 pm

Re: Smearing images making system unusable

Post by Basildane » Tue Oct 08, 2013 8:27 pm

Do I have to recompile zoneminder now that I have recompiled ffmpeg?

I have not done that. I've spent days trying to find clear documentation on how to recompile zm. Still struggling.

User avatar
Basildane
Posts: 108
Joined: Mon Sep 16, 2013 1:09 pm

Re: Smearing images making system unusable

Post by Basildane » Tue Oct 08, 2013 8:43 pm

Oh my various gods.

I just realized the ffmpeg installation is not correct.
When I log in as me, I see the version I compiled today.
When I am root, I see an older version.

The ffmpeg installation instructions are wrong and "make install" doesn't move things where they belong.

User avatar
Basildane
Posts: 108
Joined: Mon Sep 16, 2013 1:09 pm

Re: Smearing images making system unusable

Post by Basildane » Wed Oct 09, 2013 2:00 am

Well, I now have ffmpeg compiled.
Now, to compile zm.

User avatar
Basildane
Posts: 108
Joined: Mon Sep 16, 2013 1:09 pm

Re: Smearing images making system unusable

Post by Basildane » Wed Oct 09, 2013 3:24 am

OK. I finished.

I have zm up to version 1.26.4. I recompiled ffmpeg to the current GIT source.
I'm really sad to report that the problem is actually now worse than before.

I've been at this since 9:30am this morning and it is nearly 11:30pm now.
Uggg. I'm out of options.

heroldssalads
Posts: 4
Joined: Thu Jun 20, 2013 7:14 pm

Re: Smearing images making system unusable

Post by heroldssalads » Fri Oct 11, 2013 7:02 pm

just to be sure... could this be just a hardware issue? have you tried testing with another camera?

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests