Last active
May 24, 2018 01:12
-
-
Save andmatand/f90b3c8964be192a7b6c6a65c7119ffb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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