Dave's Brain

Browse - Computer Tips - How to I fix a sideways video?

Date: 2016sep23
Product: ffmpeg
Keywords: rotate 90

Q.  How to I fix a sideways video?

A.  Use the ffmpeg like this:

ffmpeg -i myvideo_in.mp4 -vf "transpose=2" myvideo_fixed.mp4
This works for Samsung Galaxy 5 mini landscape videos - that show up sideways on Windows. transpose=2 is 90 degrees counter clockwise

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.