cheatsheet:ffmpeg
This is an old revision of the document!
Table of Contents
ffmpeg cheatsheet
not linking that man page good lord
video to frames
see ~/.local/bin/vidtools
(dotfiles) for the default/most used option (every frame including duplicates).
1/1 frames
ffmpeg -i "$FILE" -filter:v fps=fps=1/1 %04d.jpg
1/2 frames
ffmpeg -i "$FILE" -filter:v fps=fps=1/2 %04d.jpg
re-encode
now mostly consolidated in vidtools
(linked above), but copied here just in case.
x264 (AVC), no GPU
ffmpeg -i "$FILE.mp4" -c:v libx264 -crf 18 -c:a copy -c:s copy "$FILE.mkv"
x265 (HEVC), no GPU
ffmpeg -i "$FILE.mp4" -c:v libx265 -vtag hvc1 -crf 18 -c:a copy -c:s copy "$FILE.mkv"
cheatsheet/ffmpeg.1755310308.txt.gz ยท Last modified: by melo