Skip to main content

Topic: shntool + flac options (Read 4789 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • Azevedo
  • [*][*][*]
  • Banned
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?

  • lvqcl
  • [*][*][*][*][*]
  • Developer
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"
  • Last Edit: 27 April, 2013, 03:26:30 PM by lvqcl

  • Azevedo
  • [*][*][*]
  • Banned
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

  • deus-ex
  • [*][*][*][*]
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'
  • Last Edit: 28 April, 2013, 01:43:21 AM by deus-ex
Best regards
deus-ex

  • Azevedo
  • [*][*][*]
  • Banned
shntool + flac options
Reply #4
same...



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

  • Deep_Elem
  • [*][*][*]
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.

  • lvqcl
  • [*][*][*][*][*]
  • Developer
shntool + flac options
Reply #6
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.

  • Azevedo
  • [*][*][*]
  • Banned
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.