O simpla si o rapida conversie din flac catre mp3 se poate face folosind bash scripting si cateva utilitare :

# vi script.sh

  1. #!/bin/bash
  2.  
  3. for a in *.flac
  4.  
  5. do
  6. OUTF=`echo "$a" | sed s/\.flac$/.mp3/g`
  7.  
  8. ARTIST=`metaflac "$a" –show-tag=ARTIST | sed s/.*=//g`
  9. TITLE=`metaflac "$a" –show-tag=TITLE | sed s/.*=//g`
  10. ALBUM=`metaflac "$a" –show-tag=ALBUM | sed s/.*=//g`
  11. GENRE=`metaflac "$a" –show-tag=GENRE | sed s/.*=//g`
  12. TRACKNUMBER=`metaflac "$a" –show-tag=TRACKNUMBER | sed s/.*=//g`
  13. DATE=`metaflac "$a" –show-tag=DATE | sed s/.*=//g`
  14.  
  15. id3 -t "$TITLE" -T "${TRACKNUMBER:-0}" -a "$ARTIST" -A "$ALBUM" -y "$DATE" -g "${GENRE:-12}" "$OUTF"
  16.  
  17. done

Leave a Reply