Skip to content

Instantly share code, notes, and snippets.

@kribblo
Last active March 3, 2021 22:44
Show Gist options
  • Save kribblo/3c4e22125ed310ecc68b892d54856784 to your computer and use it in GitHub Desktop.
Save kribblo/3c4e22125ed310ecc68b892d54856784 to your computer and use it in GitHub Desktop.
Rip CD, make uploadable to Youtube with one image on Ubuntu with abcde and ffmpeg
# Not sure exacty which are needed, this worked
sudo apt install abcde id3 id3v2 eyed3 normalize-audio vorbisgain mkcue ffmpeg flac
# Rip CD, output a cue file with timestamps
abcde -1 -o flac -a default,cue,playlist
# -vf pad is if ffmpeg complains about image not having proportions divisible by 2, adds one pixel black padding
ffmpeg -loop 1 -i IMAGE.jpg -i ALBUM.flac -c:v libx264 -c:a copy -shortest -vf pad="width=ceil(iw/2)*2:height=ceil(ih/2)*2" -strict -2 ALBUM.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment