Skip to content

Instantly share code, notes, and snippets.

@terehof
Last active November 6, 2017 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terehof/d1e0526b315dada02a08419378d36abc to your computer and use it in GitHub Desktop.
Save terehof/d1e0526b315dada02a08419378d36abc to your computer and use it in GitHub Desktop.
ffmpeg terminal commands
//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
@terehof
Copy link
Author

terehof commented Nov 6, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment