Skip to content

Instantly share code, notes, and snippets.

@webdevsuperfast
Created October 13, 2021 01:05
Show Gist options
  • Select an option

  • Save webdevsuperfast/d78c41359d2e49819b0f31fcd3860313 to your computer and use it in GitHub Desktop.

Select an option

Save webdevsuperfast/d78c41359d2e49819b0f31fcd3860313 to your computer and use it in GitHub Desktop.
Rip Audio CDs with CDParanoia & FFMpeg
#!/bin/sh
cdparanoia -Q 2>&1 |
grep "^ *[1-9]" |
sed -e 's/^ *\|\..*//g' |
while read t; do
cdparanoia $t - | ffmpeg -i pipe: -c:a 128k -ar 44100 -ac 2 -y "rip $t.mp3";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment