Skip to content

Instantly share code, notes, and snippets.

@Wumpf
Last active October 2, 2021 12:47
Show Gist options
  • Save Wumpf/4a7bf26971e8cac434ee994a246f4a7e to your computer and use it in GitHub Desktop.
Save Wumpf/4a7bf26971e8cac434ee994a246f4a7e to your computer and use it in GitHub Desktop.
ffmpeg cheatsheet for pic->vid
H264, 25fps:
."C:\Users\andre\ffmpeg.exe" -i %d.png -c:v libx264 -pix_fmt yuv420p output.mp4
H264, 60fps:
."C:\Users\andre\ffmpeg.exe" -framerate 60 -i screenshot%d.png -r 60 -c:v libx264 -pix_fmt yuv420p output.mp4
H265 (windows can't play it!)
."C:\Users\andre\ffmpeg.exe" -i %d.png -c:v libx265 -pix_fmt yuv420p output.mp4
flip vertically:
-vf vflip
."C:\Users\andre\ffmpeg.exe" -i %d.png -vf vflip -c:v libx264 -pix_fmt yuv420p output.mp4
concat two videos (Create a file mylist.txt)
."C:\Users\andre\ffmpeg.exe" -f concat -safe 0 -i mylist.txt -c copy output.mp4
example for mylist:
# this is a comment
file '/path/to/file1.wav'
file '/path/to/file2.wav'
file '/path/to/file3.wav'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment