< Back to list

ffmpeg

CLI

Convert To GIF
ffmpeg -i <input> -vf "fps=10,scale=320:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 output.gif
FLAC to MP3

https://unix.stackexchange.com/a/164056
https://stackoverflow.com/a/40313706

find -name "*.flac" -exec bash -c 'ffmpeg -y -i "{}" -codec:a libmp3lame -q:a 0 -map_metadata 0 -id3v2_version 3 -write_id3v1 1 "${0/.flac}.mp3"' {} \;
Quick Convert or Compress
ffmpeg -i input.mkv output.mp4