Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: shntool + flac options (Read 7604 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

shntool + flac options

Hi,

I'm trying to use shntool with flac arguments below but it won't do it.
I have flac.exe in the same dir.

shntool.exe split -f <cuefile> <flacfile> -t %n -o "flac flac --best --replay-gain %f"
shntool [split]: warning: discarding initial zero-valued split point
shntool [split]: warning: error while launching helper program: [--best]
Splitting [Requiem.flac] (54:52.04) --> [split-track01.flac] (7:46.68) :  0% ERROR
shntool [split]: error: could not open output file


It won't work passing parameter to flac.exe. It only works if splitting without flac.exe options

http://www.etree.org/shnutils/shntool/supp...doc/shntool.txt
Tried this but didn't help.


Anyone?

shntool + flac options

Reply #1
according to shntool.txt it should be:

shntool.exe split -f <cuefile> <flacfile> -t %n -o "flac flac --best --replay-gain - %f"

shntool + flac options

Reply #2
Thanks lvqc

Still...

shntool [split]: warning: discarding initial zero-valued split point
Splitting [image.flac] (54:52.04) --> [01.flac] (7:46.68) :  0% ERROR
shntool [split]: warning: error while transferring 82362336 bytes of data
shntool [split]: warning: child encoder process 988 had non-zero exit status 1
shntool [split]: error: failed to split file

shntool + flac options

Reply #3
Try replacing double quotes with single quotes, as is described in the manual.

Code: [Select]
shntool.exe split -f <cuefile> <flacfile> -t %n -o 'flac flac.exe --best --replay-gain - %f'

shntool + flac options

Reply #4
same...



maybe it's a bug of the version build for windows

shntool + flac options

Reply #5
It's been a long time since I've used shntool, but I looked through some batch files I made for use with shntool and noticed that it included the following any time I was converting to flac:

"flac flac -8V -o %%f -"

Note the use of the '-o' switch, the double %, and that the %%f comes before the -

Hopefully modifying that to suit your needs will solve the problem.


 

shntool + flac options

Reply #7
Well,

shntool.exe split -f <cuefile> <flacfile> -t %n -o "flac flac -8V --replay-gain -o %%f -"
won't work

shntool.exe split -f <cuefile> <flacfile> -t %n -o "flac flac --best -o %%f -"
works...

turns out that shntool won't pass parameters to flac.exe
Does't matter if I pass --fast or --better it won't pass the parameter ahead.