enzo1982 / freac

The fre:ac audio converter project
https://www.freac.org/
GNU General Public License v2.0
1.42k stars 75 forks source link

Enable .cue loading and automatically split the input to bunch of output file #507

Open FluffyDiscord opened 1 year ago

FluffyDiscord commented 1 year ago

Is your feature request related to a problem? Please describe. freac is skipping .cue (unable to open file) and then converting the whole one file into another one output file. I would love if it would automatically split the input using the .cue information and straight forward output the splitted parts.

Describe the solution you'd like Please add checkbox that will enable loading .cue files and auto splitting when converting

Describe alternatives you've considered Use another ancient software

Additional context None

enzo1982 commented 1 year ago

fre:ac should be able to open .cue files and display/convert the tracks belonging to it - either by dragging & dropping the .cue file onto the joblist or using the Add files dialog.

If it cannot open your .cue file, there may be something wrong with it. Please attach the .cue file here in that case (you may need to zip it to be able to upload it here) so I can check it.

On the off chance that your .cue file is in UTF-16 format, support for that was added after v1.1.7 and is available in current continuous builds.

FluffyDiscord commented 1 year ago

Various Artists - Anime Hot Wave.cue.remove.the.zip Here example that says "unable to open file" and I do use the 1.1.7 version

enzo1982 commented 1 year ago

Thank you for providing the example. I see two possible issues there:

  1. The cue sheet specifies the pre gap for each new track as part of the previous file. This is unfortunately not supported by fre:ac and the current version will produce a wrong track list (with the first track appearing twice and the last track missing). However, it should still be able to open the cue sheet.
  2. The audio file names referenced in the cue sheet look like Japanese characters have been replaced by dots. For example, the cue sheet contains references to these files:

01 Yuko Nito ..........wav 02 Meiko Nakahara .·.·.·....·......wav 07 Ippo Hiura .....!.......wav

I suspect the actual files have Kanji/Kana in place of the dots, so a program reading the cue sheet will not be able to find the referenced files.

I will be able to fix the first issue and add support for multi-file cue sheets with pre gaps attached to previous tracks, but the second issue is on your end.

Also, a related observation: You write that you want to split the input to multiple output files, but the cue sheet you sent is actually a multi-file cue sheet. So there's no need to split anything. You should have the .wav files for the individual tracks next to the cue sheet already.