LINUX.ORG.RU

вот те копипаст одного из вариантов

1. Grab entire disc (argument 1-) into file CDimage.wav using device /dev/sr0 (argument -d)

$ cdparanoia -w -z -d /dev/sr0 1- CDimage.wav

2. Create CUE-file:

$ mkcue /dev/sr0 > temp.cue

3. Fix CUE-file (replace dummy.wav file name to CDimage.wav):

$ sed -i 's/dummy.wav/CDimage.wav/g' temp.cue

4. Convert CUE-file to TOC-file:

$ cue2toc -o CDimage.toc temp.cue

5. Read disc information from CDDB database and save it to CDimage.toc:

$ cdrdao read-cddb CDimage.toc

5*. CDimage.toc may contain slash-escaped non latin1 characters, so you may want to convert them to ordinary 8-bit symbols:

$ perl -pi -e 's#\\([0-7][0-7][0-7])#chr(oct("0".$1))#ge' CDimage.toc

then you also may want to convert TOC-file to another charset codepage using iconv.

6. Convert TOC-file back to CUE-file:

$ cueconvert CDimage.toc > CDimage.cue

6*. Some kind of workaround to allow k3b to use CUE-file:

perl -pi -e 's#^MESSAGE#REM#g' CDimage.cue

it is required becuase k3b doesn't support CUE element MESSAGE.

7. Convert CDimage.cue into required charset using iconv (if required):

$ iconv -f cp1251 -t utf8 CDimage.cue > CDimage.cue.conv && mv -f CDimage.cue.conv CDimage.cue

8. Remove temporary files:

rm -f CDimage.toc temp.cue

9. Convert wav to flac

flac --best CDimage.wav

annoynymous ★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.