18 ноября, 2009

Как разбить FLAC по CUE


Первый способ.
Устанавливаем shntool, flac, cuetools:
# aptitude install shntool flac cuetools

Далее выполняем подобные инструкции:
$ cuebreakpoints CannedWheat.cue | shnsplit -o flac CannedWheat.flac
$ cuetag CannedWheat.cue split-track*.flac


Второй способ.
Используем скрипт, предложенный Александром: split2flac
$ ./split2flac.sh CannedWheat.flac -cue CannedWheat.cue -o .

6 комментариев:

  1. Практически то же самое нашёл когда-то, но есть пара нюансов:

    To work with monkey’s audio (ape) files you need the “mac” command line tool. This software isn’t available in the Ubuntu repositories so you will need to either compile mac yourself, or alternatively install it from a .deb file.
    http://debian-multimedia.org/pool/main/m/monkeys-audio/monkeys-audio.php

    sudo apt-get install cuetools shntoolflac
    cuebreakpoints sample.cue | shnsplit -o flac sample.flac
    or
    cuebreakpoints sample.cue | shnsplit -o flac sample.ape
    or
    shntool split -t '%n - %t' -o flac -f smaple.cue sample.ape


    Transferring tags
    The audio files output by shnsplit do not contain tag data. However you can use the “cuetag” script (installed as part of the cuetools package) to transfer tag data directly from a cue file to your split audio files. You specify the individual audio files corresponding to the tracks contained in your cue file as follows:
    cuetag sample.cue *.flac

    ОтветитьУдалить
  2. @OlegoroV
    как Вы могли заметить эта заметка о FLAC, а не о APE (!)

    ОтветитьУдалить
  3. Это заметка о разбивке на флаки.
    И в сети полно единых образов как в cue, так и в ape.
    Вот я и счёл возможным дополнить эту заметку. Тем более, что утилиты те же.

    ОтветитьУдалить
  4. Есть уже готовый скрипт для этих дел, очень удобный в использовании :

    Split2flac splits one big APE/FLAC/WV file to FLAC/MP3/OGG tracks with tagging, renaming and album cover images. It also uses configuration file, so no need to pass a lot of arguments every time, only an input file.


    http://code.google.com/p/split2flac/

    ОтветитьУдалить
  5. Имхо, уже давно пора пользоваться готовыми, более универсальными решениями вроде такого - https://www.legroom.net/software/convtoflac

    ОтветитьУдалить
  6. @Александр
    Спасибо большое, пришлось правда mercurial клиент ставить
    как оказалось использует те же shntool, cuetools, но делает всё прозрачнее способа, описанного в заметке
    @stanislav
    не вижу ни одного упоминания CUE в предложенном Вами скрипте

    ОтветитьУдалить