source: flacrip/trunk/flac2mp3s @ 17

Last change on this file since 17 was 2, checked in by peter, 13 years ago

added flac2mp3s utility that uses flactrack to convert a single flac file into a directory of mp3 files, one per track

  • Property svn:executable set to *
File size: 236 bytes
RevLine 
[2]1#!/bin/bash
2FLAC=$1
3DIR=`echo $FLAC | sed s/\.flac$//`
4mkdir -p $DIR
5metaflac --export-cuesheet-to - $FLAC | \
6    grep 'TRACK' | cut -d' ' -f4 | \
7    while read TRACKNUM; \
8        do flactrack -D $TRACKNUM=$DIR/$TRACKNUM $FLAC; \
9    done;
Note: See TracBrowser for help on using the repository browser.