I got a 7.1 audio file (single audio stream) and I want to create a single output file which contains the 8 channels as mono stream.
I thought that:
should do this, but I'm missing something (probably obvious), since I get:Code:ffmpeg -y -i "f:\TestClips&Co\audio\Audio channel test files\DTS Master Audio, 7.1 channels, 24 bits, 96kHz.dtsma" -filter channelsplit=channel_layout=7.1 -acodec pcm_s32le "f:\TestClips&Co\audio\Audio channel test files\split_7.1.mka
-> How to do it properly?Code:Simple filtergraph 'channelsplit=channel_layout=7.1' was expected to have exactly 1 input and 1 output. However, it had 1 input(s) and >1 output(s). Please adjust, or use a complex filtergraph (-filter_complex) instead. Error opening filters!
Cu Selur
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 10 of 10
Thread
-
Last edited by Selur; 27th Jan 2017 at 11:55.
users currently on my ignore list: deadrats, Stears555 -
doh, I thought it wanted to tell me to do some more complex processing,.. thanks!
users currently on my ignore list: deadrats, Stears555 -
Why splitting channels? Just decode channels to PCM and write in container supporting multiple audio tracks (such as wav).
And audio filter is '-af' not '-filter' . -
I split the channels because I want to test some stuff and need some test samples.
users currently on my ignore list: deadrats, Stears555 -
But splitting channels means that you create multiple outputs - that's why you have complains from ffmpeg - by decoding multiple tracks format to another multiple track container you not splitting channels and wav keeps channel structure.
Code:@ffmpeg -y -i %1 -vn -sn -dn -c:a pcm_f32le -f wav "%~n1_pcm.wav"
-
But splitting channels means that you create multiple outputs
The call I posted works fine, after adjusting '-filter' to '-filter_complex' like sneaker suggested.
-> I got a nice container with the 8 channels I wanted.
Cu Selurusers currently on my ignore list: deadrats, Stears555 -
Same above - tested with 7.1 source DTS sample and ffmpeg created single wav containing all 8 channels created correctly.
https://ffmpeg.org/ffmpeg-filters.html#channelsplit
Split each channel from an input audio stream into a separate output stream. -
Your call converts the 7.1 audio to a single wav file which contains one audio stream with 8 channels and a 7.1 channel mapping.
My call converts the 7.1 audio to a single output file with 8 separate audio stream (order by wav channel mapping).
Those are two different things and my call does what I needed.
About 'channelsplit': you might want to read up on what the channel_layout sub-option does, before blindly quoting stuff and not properly looking at the used call.
-> my problem was solved by sneaker and you seem to be trying to invent problems which never existed in the first place.
Cu Selurusers currently on my ignore list: deadrats, Stears555
Similar Threads
-
How to get ffmpeg to split on keyframe?
By yetanotherlogin in forum EditingReplies: 12Last Post: 4th Aug 2015, 04:53 -
FFMPEG: can "select" audio channels using -acodec copy?
By marcorocchini in forum Newbie / General discussionsReplies: 9Last Post: 25th Feb 2015, 19:04 -
Split channels of a dual-channel MP3 without re-encoding
By zuja9 in forum AudioReplies: 11Last Post: 19th Aug 2012, 18:15 -
Demultiplexing of 4 video channels and 2 audio channels.
By jays_jays30 in forum Video ConversionReplies: 1Last Post: 9th Jul 2012, 09:29 -
.MKV Audio can only be split into 2 channels once extracted (I want 6)
By 54321blastoff in forum AudioReplies: 3Last Post: 28th Feb 2012, 18:31