Skip to content

Instantly share code, notes, and snippets.

@andmatand
Last active May 24, 2018 01:12
Show Gist options
  • Save andmatand/f90b3c8964be192a7b6c6a65c7119ffb to your computer and use it in GitHub Desktop.
Save andmatand/f90b3c8964be192a7b6c6a65c7119ffb to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ $# -eq 0 ]
then
echo "usage: $0 <disc number>"
exit
fi
discnumber=$(printf "%02d" $1)
discname="Disc $discnumber"
wav_path=$discname.wav
mp3_path=$discname.mp3
cdparanoia --abort-on-skip --output-wav 1- "$wav_path" || exit
lame -V 3 "$wav_path" "$mp3_path"
eject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment