Convert and Split Ape Cue to Flac
“I have a 44GB (yes, forty-four) folder of .ape CD files. Each .ape is a complete CD, and there is usually a .cue file along with each .ape. I need to convert but not split these, since there's no cue data to go by. There are also some .jpgs and .logs in there too, which I don't care about. If a tree command output helps visualize this, here you go:\r\n\r\n ├── Philips Mozart Collection - 180 CD\r\n │ │ ├── box01-Symphonies\r\n │ │ │ ├── 1B.jpg\r\n │ │ │ ├── 1F.jpg\r\n │ │ │ ├── cd01\r\n │ │ │ │ ├── CDImage.ape\r\n │ │ │ │ ├── CDImage.ape.cue\r\n │ │ │ │ ├── Complete Mozart Edition, Vol. 01, Early Symphonies (Disc 1) - Neville Mariner, Academy of St. Martin in the Fields.log\r\n │ │ │ │ ├── img421.jpg\r\n │ │ │ │ └── img422.jpg\r\n │ │ │ ├── cd02\r\n │ │ │ │ └── CDImage.ape\r\n │ │ │ ├── cd03\r\n │ │ │ │ ├── CDImage.ape\r\n │ │ │ │ ├── CDImage.ape.cue\r\n │ │ │ │ ├── Complete Mozart Edition, Vol. 01, Early Symphonies (Disc 2) - Sir Neville Marinner - Acadamy of St Martin in the Fields.log\r\n │ │ │ │ ├── img426.jpg\r\n │ │ │ │ └── img427.jpg\r\n │ │ │ ├── cd04\r\n\r\netc… all the way to 180 CDS.\r\n\r\nBasically, I want to split all the .ape files into multiple .flac files, and copy over the tag info from the .cue, keeping the directory structure (preferably in a completely new and different directory). I prefer a single-line command to a script if possible. How would I go about this? Thanks to anyone who knows how to do this!\r\n\r\n\r\nAnd before anyone flags this question as a duplicate to this one here:\r\nhttps://askubuntu.com/questions/547447/convert-all-ape-files-to-flac-in-different-subfolders, I would like to point out that that user didn't need to split the .ape into multiple .flacs.\r\n\r\n”
<a href=““https://askubuntu.com/questions/756800/batch-convert-and-split-ape-with-cue-to-flac-in-various-folders-from-terminal"">— “willem.hill”