diff options
author | vulonkaaz <7442677+vulonkaaz@users.noreply.github.com> | 2024-08-09 19:21:18 +0200 |
---|---|---|
committer | vulonkaaz <7442677+vulonkaaz@users.noreply.github.com> | 2024-08-09 19:21:18 +0200 |
commit | 8375c66fd4f9112c826dcfcd0770ad97b1f85016 (patch) | |
tree | 7cc9928ef2b228b4f8a0a603251afa8bb2f25e4c /autorip.sh |
initial commit
Diffstat (limited to 'autorip.sh')
-rwxr-xr-x | autorip.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/autorip.sh b/autorip.sh new file mode 100755 index 0000000..b184c8d --- /dev/null +++ b/autorip.sh @@ -0,0 +1,31 @@ +#!/bin/sh +# +# script to rip, encode and tag a CD using cdparanoia, ffmpeg and id3v2 + +cd ~/music +echo "Artist ?" +read artist +echo "Album name ?" +read album +echo "Year ?" +read year + +mkdir "$artist - $album" +cd "$artist - $album" + +cdparanoia -B + +for track in *.cdda.wav +do + number=$(echo $track|sed "s/track//;s/.cdda.wav//") + echo "name of track $number ?" + read title + + ffmpeg -i $track -acodec flac -compression_level 12 "$number $title.flac" + id3v2 -a "$artist" -A "$album" -y $year -t "$title" -T $number "$number $title.flac" +done + +rm *.cdda.wav + +# for f in *.flac; do metaflac --import-picture-from="cover.jpg" "$f"; done +# mpc update |