transcode_music.sh | ●●●●● patch | view | raw | blame | history |
transcode_music.sh
@@ -15,8 +15,8 @@ if [ "ffprobe -show_format 2>/dev/null $d | grep bit_rate | cut -d'=' -f2" > 192000 ]; then echo in $d echo out "trans_music/$(echo ${d%.*} | cut -f1 -d'/' --complement).mp3" ffmpeg -i "$d" -b:a $bitrate "trans_music/$(echo $d | cut -f1 -d'.' | cut -f2,3,4,5 -d'/').mp3" ffmpeg -i "$d" -b:a $bitrate "trans_music/$(echo ${d%.*} | cut -f1 -d'/' --complement).mp3" else cp "$d" "trans_music/$(echo $d | cut -f2,3,4,5 -d'/')" cp "$d" "trans_music/$(echo $d | cut -f1 -d'/' --complement)" fi done