Last active
December 15, 2015 00:48
-
-
Save jackyueq/5175042 to your computer and use it in GitHub Desktop.
FLAC 2 CD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # flac2cd.sh - Recreate a CD from FLAC file $1. | |
| # Written 4 Apr 2007 by M. Dickerson (too trivial for a license, | |
| # don't you think?) | |
| set -e | |
| ME=`basename $0` | |
| AUDIO=`tempfile -p $ME` | |
| CUE=`tempfile -p $ME` | |
| FLAC=$1 | |
| metaflac --export-cuesheet-to=- "$FLAC" | sed s!dummy.wav!$AUDIO! > $CUE | |
| flac -f -o $AUDIO -d "$FLAC" | |
| cdrecord -dao --cuefile=$CUE | |
| rm $CUE $AUDIO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment