IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
shntool + flac options
Azevedo
post Apr 27 2013, 17:27
Post #1





Group: Members
Posts: 100
Joined: 3-November 08
Member No.: 61632



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?
Go to the top of the page
+Quote Post
lvqcl
post Apr 27 2013, 20:26
Post #2





Group: Developer
Posts: 3418
Joined: 2-December 07
Member No.: 49183



according to shntool.txt it should be:

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

This post has been edited by lvqcl: Apr 27 2013, 20:26
Go to the top of the page
+Quote Post
Azevedo
post Apr 28 2013, 01:17
Post #3





Group: Members
Posts: 100
Joined: 3-November 08
Member No.: 61632



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
Go to the top of the page
+Quote Post
deus-ex
post Apr 28 2013, 06:42
Post #4





Group: Members
Posts: 284
Joined: 9-September 04
From: Earth
Member No.: 16882



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

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


This post has been edited by deus-ex: Apr 28 2013, 06:43


--------------------
Best regards
deus-ex (MODLAND admin: ftp://modland.ziphoid.com)
Go to the top of the page
+Quote Post
Azevedo
post Apr 28 2013, 14:56
Post #5





Group: Members
Posts: 100
Joined: 3-November 08
Member No.: 61632



same...

sad.gif

maybe it's a bug of the version build for windows
Go to the top of the page
+Quote Post
Deep_Elem
post Apr 28 2013, 18:55
Post #6





Group: Members
Posts: 120
Joined: 14-April 04
Member No.: 13473



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.
Go to the top of the page
+Quote Post
lvqcl
post Apr 28 2013, 19:07
Post #7





Group: Developer
Posts: 3418
Joined: 2-December 07
Member No.: 49183



QUOTE (Deep_Elem @ Apr 28 2013, 21:55) *
Note the use of the '-o' switch
!!! emot-science.gif

QUOTE (Deep_Elem @ Apr 28 2013, 21:55) *
the double %
AFAIK it's necessary only for commands inside batch files.

QUOTE (Deep_Elem @ Apr 28 2013, 21:55) *
and that the %%f comes before the -
I don't think it's important.
Go to the top of the page
+Quote Post
Azevedo
post Apr 29 2013, 01:34
Post #8





Group: Members
Posts: 100
Joined: 3-November 08
Member No.: 61632



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.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 30th October 2014 - 16:14