<html><body><div style="color:#000; background-color:#fff; font-family:tahoma, new york, times, serif;font-size:10pt">>Hi All<div style="font-family: tahoma, new york, times, serif; font-size: 10pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div class="y_msg_container"><div id="yiv644827990"><div dir="ltr"><div>><br></div><div style="">>When using the JPEG decoder (CODEC_ID_MJPEG) sometimes I find that decoded frames are inverted/upside down/back to front. Having read into the problem I believe the issue is to do with the fact that bitmap is sometimes stored bottom-up in JPEG files.</div>
<div style="">><br></div><div style="">>Does the decoder not realign the frame correctly or is this something that I would have to take care of after the decoding? If anyone can suggest the best way to deal with this I would appreciate it.</div>
<div style="">><br></div><div style="">>Thanks,</div><div style="">>Mark.</div></div>
</div><br>You'll have to read metadata (Exif most of the time) to know what is the orientation of the stored bitmap and then process it to get the right rendering.<br>I don't think ffmpeg has any facility to read Exif metadata but you can use filters to do the rotation/flipping job.<br><br>Regards,<br><br>Cyril APAN.<br>_______________________________________________<br>Libav-user mailing list<br><a ymailto="mailto:Libav-user@ffmpeg.org" href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br><a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br><br><br></div> </div> </div>  </div></body></html>