Skip to content

Instantly share code, notes, and snippets.

@segrax
Created May 3, 2020 20:55
Show Gist options
  • Save segrax/ad34d87292b30fb3ca1fb23b0c7c7d22 to your computer and use it in GitHub Desktop.
Save segrax/ad34d87292b30fb3ca1fb23b0c7c7d22 to your computer and use it in GitHub Desktop.
Useful FFMPEG commands
# Cut a video from 23 seconds in, for 7 seconds duration
ffmpeg -ss 00:00:23 -i videoplayback.mp4 -t 00:07 out.mp4
#transpose
# 0 = 90CounterCLockwise and Vertical Flip (default)
# 1 = 90Clockwise
# 2 = 90CounterClockwise
# 3 = 90Clockwise and Vertical Fli
ffmpeg -r %framerate% -f concat -safe 0 -i images.txt -vf "transpose=2" -c:v libx264 -crf 16 -pix_fmt yuv420p video.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment