[vlc-devel] [PATCH] Automatically orient JPEG image based on orientation flag, if set

Wayne McDougall waynemcdougall at gmail.com
Sat Apr 16 11:19:01 CEST 2016

On 16 April 2016 at 21:01, Jean-Baptiste Kempf <jb at videolan.org> wrote:

> I'm sorry to ask, but it seems you are doing the rotation directly in
> the codec. Why not use our system for video output rotation?

> As I understand it, the user of VLC can choose to rotate, transpose, etc
on playback. But there is no way for the CoDEec to feed back to the player
that the picture image it is supplying back *ought* to be
rotated/transposed (which would be _in addition_ to any user requested

Perhaps an actual use case may be helpful:

I want to play a slideshow of JPEG photo images *and* movies taken on a
camera, and handed to me on a USB stick. I plug it in, and enter:

cvlc --width 1360 --height 768 --image-duration 30 -fZ -I http --http-host --recursive expand --no-audio /media/multimedia/Photos

Great. Slideshow runs - I can even export to a movie. *BUT* at the moment,
some images are displayed incorrectly. The JPEG encodes the orientation in
the header, but currently VLC ignores that.

Feel free to tell me that there is some better way of doing it. I have
learnt a lot, even if is thrown away. ;-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20160416/76be2cbc/attachment.html>

More information about the vlc-devel mailing list