Results 1 to 1 of 1

Thread: Splitting FLAC files in different sub-directories

  1. #1
    Join Date
    Jul 2009
    Beans
    224
    Distro
    Xubuntu 13.04 Raring Ringtail

    Splitting FLAC files in different sub-directories

    TO ADMINS: Sorry I created this thread in the devel section, please move it to "encoding and programming language" (dont remember the exact name)... thx

    Hi there:

    I have 33 sub-directories with 33 flac files and their respective cue files. I have found some code to split it:

    https://bbs.archlinux.org/viewtopic.php?id=75774

    That works well for each of the sub-directories, but I was wondering if, instead of going one sub-directory by one, there is an automated way of doing it (for example, a script that searches for all FLAC and CUE files inside the directory that contains the 33 sub-directories).

    Also, for the same script:

    I'd rather have the output in the same sub-directory, not in a newly created "split" sub-directory, as it happens with this code (notice the "mkdir split" lines in each of the audio formats. I have tried with removing that line, but then the script gives error. What else do I have to edit to achieve this?

    Please compare:

    original:

    Code:
        *.flac*)
            mkdir split
            shnsplit -d split -f *.cue -o "flac flac -V --best -o %f -" *.flac -t "%n %p - %t"
            rm -f split/00*pregap*
            cuetag.sh *.cue split/*.flac
            exit
    will this one work?

    Code:
        *.flac*)
            shnsplit -d -f *.cue -o "flac flac -V --best -o %f -" *.flac -t "%n %p - %t"
            rm -f split/00*pregap*
            cuetag.sh *.cue split/*.flac
            exit
    I dont know which "split" are the ones that make reference to the directory and what others, if any, are needed to perform the action of split. I got rid of one, but I dont have a clue. Help appreciated
    Last edited by hihihi100; July 11th, 2012 at 06:46 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •