Axis wrote:Hi to all.
This is working fine with command line (cmd.exe):
ffmpeg.exe -i "y:\videos\video.mkv" -map 0
0 -f wav -acodec pcm_f32le -ac 2 - | qaac64.exe --cvbr 192 --quality 2 --ignorelength - -o "y:\audio\track.m4a"
It doesn't work with TC's internal command (using Start Menu), e.g.:
Command:
cmd.exe /C ""%commander_path%\(Tools\ffmpeg\ffmpeg.exe""
Parameters:
?-i %n -map 0
0 -f wav -acodec pcm_f32le -ac 2 - | "%%commander_path%%\(Tools\qaac64.exe"--cvbr 192 --quality 2 --ignorelength - -o "y:\audio\track.m4a"
The console window says:
'"C:\(TCM)\(Tools\ffmpeg\ffmpeg.exe"" -i Video.mkv -map 0
0 -f wav -acodec pcm_f32le -ac 2 - | "C:\' is not recognized as an internal or external command, operable program or batch file.
What's the problem here? I tried other variants but nothing seems to help.
Many thanks.
The problem is that the Pipe is not enclosed in the quotes.
Even if it not a solution using TC only, you can use
TCBL to build an intermediate bat file.
You can use an ini section
Code: Select all
[Convert2m4a]
cmd="%commander_path%\(Tools\ffmpeg\ffmpeg.exe" -i "$f" -map 0:a:0 -f wav -acodec pcm_f32le -ac 2 - | "%commander_path%\(Tools\qaac64.exe" --cvbr 192 --quality 2 --ignorelength - -o "y:\audio\$z.m4a"
and use a command like this
Code: Select all
command: %commander_path%\(Tools\TCBL\tcbl.exe
parameters: -qei %L Convert2m4a
This also work if you select many files at once..