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:14] – melo | cheatsheet:ffmpeg [2026/07/16 00:33] (current) – melo | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| [[https:// | [[https:// | ||
| + | |||
| + | ==== audio conversion ==== | ||
| + | |||
| + | === FLAC to MP3 === | ||
| + | |||
| + | <code bash> | ||
| + | ffmpeg -i " | ||
| + | </ | ||
| ==== video to frames ==== | ==== video to frames ==== | ||
| - | see '' | + | see '' |
| === 1/1 frames === | === 1/1 frames === | ||
| Line 19: | Line 27: | ||
| <code bash> | <code bash> | ||
| ffmpeg -i " | ffmpeg -i " | ||
| + | </ | ||
| + | |||
| + | === avoid dupe frames === | ||
| + | |||
| + | <code bash> | ||
| + | ffmpeg -i " | ||
| + | </ | ||
| + | |||
| + | ==== cut based on timestamps ==== | ||
| + | |||
| + | <code bash> | ||
| + | # cut from the first minute to the second minute | ||
| + | ffmpeg -i " | ||
| + | </ | ||
| + | |||
| + | ==== scale/ | ||
| + | |||
| + | <code bash> | ||
| + | # replace 540 with 480, 720, 1080, etc | ||
| + | ffmpeg -i " | ||
| </ | </ | ||
| Line 40: | Line 68: | ||
| <code bash> | <code bash> | ||
| - | for f in *.mkv; do ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i " | + | for f in *.mkv; do ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i " |
| </ | </ | ||
cheatsheet/ffmpeg.1755310452.txt.gz · Last modified: by melo
