FFMPEG Scripts


  • .mp4 -> .gif
ffmpeg -i file.mp4 -pix_fmt rgb24 file.gif # for .mov ffmpeg -i file.mov -pix_fmt rgb24 file.gif
  • MetaData -> AudioFiles
ffmpeg -i temp-song.mp3 -i 'https://i.scdn.co/image/ab67616d0000b27350f77a16132e5b82f8c80d63' -map 0:0 -map 1:0 -metadata:s:v title="Album cover" -metadata:s:v comment="Cover (front)" -metadata title="title" -metadata artists="artists" -metadata album="album" -metadata date="date" -c copy 'song.mp3' && rm temp-song.mp3
  • .mp4 -> .mp3
ffmpeg -i video.mp4 -vn audio.mp3
  • .mov -> .mp4
ffmpeg -i vid.mov -q:v 0 file.mp4