dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 5ca6fdf4965f9e78dc9e60814ced42504d0f525d
parent bbcd6372680ef240885f9d41a845a0dfd68af105
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri, 28 Dec 2018 22:40:31 +0100

Add verification of output cd

Diffstat:
Mlinks/bin/burn-audio-cd.sh | 17+++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/links/bin/burn-audio-cd.sh b/links/bin/burn-audio-cd.sh @@ -32,6 +32,8 @@ for f in "$@"; do "$outwav" "$f" elif [ "$extension" = "m4a" ]; then faad "$f" + else + ffmpeg -i "$f" "$outwav" fi done @@ -41,10 +43,21 @@ cdrecord -dummy -v -pad speed=1 dev="$drive" -dao -swab *.wav read -p "Really burn to $drive? [y/N] " -n 1 -r echo if [[ $REPLY =~ ^[Yy]$ ]]; then + #cdrecord -v -eject -pad speed=1 dev="$drive" -dao -swab *.wav cdrecord -v -pad speed=1 dev="$drive" -dao -swab *.wav else exit 1 fi -eject "$drive" -rm *.wav +# test cd +mpv cdda:// +read -p "Did this sound OK? [y/N] " -n 1 -r +echo +if [[ $REPLY =~ ^[Yy]$ ]]; then + rm *.wav + eject "$drive" + exit 0 +else + echo "Keeping wav files. Please try again." + exit 1 +fi