Last active
November 6, 2017 11:16
-
-
Save terehof/d1e0526b315dada02a08419378d36abc to your computer and use it in GitHub Desktop.
ffmpeg terminal commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//rotate video 90degrees clockwise | |
ffmpeg -i in.mov -vf "transpose=1" out.mov | |
//0 = 90CounterCLockwise and Vertical Flip (default) | |
//1 = 90Clockwise | |
//2 = 90CounterClockwise | |
//3 = 90Clockwise and Vertical Flip | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ffmpeg -i input.jpg -vf scale=320:-1 output_320.png
- will set the width of the output image to 320 pixels and will calculate the height of the output image according to the aspect ratio of the input image.