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 ae28d2a1f9181f332e21342ac84ae2bf2a79bb5b
parent 0d0417102f895bd8681f51fea54f6aa31ab61a16
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sat, 12 Oct 2019 08:31:40 +0200

Use ffmpeg for mp3>wav, and cdio for writing CD

Diffstat:
M.local/bin/burn-audio-cd.sh | 18+++++++-----------
1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/.local/bin/burn-audio-cd.sh b/.local/bin/burn-audio-cd.sh @@ -29,19 +29,15 @@ for f in "$@"; do if [ -e "$outwav" ]; then echo "$outwav exists, skipping..." else - if [ "$extension" = "mp3" ]; then - mpg123 --rate 44100 --stereo --buffer 3072 --resync -w \ - "$outwav" "$f" || \ - lame --decode "$f" "$outwav" - elif [ "$extension" = "m4a" ]; then - faad "$f" - else - ffmpeg -i "$f" "$outwav" - fi + ffmpeg -i "$f" "$outwav" fi done -# burn wav as audio cd (remove -dummy to really burn) -cdrecord -v -pad speed=1 -dao -swab ./*.wav +# burn wav as audio cd +if type cdio >/dev/null 2>&1; then + doas cdio tao -a -s auto ./*.wav +else + cdrecord -v -pad speed=1 -dao -swab ./*.wav +fi rm ./*.wav