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/09/11 04:44] – melo | cheatsheet:ffmpeg [2026/07/16 00:33] (current) – melo | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| [[https:// | [[https:// | ||
| - | ==== audio ==== | + | ==== audio conversion |
| === FLAC to MP3 === | === FLAC to MP3 === | ||
| - | |||
| - | one-off: | ||
| <code bash> | <code bash> | ||
| ffmpeg -i " | ffmpeg -i " | ||
| - | </ | ||
| - | |||
| - | bash loop: | ||
| - | |||
| - | <code bash> | ||
| - | for f in *.flac; do ffmpeg -i " | ||
| </ | </ | ||
| ==== video to frames ==== | ==== video to frames ==== | ||
| - | see '' | + | see '' |
| === 1/1 frames === | === 1/1 frames === | ||
| Line 35: | 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 " | ||
| </ | </ | ||
cheatsheet/ffmpeg.1757565865.txt.gz · Last modified: by melo
