HydrogenAudio

Lossless Audio Compression => FLAC => Topic started by: Azevedo on 2013-04-27 17:27:10

Title: shntool + flac options
Post by: Azevedo on 2013-04-27 17:27:10
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 (http://www.etree.org/shnutils/shntool/support/doc/shntool.txt)
Tried this but didn't help.


Anyone?
Title: shntool + flac options
Post by: lvqcl on 2013-04-27 20:26:07
according to shntool.txt it should be:

shntool.exe split -f <cuefile> <flacfile> -t %n -o "flac flac --best --replay-gain - %f"
Title: shntool + flac options
Post by: Azevedo on 2013-04-28 01:17:30
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
Title: shntool + flac options
Post by: deus-ex on 2013-04-28 06:42:19
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'
Title: shntool + flac options
Post by: Azevedo on 2013-04-28 14:56:49
same...



maybe it's a bug of the version build for windows
Title: shntool + flac options
Post by: Deep_Elem on 2013-04-28 18:55:35
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.
Title: shntool + flac options
Post by: lvqcl on 2013-04-28 19:07:19
Note the use of the '-o' switch
!!! 

the double %
AFAIK it's necessary only for commands inside batch files.

and that the %%f comes before the -
I don't think it's important.
Title: shntool + flac options
Post by: Azevedo on 2013-04-29 01:34:28
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.