Log in

View Full Version : ogg 6ch extract all tracks separately?


v33da
6th October 2013, 17:44
i know about "Sound Forge may open and after u select track and save as :)" but i dont want do that manually everytime, need some CommandLine tool which do that in 1 click\line

Selur
6th October 2013, 20:39
somthing along the lines of:
ffmpeg.exe -i "path to input file" -a:c copy -map_channel 0.0.0 0.wav -map_channel 0.0.1 1.wav -map_channel 0.0.2 2.wav ...
should work, see: ‘-map_channel [input_file_id.stream_specifier.channel_id|-1][:output_file_id.stream_specifier]’ over at http://www.ffmpeg.org/ffmpeg.html#Advanced-options

Reino
7th October 2013, 13:51
-a:c copy should normally be -c:a copy, but in this case should be omitted:
ffmpeg.exe -i <input> -map_channel 0.0.0 "fl.wav" -map_channel 0.0.1 "fr.wav" -map_channel 0.0.2 "bl.wav" -map_channel 0.0.3 "br.wav"
This works, but ffmpeg complains:
-map_channel is forwarded to lavfi similarly to -af pan=0x4:c0=c0.
[pan @ 02c89d40] This syntax is deprecated. Use '|' to separate the list items.
Hence the following also works:
ffmpeg.exe -i <input> -filter_complex "[0:0]pan=1:c0=c0[fl];[0:0]pan=1:c0=c1[fr];[0:0]pan=1:c0=c2[bl];[0:0]pan=1:c0=c3[br]" ^
-map [fl] "fl.wav" -map [fr] "fr.wav" -map [bl] "bl.wav" -map [br] "br.wav"
...although ffmpeg still complains:
[Parsed_pan_0 @ 02c65ca0] This syntax is deprecated. Use '|' to separate the list items.
And I don't know why.

tebasuna51
7th October 2013, 18:42
Thats work for me:

oggdec -o -b 3 input.ogg | wavsplit - prefix.wav -ignorelength

oggdec.exe from http://www.rarewares.org, wavsplit.exe from BeHappy package.