With some videos (for instance from the iPhone) if the user is recording in portrait the thumbnail will be created with the wrong orientation.

FFmpeg can get the rotation from the file metadata, and we can use this to pass the correct filter parameters in the thumbnail generation code.

The attached patch fixes this for me. I've also attached a sample movie where this is happening.

ps. This might require a recent version of ffmpeg. I'm running 1.1.3.

CommentFileSizeAuthor
thumbnail_rotation.patch1.86 KBwedge
IMG_0994.zip399.1 KBwedge

Comments

hypertext200’s picture

Issue summary: View changes
Status: Needs review » Fixed

  • heshanlk committed 0f03aaf on 7.x-2.x authored by wedge
    Issue #1941800 by wedge: Thumbnail orientation wrong
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.