cheatsheet:ffmpeg
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| cheatsheet:ffmpeg [2025/08/16 02:08] – created melo | cheatsheet:ffmpeg [2025/09/11 04:44] (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 19: | Line 35: | ||
| <code bash> | <code bash> | ||
| ffmpeg -i " | ffmpeg -i " | ||
| + | </ | ||
| + | |||
| + | ==== 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.1755310118.txt.gz · Last modified: by melo
