View unanswered posts | View active topics It is currently Thu May 23, 2013 5:19 am



Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
WAR Corrupt JPEG data: 1 extraneous bytes before marker 0xd9 
Author Message

Joined: Mon Oct 12, 2009 9:47 am
Posts: 77
Location: EUROPE-FRANCE-CANNES
Post WAR Corrupt JPEG data: 1 extraneous bytes before marker 0xd9
Hello, have permanently this warning in my log.
With this IP Camera PT Foscam FI8918W under wifi 802.11b

This a ZM V1.25.SVN bug or an internal bug of this Foscam?

Thanks

Code:
2011-09-10 07:48:12.376707   zmc_m2   19976   WAR   Corrupt JPEG data: 1 extraneous bytes before marker 0xd9   zm_jpeg.cpp   63
2011-09-10 07:48:12.293799   zmc_m2   19976   WAR   Corrupt JPEG data: 2 extraneous bytes before marker 0xd9   zm_jpeg.cpp   63
2011-09-10 07:48:12.258448   zmc_m2   19976   WAR   Corrupt JPEG data: 1 extraneous bytes before marker 0xd9   zm_jpeg.cpp   63
2011-09-10 07:48:11.089237   zmc_m2   19976   WAR   Corrupt JPEG data: 1 extraneous bytes before marker 0xd9   zm_jpeg.cpp   63
2011-09-10 07:48:10.005381   zmc_m2   19976   WAR   Corrupt JPEG data: 2 extraneous bytes before marker 0xd9   zm_jpeg.cpp   63
...
...
...


Sat Sep 10, 2011 6:54 am
Profile

Joined: Sun Aug 14, 2011 12:38 am
Posts: 62
Location: Melbourne, Australia
Post Re: WAR Corrupt JPEG data: 1 extraneous bytes before marker
I don't think this is 1.25.0 related. I was also receiving this error in the logs in 1.24.4, but i would also like to know how to fix!


Sat Sep 10, 2011 9:47 am
Profile

Joined: Mon Oct 12, 2009 9:47 am
Posts: 77
Location: EUROPE-FRANCE-CANNES
Post Re: WAR Corrupt JPEG data: 1 extraneous bytes before marker
Hello,

the only way i found on another forum (i no try)
is to desactivate the error logging in the libjpeg library that return this error
but with my other cam no errors this is foscam relevant

wait and see...


Sun Sep 11, 2011 10:14 pm
Profile

Joined: Tue Oct 04, 2011 4:30 am
Posts: 14
Post Re: WAR Corrupt JPEG data: 1 extraneous bytes before marker
I was getting this one my newly added foscam monitors. I just disabled them with the following code @ zm_jpeg.cpp:63

(zmerr->pub.format_message)( cinfo, buffer );
if (!strstr(buffer, "Corrupt JPEG data:")) // add this line before warning. It was quite annoying.
Warning( "%s", buffer );

There's probably a better way. Have not done a deep dive into the code. Busy setting up monitors.


Sun Oct 09, 2011 8:02 pm
Profile

Joined: Sun Aug 14, 2011 12:38 am
Posts: 62
Location: Melbourne, Australia
Post Re: WAR Corrupt JPEG data: 1 extraneous bytes before marker
How to analyse JPEG from Foscam cameras to check for corrupt data? I want to provide Foscam with proof so they may investigate the issue.


Mon Oct 10, 2011 11:09 pm
Profile

Joined: Wed Nov 30, 2011 5:53 pm
Posts: 8
Post Re: WAR Corrupt JPEG data: 1 extraneous bytes before marker
Is there any progress on this problem. I've only just installed some Foscam cameras and have exactly the same issue.


Tue Dec 27, 2011 6:10 pm
Profile

Joined: Mon Dec 26, 2011 12:53 pm
Posts: 5
Post Re: WAR Corrupt JPEG data: 1 extraneous bytes before marker
Similar issue here

*Foscam FI8918W on 1.2.5


Sat Dec 31, 2011 5:19 am
Profile

Joined: Tue Oct 04, 2011 4:30 am
Posts: 14
Post Re: WAR Corrupt JPEG data: 1 extraneous bytes before marker
Just got an email asking how I fixed this. Again, simply add the following line just before the Warning(...) line at or near line 63 of zm_jpeg.cpp:

if (!strstr(buffer, "Corrupt JPEG data:")) // this is the new line of code that will eliminate the Foscam 8918W camera...

The above code instructs the program to only send warnings if the message does *not* contain the string "Corrupt JPEG data:".

Once this is done, simply run:

make && sudo make install # from your zoneminder code directory. A zm restart may be in order to activate the change.


Sat Dec 31, 2011 6:00 am
Profile

Joined: Mon Dec 26, 2011 12:53 pm
Posts: 5
Post Re: WAR Corrupt JPEG data: 1 extraneous bytes before marker
that was me :)

I hadn't done the make and make install to include the change - working now thanks!


Sat Dec 31, 2011 7:42 am
Profile

Joined: Wed Nov 30, 2011 5:53 pm
Posts: 8
Post Re: WAR Corrupt JPEG data: 1 extraneous bytes before marker
It's a good workaround but should it really be necessary? Surely there is something wrong somewhere else to need such a fix.


Sat Dec 31, 2011 7:41 pm
Profile

Joined: Tue Oct 04, 2011 4:30 am
Posts: 14
Post Re: WAR Corrupt JPEG data: 1 extraneous bytes before marker
@px03afk - Yes there's some extraneous data in the jpg and that's probably a bug that needs to be fixed. However firmware changes are a bit more risky so I prefer to work around it until "they" get it working someday. For the price/performance I am not complaining if this is the only issue I have had. I did notice that I'm getting more 1 frame signal drops. Could be the cam or my overloaded wireless network using multiple cams/puters/printers. However the trouble of running the new line (which is more suseptible to very close lighting strike on frying quipment) I am also willing to ignore for now with some workarounds.


Sun Feb 19, 2012 4:54 am
Profile

Joined: Wed Nov 30, 2011 5:53 pm
Posts: 8
Post Re: WAR Corrupt JPEG data: 1 extraneous bytes before marker
Don't disagree at all about the price/performance and at least there is a workaround, which as far as I am cocerned provides me with a working solution. I've been using ZoneMinder for about a month now and I think it is a great product. Only problem I've been having is understanding how to set up the motion sensing so it catches everything I want and ignores what I don't want, but that is something I'm working on.


Sun Feb 19, 2012 11:06 pm
Profile

Joined: Tue Oct 04, 2011 4:30 am
Posts: 14
Post Re: WAR Corrupt JPEG data: 1 extraneous bytes before marker
We are always tuning our zones. This warning has *nothing* to do with motion detection at all. Just a few errounous bytes on the jpeg envelope, not the contents.


Mon Feb 27, 2012 12:27 am
Profile
User avatar

Joined: Sun Jun 05, 2005 1:57 pm
Posts: 234
Post Re: WAR Corrupt JPEG data: 1 extraneous bytes before marker
I have seen this error in my logs across many versions of Zoneminder, on different servers, operating systems, etc. I think it is an issue with libjpeg, but it has also occured to me with various versions of libjpeg as well. I have scratched my head many times trying to figure this out and finally gave up. I think it may (or may not) be related to my cams randomly going black for a moment, both USB and IP cams. I just give up and accept it now, LOL.


Sun Mar 11, 2012 6:26 am
Profile

Joined: Sat Nov 06, 2010 3:30 pm
Posts: 18
Post Re: WAR Corrupt JPEG data: 1 extraneous bytes before marker
It's definitely a camera firmware issue. Other brands of cameras also have this bug (or perhaps the Foscam units with this bug are OEM'd by Arecont Vision?)

My solution was basically the same as mentioned above: add an if statement to the libjpeg code to suppress the error message.

www.zoneminder.com/forums/viewtopic.php ... 410#p70410


Sun Mar 11, 2012 7:34 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 17 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group