cheatsheet:ffmpeg
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cheatsheet:ffmpeg [2025/08/16 02:09] – melo | cheatsheet:ffmpeg [2025/08/16 02:26] (current) – melo | ||
---|---|---|---|
Line 4: | Line 4: | ||
[[https:// | [[https:// | ||
+ | |||
+ | ==== audio ==== | ||
+ | |||
+ | === FLAC to MP3 === | ||
+ | |||
+ | one-off: | ||
+ | |||
+ | <code bash> | ||
+ | ffmpeg -i " | ||
+ | </ | ||
+ | |||
+ | bash loop: | ||
+ | |||
+ | <code bash> | ||
+ | for f in *.flac; do ffmpeg -i " | ||
+ | </ | ||
==== video to frames ==== | ==== video to frames ==== | ||
Line 23: | Line 39: | ||
==== re-encode ==== | ==== re-encode ==== | ||
+ | now mostly consolidated in '' | ||
+ | === x264 (AVC), no GPU === | ||
+ | |||
+ | <code bash> | ||
+ | ffmpeg -i " | ||
+ | </ | ||
+ | |||
+ | === x265 (HEVC), no GPU === | ||
+ | |||
+ | <code bash> | ||
+ | ffmpeg -i " | ||
+ | </ | ||
+ | |||
+ | === x265 (HEVC), GPU, bash loop === | ||
+ | |||
+ | <code bash> | ||
+ | for f in *.mkv; do ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i " | ||
+ | </ | ||
+ | |||
+ | === AVI/ | ||
+ | |||
+ | <code bash> | ||
+ | for f in *.avi; do ffmpeg -fflags +genpts -i " | ||
+ | </ | ||
+ | |||
+ | === copy video, remove audio, bash loop === | ||
+ | |||
+ | <code bash> | ||
+ | for f in *.mp4; do ffmpeg -i " | ||
+ | </ | ||
+ | |||
+ | === camcorder sources === | ||
+ | |||
+ | GPU accelerated camcorder source MPEG+AC3+VOBSUB to x264+AC3+VOBSUB (little to no file size reduction, for web uploads) | ||
+ | |||
+ | <code bash> | ||
+ | ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -extra_hw_frames 10 -i " | ||
+ | </ |
cheatsheet/ffmpeg.1755310158.txt.gz · Last modified: by melo