Corrupt JPEG data when extracting a bag file

asked 2016-06-02 09:13:16 -0600

Samer gravatar image

updated 2016-06-03 12:42:08 -0600

When I try to extract a bag file to jpg images, sometimes, I get this error message:

Corrupt JPEG data: xxxx extraneous bytes before marker 0xxx

I am using image_view package to do so: here is a snippet of the launch file:

  <node name="extract4" pkg="image_view" type="extract_images" respawn="false" output="screen" cwd="node">
    <remap from="image" to="/con$(arg cam4)/image_raw"/>
    <param name="image_transport" value="compressed"/>
    <param name="sec_per_frame" value="0.1"/>
    <param name="filename_format" value="/home/con$(arg cam4)/frame%04i.jpg"/>

Does this mean that the bag file has some corrupted data or something wrong with the way I am extracting the images ?

edit retag flag offensive close merge delete