Simple flac2mp3 using metaflac, lame and id3.

#!/bin/bash

find . -type f -name "*.flac" -print0 | while read -d $'\0' a

do
    OUTF=${a%.flac}.mp3

    ARTIST=`metaflac "$a" --show-tag=ARTIST | sed s/.*=//g`
    TITLE=`metaflac "$a" --show-tag=TITLE | sed s/.*=//g`
    ALBUM=`metaflac "$a" --show-tag=ALBUM | sed s/.*=//g`
    GENRE=`metaflac "$a" --show-tag=GENRE | sed s/.*=//g`
    TRACKNUMBER=`metaflac "$a" --show-tag=TRACKNUMBER | sed s/.*=//g`
    DATE=`metaflac "$a" --show-tag=DATE | sed s/.*=//g`

    flac -c -d "$a" | lame -m j -q 0 --vbr-new -V 0 -s 44.1 - "$OUTF"
    id3 -t "$TITLE" -T "${TRACKNUMBER:-0}" -a "$ARTIST" -A "$ALBUM" -y "$DATE" -g "${GENRE:-12}" "$OUTF"
done

 

Comments  

#2 ebajarpohere 2019-04-03 01:15
http://theprettyguineapig.com/amoxicillin/ - Amoxicillin 500mg Capsules Amoxicillin For Sale lbp.dtpc.rootarea.de.vgm.wg http://theprettyguineapig.com/amoxicillin/
Quote
#1 uruqesosef 2019-04-03 00:34
http://theprettyguineapig.com/amoxicillin/ - Amoxicillin Generic Amoxicillin 500 Mg ubs.hduf.rootarea.de.nzs.iv http://theprettyguineapig.com/amoxicillin/
Quote

Add comment

Security code
Refresh