Invalid JPEG file structure: two SOI markers

Technical support for iViewHD cameras. You can ask questions here about iViewHD camera operation. If you have technical questions or need assistance in setting up the cameras, you can ask your questions here.

Invalid JPEG file structure: two SOI markers

Postby skitz on Tue Jun 08, 2010 7:22 pm

Hi,

I have the iViewHD D1 connected to zoneminder. Tail -f on zmdc.log shows that every so often the jpeg decoding fails with an error:

"Invalid JPEG file structure: two SOI markers"

I updated to the current firmware:
Website Version 2.0aol
Firmware Version 2.0dsx

Capture rate is set to only 1 frame per sec. I've experimented so far decreasing frame size from XD1 to VGA, and set compression both max and min. That didn't help. Has anyone else run into this? Any suggestions appreciated.

Thanks.
skitz
 
Posts: 2
Joined: Tue Jun 08, 2010 7:07 pm

Re: Invalid JPEG file structure: two SOI markers

Postby david on Wed Jun 09, 2010 1:09 pm

skitz wrote:...error: "Invalid JPEG file structure: two SOI markers"

That should be fixed with this beta firmware release:

http://netmedia.com/iviewhd/firmware/iv ... w20aqp.zip

David
david
 
Posts: 111
Joined: Tue Sep 14, 2004 4:29 pm

Re: Invalid JPEG file structure: two SOI markers

Postby skitz on Wed Jun 09, 2010 3:13 pm

Thanks for the fast response.

The new firmware plus a zoneminder setup change fixed the problem.

I ran the script below before & after f/w update. Prior to update about 1-3 frames in 50 were bad. Looked like a leading 0xff was missing in the jpeg header on the bad frames. That resulted in " Found bogus jpeg header 'd8ff' " reported in ZM log. New f/w fixed the problem - verified with the test script and ZM log. ZM still reported duplicate SOI markers. To fix that a change is needed for the iviewHD camera in ZM source settings. Refer to ZM FAQ:
http://www.zoneminder.com/wiki/index.php/FAQ

console window > monitor window (for iviewHD camera) > Source tab > Remote Method field :
Change from Simple to Regexp.


For reference here's the test script used for testing from the linux machine:

Code: Select all
#!/bin/bash

ok=0
bad=0

for (( i=50; i; i=i-1 ))
do
   wget http://192.168.0.221:/Image.jpg
   identify Image.jpg
   if (( $? )) ; then
     let bad+=1
   else
     let ok+=1
   fi
   rm -f Image.jpg
done

echo ok=$ok bad=$bad

.
skitz
 
Posts: 2
Joined: Tue Jun 08, 2010 7:07 pm

Re: Invalid JPEG file structure: two SOI markers

Postby david on Wed Jun 09, 2010 4:11 pm

skitz wrote:The new firmware plus a zoneminder setup change fixed the problem...

console window > monitor window (for iviewHD camera) > Source tab > Remote Method field :
Change from Simple to Regexp.

I'm glad that worked. Thank you for the additional Zoneminder configuration information.

David
david
 
Posts: 111
Joined: Tue Sep 14, 2004 4:29 pm


Return to iViewHD Technical Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron