VideoHelp Forum
+ Reply to Thread
Results 1 to 10 of 10
Thread
  1. 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:
    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
    should do this, but I'm missing something (probably obvious), since I get:
    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!
    -> How to do it properly?

    Cu Selur
    Last edited by Selur; 27th Jan 2017 at 11:55.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  2. Change "-filter" to "-filter_complex" like error message says?
    Quote Quote  
  3. doh, I thought it wanted to tell me to do some more complex processing,.. thanks!
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  4. 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' .
    Quote Quote  
  5. I split the channels because I want to test some stuff and need some test samples.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  6. Originally Posted by Selur View Post
    I split the channels because I want to test some stuff and need some test samples.
    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"
    Above works for me perfectly.
    Quote Quote  
  7. But splitting channels means that you create multiple outputs
    No it doesn't it just means to you create multiple mono streams, which can still be placed in one container.
    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 Selur
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  8. Originally Posted by Selur View Post
    But splitting channels means that you create multiple outputs
    No it doesn't it just means to you create multiple mono streams, which can still be placed in one container.
    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 Selur
    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.
    Quote Quote  
  9. 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 Selur
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  10. Originally Posted by Selur View Post
    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 Selur
    lol - you are unbelievable
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!