ros-drivers / axis_camera

Contains basic Python drivers for accessing an Axis camera's MJPG stream. Also provides control for PTZ cameras.
BSD 3-Clause "New" or "Revised" License
52 stars 75 forks source link

"Corrupt JPEG Data" warnings when used with Axis M5525 PTZ camera #51

Open jeff-o opened 6 years ago

jeff-o commented 6 years ago

The Axis M5525 appears to be Axis' replacement for the P-series PTZ cameras. While the driver is able to stream MJPEG data from the camera just fine, a continuous stream of warning messages are also generated while the image stream is accessed. The message is as follows, with the number of bytes varying somewhat between messages:

Corrupt JPEG data: 651 extraneous bytes before marker 0xd9

These messages are a nuisance!

civerachb-cpr commented 3 years ago

I'll see if I can cut down on the error spam, though it's possible that the camera itself is messing up its MJPG encoding, which is causing the error in the first place.

Do you remember what resolution the camera was publishing, and whether the node was configured with the same dimensions?