creating/setting zone with 1280x720 Ip cam results in duplic

Forum for questions and support relating to the 1.28.x releases only.
bencollinz
Posts: 24
Joined: Fri May 29, 2015 12:23 pm

creating/setting zone with 1280x720 Ip cam results in duplic

Post by bencollinz »

creating/setting zone with Foscam FI9828PW 1280x720 Ip cam results in duplicate side by side image.

Image

Can't attach a picture here "Sorry, the board attachment quota has been reached" so hopefully you can see this from facebook link...
Image

In my alert emails it happens as well. See above.

Any advice?

Thank you
Ben
Last edited by bencollinz on Wed Jul 08, 2015 1:17 pm, edited 1 time in total.
bencollinz
Posts: 24
Joined: Fri May 29, 2015 12:23 pm

Re: creating/setting zone with 1280x720 Ip cam results in du

Post by bencollinz »

this is also preventing any alerts from being generated. anyone?
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: creating/setting zone with 1280x720 Ip cam results in du

Post by knight-of-ni »

Looks like your screenshots did attach.
Haven't seen this one before.

What does your event log say for this camera?
Does the resolution in zoneminder for this monitor match exactly the resolution in the camera?
What are (all of) your camera settings? Can you post screenshots?

Oh, and please verify whether or not you are using a release of zoneminder or a development snapshot.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
Southcross
Posts: 43
Joined: Tue Feb 10, 2015 9:17 pm

Re: creating/setting zone with 1280x720 Ip cam results in du

Post by Southcross »

Looks like some weird MPEG error? or possibly a misconfigured decoder? I have seen something like this with bad JPEGs (bad header?) and/or machine with a bad memory module(?).

Might consider running Memtest on the machine for a few hours if you can't trace down the error
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: creating/setting zone with 1280x720 Ip cam results in du

Post by PacoLM »

Are you using Ffmpeg as the source type? If so, could you try Libvlc. From my experience it works better and its more stable.

Hope it helps,

PacoLM

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
bencollinz
Posts: 24
Joined: Fri May 29, 2015 12:23 pm

Re: creating/setting zone with 1280x720 Ip cam results in du

Post by bencollinz »

knnniggett wrote:Looks like your screenshots did attach.
Haven't seen this one before.

What does your event log say for this camera?
Does the resolution in zoneminder for this monitor match exactly the resolution in the camera?
What are (all of) your camera settings? Can you post screenshots?

Oh, and please verify whether or not you are using a release of zoneminder or a development snapshot.
these are the directions I followed to build it
http://www.zoneminder.com/wiki/index.ph ... e_easy_way
event log lists no errors for this camera
res matches. FPS does not. camera is at 15, zm is at 30. otherwise I get that smudging/ artifacting.
and of course can't upload attachment. hopefully linking from FB works.
Image
Image

Foscam FI9828PW
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: creating/setting zone with 1280x720 Ip cam results in du

Post by knight-of-ni »

Does the live view appear normal or does it look like the screenshots as well?
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: creating/setting zone with 1280x720 Ip cam results in du

Post by knight-of-ni »

I have a Foscam 9821 programmed identically to that, which is working great.

Since you are using Ubuntu, that means your system uses libav, rather than ffmpeg, which occasionally causes issues, but if that were the case I'd expect your live view to be corrupted the same as the zone edit screen.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
bencollinz
Posts: 24
Joined: Fri May 29, 2015 12:23 pm

Re: creating/setting zone with 1280x720 Ip cam results in du

Post by bencollinz »

knnniggett wrote:Does the live view appear normal or does it look like the screenshots as well?
live view is not duplicated.
bencollinz
Posts: 24
Joined: Fri May 29, 2015 12:23 pm

Re: creating/setting zone with 1280x720 Ip cam results in du

Post by bencollinz »

PacoLM wrote:Are you using Ffmpeg as the source type? If so, could you try Libvlc. From my experience it works better and its more stable.

Hope it helps,

PacoLM
I tried libvlc but couldn't get it to work.
bencollinz
Posts: 24
Joined: Fri May 29, 2015 12:23 pm

Re: creating/setting zone with 1280x720 Ip cam results in du

Post by bencollinz »

bencollinz wrote:
PacoLM wrote:Are you using Ffmpeg as the source type? If so, could you try Libvlc. From my experience it works better and its more stable.

Hope it helps,

PacoLM
I tried libvlc but couldn't get it to work.
but I did have to install ffmpeg manually http://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
so maybe, libvlc is missing?
bencollinz
Posts: 24
Joined: Fri May 29, 2015 12:23 pm

Re: creating/setting zone with 1280x720 Ip cam results in du

Post by bencollinz »

here's an example of the smudging
Image
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: creating/setting zone with 1280x720 Ip cam results in du

Post by knight-of-ni »

bencollinz wrote: but I did have to install ffmpeg manually http://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
so maybe, libvlc is missing?
Wait, what? So you deviated from the Ubuntu instructions you posted earlier.
What prompted you to do this?

The trouble with doing that is you have a packaged version of ZoneMinder installed on your system. That packaged version of ZoneMinder was built against the specific version of libav, which ships with your version of Ubuntu. The code path for libav & ffmpeg are different in zoneminder. If you install a version of zoneminder built against libav, but then replace libav with ffmpeg, zoneminder is making the wrong function calls. This is not guaranteed to work.

Best case, zoneminder will still work but won't be running as efficient as it could be. Worst case, anything can happen from general weirdness to a complete crash.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
bencollinz
Posts: 24
Joined: Fri May 29, 2015 12:23 pm

Re: creating/setting zone with 1280x720 Ip cam results in du

Post by bencollinz »

knnniggett wrote:
bencollinz wrote: but I did have to install ffmpeg manually http://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
so maybe, libvlc is missing?
Wait, what? So you deviated from the Ubuntu instructions you posted earlier.
What prompted you to do this?

The trouble with doing that is you have a packaged version of ZoneMinder installed on your system. That packaged version of ZoneMinder was built against the specific version of libav, which ships with your version of Ubuntu. The code path for libav & ffmpeg are different in zoneminder. If you install a version of zoneminder built against libav, but then replace libav with ffmpeg, zoneminder is making the wrong function calls. This is not guaranteed to work.

Best case, zoneminder will still work but won't be running as efficient as it could be. Worst case, anything can happen from general weirdness to a complete crash.
yes. ffmpeg was not installed with those instructions. I rebuilt twice, from scratch. All I could find to make this camera work was to install ffmpeg manually. I tried libvlc first and it didn't work.
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: creating/setting zone with 1280x720 Ip cam results in du

Post by PacoLM »

For the smudging, I had to leave Maximum FPS and AlarmMaximum FPS blank. Set the maximum FPS and the bitrate on the camera side, smudging will improve a lot.

PacoLM

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
Locked