Properly downmix 5.1 to stereo using ffmpegConverting 5.1 audio to stereo and keeping both tracksConvert...

How do I prevent a homebrew Grappling Hook feature from trivializing Tomb of Annihilation?

Plausible reason for gold-digging ant

Custom shape shows unwanted extra line

Why avoid shared user accounts?

Does an Eldritch Knight's Weapon Bond protect him from losing his weapon to a Telekinesis spell?

What's the oldest plausible frozen specimen for a Jurassic Park style story-line?

Is there a way to store 9th-level spells in a Glyph of Warding or similar method?

Why didn't the 2019 Oscars have a host?

Renting a 2CV in France

Why didn't Tom Riddle take the presence of Fawkes and the Sorting Hat as more of a threat?

A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?

What makes papers publishable in top-tier journals?

Potential client has a problematic employee I can't work with

Boss asked me to sign a resignation paper without a date on it along with my new contract

Will rerolling initiative each round stop meta-gaming about initiative?

What is the wife of a henpecked husband called?

Converting very wide logos to square formats

How is this property called for mod?

Which RAF squadrons and aircraft types took part in the bombing of Berlin on the 25th of August 1940?

How vim overwrites readonly mode?

Is `Object` a function in javascript?

Does the ditching switch allow an A320 to float indefinitely?

What to do with threats of blacklisting?

When obtaining gender reassignment/plastic surgery overseas, is an emergency travel document required to return home?



Properly downmix 5.1 to stereo using ffmpeg


Converting 5.1 audio to stereo and keeping both tracksConvert Audio 5.1 to StereoIs LFE channel completely lost when downmixing 5.1 to stereo using ffmpeg?Getting VLC to output 5.1 audioUse all 5.1 speakers with 2 channel audio sourcesPulseaudio remixing handles subwoofer / center volume differentlyHow to compress audio track in to another track in ffmpegffmpeg downmix to 5.1+2.0 from 5.1FFMPEG convert audio track to mono and pan full right / leftIs LFE channel completely lost when downmixing 5.1 to stereo using ffmpeg?How can I mix 2.0 stereo to surround channels over HDMI?Handbrake’s stereo downmixing of an MKV 5.1 audio track results in “Center” being right channel and practically nothing is the left channel













17















I have a 5.1 audio track from a film where front left and front right contains music, and center contains dialogue. Playing the 5.1 track in VLC blends everything together nicely.



I'm trying to convert the 5.1 track to stereo using ffmpeg -ac 2, however the resulting stereo mix has a much weaker volume than playing the 5.1 track natively.



Adding -af "pan=stereo|c0=FL|c1=FR" gives the correct volume, but then there is no dialogue because the center channel is not included.



So the solution is maybe to mix left/center/right into stereo, and throw out the back end subwoofer channels? (I'm guessing here...)



So the question is: How do I make ffmpeg downmix 5.1 to stereo the same way VLC does it, with the same strong volume in the end result?










share|improve this question























  • Are you sure VLC is actually playing the additional channels? Downmixing can result in normalization so that the sum of each input per output channel does not result in overload so clipping is prevented. This can make it sound quieter.

    – llogan
    Dec 14 '14 at 18:15













  • The basics: My file is 5.1. My speakers are stereo. I don't know what VLC does, but it creates a great end result in my stereo speakers from the 5.1 source data (strong volume, both music and dialogue included). ffmpeg, on the other hand, creates a "low volume" result when using -ac 2. So I'm asking how to make ffmpeg generate the same good result as VLC does.

    – forthrin
    Dec 16 '14 at 10:20
















17















I have a 5.1 audio track from a film where front left and front right contains music, and center contains dialogue. Playing the 5.1 track in VLC blends everything together nicely.



I'm trying to convert the 5.1 track to stereo using ffmpeg -ac 2, however the resulting stereo mix has a much weaker volume than playing the 5.1 track natively.



Adding -af "pan=stereo|c0=FL|c1=FR" gives the correct volume, but then there is no dialogue because the center channel is not included.



So the solution is maybe to mix left/center/right into stereo, and throw out the back end subwoofer channels? (I'm guessing here...)



So the question is: How do I make ffmpeg downmix 5.1 to stereo the same way VLC does it, with the same strong volume in the end result?










share|improve this question























  • Are you sure VLC is actually playing the additional channels? Downmixing can result in normalization so that the sum of each input per output channel does not result in overload so clipping is prevented. This can make it sound quieter.

    – llogan
    Dec 14 '14 at 18:15













  • The basics: My file is 5.1. My speakers are stereo. I don't know what VLC does, but it creates a great end result in my stereo speakers from the 5.1 source data (strong volume, both music and dialogue included). ffmpeg, on the other hand, creates a "low volume" result when using -ac 2. So I'm asking how to make ffmpeg generate the same good result as VLC does.

    – forthrin
    Dec 16 '14 at 10:20














17












17








17


12






I have a 5.1 audio track from a film where front left and front right contains music, and center contains dialogue. Playing the 5.1 track in VLC blends everything together nicely.



I'm trying to convert the 5.1 track to stereo using ffmpeg -ac 2, however the resulting stereo mix has a much weaker volume than playing the 5.1 track natively.



Adding -af "pan=stereo|c0=FL|c1=FR" gives the correct volume, but then there is no dialogue because the center channel is not included.



So the solution is maybe to mix left/center/right into stereo, and throw out the back end subwoofer channels? (I'm guessing here...)



So the question is: How do I make ffmpeg downmix 5.1 to stereo the same way VLC does it, with the same strong volume in the end result?










share|improve this question














I have a 5.1 audio track from a film where front left and front right contains music, and center contains dialogue. Playing the 5.1 track in VLC blends everything together nicely.



I'm trying to convert the 5.1 track to stereo using ffmpeg -ac 2, however the resulting stereo mix has a much weaker volume than playing the 5.1 track natively.



Adding -af "pan=stereo|c0=FL|c1=FR" gives the correct volume, but then there is no dialogue because the center channel is not included.



So the solution is maybe to mix left/center/right into stereo, and throw out the back end subwoofer channels? (I'm guessing here...)



So the question is: How do I make ffmpeg downmix 5.1 to stereo the same way VLC does it, with the same strong volume in the end result?







audio ffmpeg stereo 5.1






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 14 '14 at 12:23









forthrinforthrin

54531026




54531026













  • Are you sure VLC is actually playing the additional channels? Downmixing can result in normalization so that the sum of each input per output channel does not result in overload so clipping is prevented. This can make it sound quieter.

    – llogan
    Dec 14 '14 at 18:15













  • The basics: My file is 5.1. My speakers are stereo. I don't know what VLC does, but it creates a great end result in my stereo speakers from the 5.1 source data (strong volume, both music and dialogue included). ffmpeg, on the other hand, creates a "low volume" result when using -ac 2. So I'm asking how to make ffmpeg generate the same good result as VLC does.

    – forthrin
    Dec 16 '14 at 10:20



















  • Are you sure VLC is actually playing the additional channels? Downmixing can result in normalization so that the sum of each input per output channel does not result in overload so clipping is prevented. This can make it sound quieter.

    – llogan
    Dec 14 '14 at 18:15













  • The basics: My file is 5.1. My speakers are stereo. I don't know what VLC does, but it creates a great end result in my stereo speakers from the 5.1 source data (strong volume, both music and dialogue included). ffmpeg, on the other hand, creates a "low volume" result when using -ac 2. So I'm asking how to make ffmpeg generate the same good result as VLC does.

    – forthrin
    Dec 16 '14 at 10:20

















Are you sure VLC is actually playing the additional channels? Downmixing can result in normalization so that the sum of each input per output channel does not result in overload so clipping is prevented. This can make it sound quieter.

– llogan
Dec 14 '14 at 18:15







Are you sure VLC is actually playing the additional channels? Downmixing can result in normalization so that the sum of each input per output channel does not result in overload so clipping is prevented. This can make it sound quieter.

– llogan
Dec 14 '14 at 18:15















The basics: My file is 5.1. My speakers are stereo. I don't know what VLC does, but it creates a great end result in my stereo speakers from the 5.1 source data (strong volume, both music and dialogue included). ffmpeg, on the other hand, creates a "low volume" result when using -ac 2. So I'm asking how to make ffmpeg generate the same good result as VLC does.

– forthrin
Dec 16 '14 at 10:20





The basics: My file is 5.1. My speakers are stereo. I don't know what VLC does, but it creates a great end result in my stereo speakers from the 5.1 source data (strong volume, both music and dialogue included). ffmpeg, on the other hand, creates a "low volume" result when using -ac 2. So I'm asking how to make ffmpeg generate the same good result as VLC does.

– forthrin
Dec 16 '14 at 10:20










5 Answers
5






active

oldest

votes


















20














I found the answer Shane provided to provide too little of the other channels and too much of the center. Movies with headphones sounded off balance, with all dialog and not enough background music/effects.



According to ATSC standards (section 7.8, page 91), The following formula is used to downmix 5.1 to conventional stereo (as opposed to matrix):



Lo = 1.0 * L + clev * C + slev * Ls ;
Ro = 1.0 * R + clev * C + slev * Rs ;


clev and slev should be .707, according to tables 5.9 and 5.10 in the aforementioned document, assuming a center/surround mix level of 0. Other values are provide in those tables which reduces the amount of center mix, which I don't find useful.



With this in mind, the following ffmpeg option produces a good balanced sound with audible dialog. Note that specifying the audio channels is not necessary.



-af "pan=stereo|FL < 1.0*FL + 0.707*FC + 0.707*BL|FR < 1.0*FR + 0.707*FC + 0.707*BR"


A note on the use of the less-than symbol, from the pan filter documentation:




If the ‘=’ in a channel specification is replaced by ‘<’, then the
gains for that specification will be renormalized so that the total is
1, thus avoiding clipping noise.







share|improve this answer































    9














    Try this downmix:



    -ac 2 -af "pan=stereo|FL=FC+0.30*FL+0.30*BL|FR=FC+0.30*FR+0.30*BR" 


    as suggested in:
    Dialogue nightmode downmix preset for 5.1 DTS to 2.0 AAC stereo using ffmpeg and qaac






    share|improve this answer





















    • 2





      What do all those options mean? If you explain them, people will be able to use your answer to solve different problems instead of just copy-pasting.

      – David Richerby
      Mar 4 '16 at 21:12






    • 2





      @DavidRicherby -ac = Audio Channels (2 for stereo), -af = Audio Filter

      – Cestarian
      Mar 23 '16 at 4:14






    • 3





      Tried this for a 5.1 movie and at least the output stereo sounded completely fine to me. Clear dialogue and nothing else seemed to be missing. Would be great if someone with VLC knowledge could share exactly what is done in the default 5.1 to 2.0 downmix there.

      – forthrin
      Jul 8 '16 at 10:28






    • 2





      @DavidRicherby: The options inside the audio filter (-af) are: FL=Front-left; BL=Back-left; FC=Front-center; FR=Front-right; BR=Back-right. The floats are linear factors to reduce (<1) or increase(>1) the volume of the multiplied channel. FL=FC+0.30*FL+0.30*BL is setting the Front-left channel to the Front-Center channel plus 30% of the Front-left and 30% of the Back-left channels.

      – kronenpj
      Jan 15 '17 at 22:13








    • 1





      FWIW: I find this mix make dialogues be way too loud compared to the music and ambient sounds. The technically more correct mix given in Tarc's answer is much more pleasing to me. So I guess you might have to try what works best for you, it depends on the situation.

      – jlh
      Feb 7 '18 at 22:12



















    5














    So, by combining @Shane Harrelson's with @Jordan Harris's answer to another question - with lazy mode turned on - here what's needed to convert input_51.mkv (5.1) into output_stereo.mkv (stereo):



    ffmpeg -i input_51.mkv -c:v copy 
    -ac 2 -af "pan=stereo|FL=FC+0.30*FL+0.30*BL|FR=FC+0.30*FR+0.30*BR"
    output_stereo.mkv


    The -c:v copy part means that the video stream is not being touched (I guess that the video codec settings is being copied). Without it, it will take much longer. Just repeating from the above answer for completude, -ac 2 means two audio channels and -af specifies an audio filter.



    After looking into the command a bit, I figured out that it's setting how the two stereo channels are composed; the FL (front left channel) is taken from the original FC (front center) plus 0.30*FL (30% from the front left) plus 0.30*BL (30% from the back left) and so on.






    share|improve this answer


























    • Will this keep the center channel consistent and audible?

      – Freedo
      Aug 7 '17 at 10:54



















    1














    If the -ac 2 option gives you a balanced downmix where neither the music nor the speech sounds too much more than the other components, you just need to boost the volume with



    -vol 512


    I used 512 in the example, which increases the sound making it two times louder. The rule is that 256 is equivalent to 100%



    Do not go too high with the value, and be sure to check the results in those parts of the movie with explosions or loud noise. Is is very easy to introduce distorsion by using a too high value.






    share|improve this answer































      0














      This is an old question now, but pointed me in the right direction and wanted to share my result. Loosely following Gregory's answer:



      pan=stereo|FL=0.5*FC+0.707*FL+0.707*BL+0.5*LFE|FR=0.5*FC+0.707*FR+0.707*BR+0.5*LFE


      Putting half of the FC and LFE into left and right gives a total of 1 for their effective volumes from both speakers. Using .707 * Front/Back Left/Right brings those channels down to a good level so they don't overpower the center.






      share|improve this answer























        Your Answer








        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "3"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f852400%2fproperly-downmix-5-1-to-stereo-using-ffmpeg%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        5 Answers
        5






        active

        oldest

        votes








        5 Answers
        5






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        20














        I found the answer Shane provided to provide too little of the other channels and too much of the center. Movies with headphones sounded off balance, with all dialog and not enough background music/effects.



        According to ATSC standards (section 7.8, page 91), The following formula is used to downmix 5.1 to conventional stereo (as opposed to matrix):



        Lo = 1.0 * L + clev * C + slev * Ls ;
        Ro = 1.0 * R + clev * C + slev * Rs ;


        clev and slev should be .707, according to tables 5.9 and 5.10 in the aforementioned document, assuming a center/surround mix level of 0. Other values are provide in those tables which reduces the amount of center mix, which I don't find useful.



        With this in mind, the following ffmpeg option produces a good balanced sound with audible dialog. Note that specifying the audio channels is not necessary.



        -af "pan=stereo|FL < 1.0*FL + 0.707*FC + 0.707*BL|FR < 1.0*FR + 0.707*FC + 0.707*BR"


        A note on the use of the less-than symbol, from the pan filter documentation:




        If the ‘=’ in a channel specification is replaced by ‘<’, then the
        gains for that specification will be renormalized so that the total is
        1, thus avoiding clipping noise.







        share|improve this answer




























          20














          I found the answer Shane provided to provide too little of the other channels and too much of the center. Movies with headphones sounded off balance, with all dialog and not enough background music/effects.



          According to ATSC standards (section 7.8, page 91), The following formula is used to downmix 5.1 to conventional stereo (as opposed to matrix):



          Lo = 1.0 * L + clev * C + slev * Ls ;
          Ro = 1.0 * R + clev * C + slev * Rs ;


          clev and slev should be .707, according to tables 5.9 and 5.10 in the aforementioned document, assuming a center/surround mix level of 0. Other values are provide in those tables which reduces the amount of center mix, which I don't find useful.



          With this in mind, the following ffmpeg option produces a good balanced sound with audible dialog. Note that specifying the audio channels is not necessary.



          -af "pan=stereo|FL < 1.0*FL + 0.707*FC + 0.707*BL|FR < 1.0*FR + 0.707*FC + 0.707*BR"


          A note on the use of the less-than symbol, from the pan filter documentation:




          If the ‘=’ in a channel specification is replaced by ‘<’, then the
          gains for that specification will be renormalized so that the total is
          1, thus avoiding clipping noise.







          share|improve this answer


























            20












            20








            20







            I found the answer Shane provided to provide too little of the other channels and too much of the center. Movies with headphones sounded off balance, with all dialog and not enough background music/effects.



            According to ATSC standards (section 7.8, page 91), The following formula is used to downmix 5.1 to conventional stereo (as opposed to matrix):



            Lo = 1.0 * L + clev * C + slev * Ls ;
            Ro = 1.0 * R + clev * C + slev * Rs ;


            clev and slev should be .707, according to tables 5.9 and 5.10 in the aforementioned document, assuming a center/surround mix level of 0. Other values are provide in those tables which reduces the amount of center mix, which I don't find useful.



            With this in mind, the following ffmpeg option produces a good balanced sound with audible dialog. Note that specifying the audio channels is not necessary.



            -af "pan=stereo|FL < 1.0*FL + 0.707*FC + 0.707*BL|FR < 1.0*FR + 0.707*FC + 0.707*BR"


            A note on the use of the less-than symbol, from the pan filter documentation:




            If the ‘=’ in a channel specification is replaced by ‘<’, then the
            gains for that specification will be renormalized so that the total is
            1, thus avoiding clipping noise.







            share|improve this answer













            I found the answer Shane provided to provide too little of the other channels and too much of the center. Movies with headphones sounded off balance, with all dialog and not enough background music/effects.



            According to ATSC standards (section 7.8, page 91), The following formula is used to downmix 5.1 to conventional stereo (as opposed to matrix):



            Lo = 1.0 * L + clev * C + slev * Ls ;
            Ro = 1.0 * R + clev * C + slev * Rs ;


            clev and slev should be .707, according to tables 5.9 and 5.10 in the aforementioned document, assuming a center/surround mix level of 0. Other values are provide in those tables which reduces the amount of center mix, which I don't find useful.



            With this in mind, the following ffmpeg option produces a good balanced sound with audible dialog. Note that specifying the audio channels is not necessary.



            -af "pan=stereo|FL < 1.0*FL + 0.707*FC + 0.707*BL|FR < 1.0*FR + 0.707*FC + 0.707*BR"


            A note on the use of the less-than symbol, from the pan filter documentation:




            If the ‘=’ in a channel specification is replaced by ‘<’, then the
            gains for that specification will be renormalized so that the total is
            1, thus avoiding clipping noise.








            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jun 14 '17 at 2:32









            GregoryGregory

            30122




            30122

























                9














                Try this downmix:



                -ac 2 -af "pan=stereo|FL=FC+0.30*FL+0.30*BL|FR=FC+0.30*FR+0.30*BR" 


                as suggested in:
                Dialogue nightmode downmix preset for 5.1 DTS to 2.0 AAC stereo using ffmpeg and qaac






                share|improve this answer





















                • 2





                  What do all those options mean? If you explain them, people will be able to use your answer to solve different problems instead of just copy-pasting.

                  – David Richerby
                  Mar 4 '16 at 21:12






                • 2





                  @DavidRicherby -ac = Audio Channels (2 for stereo), -af = Audio Filter

                  – Cestarian
                  Mar 23 '16 at 4:14






                • 3





                  Tried this for a 5.1 movie and at least the output stereo sounded completely fine to me. Clear dialogue and nothing else seemed to be missing. Would be great if someone with VLC knowledge could share exactly what is done in the default 5.1 to 2.0 downmix there.

                  – forthrin
                  Jul 8 '16 at 10:28






                • 2





                  @DavidRicherby: The options inside the audio filter (-af) are: FL=Front-left; BL=Back-left; FC=Front-center; FR=Front-right; BR=Back-right. The floats are linear factors to reduce (<1) or increase(>1) the volume of the multiplied channel. FL=FC+0.30*FL+0.30*BL is setting the Front-left channel to the Front-Center channel plus 30% of the Front-left and 30% of the Back-left channels.

                  – kronenpj
                  Jan 15 '17 at 22:13








                • 1





                  FWIW: I find this mix make dialogues be way too loud compared to the music and ambient sounds. The technically more correct mix given in Tarc's answer is much more pleasing to me. So I guess you might have to try what works best for you, it depends on the situation.

                  – jlh
                  Feb 7 '18 at 22:12
















                9














                Try this downmix:



                -ac 2 -af "pan=stereo|FL=FC+0.30*FL+0.30*BL|FR=FC+0.30*FR+0.30*BR" 


                as suggested in:
                Dialogue nightmode downmix preset for 5.1 DTS to 2.0 AAC stereo using ffmpeg and qaac






                share|improve this answer





















                • 2





                  What do all those options mean? If you explain them, people will be able to use your answer to solve different problems instead of just copy-pasting.

                  – David Richerby
                  Mar 4 '16 at 21:12






                • 2





                  @DavidRicherby -ac = Audio Channels (2 for stereo), -af = Audio Filter

                  – Cestarian
                  Mar 23 '16 at 4:14






                • 3





                  Tried this for a 5.1 movie and at least the output stereo sounded completely fine to me. Clear dialogue and nothing else seemed to be missing. Would be great if someone with VLC knowledge could share exactly what is done in the default 5.1 to 2.0 downmix there.

                  – forthrin
                  Jul 8 '16 at 10:28






                • 2





                  @DavidRicherby: The options inside the audio filter (-af) are: FL=Front-left; BL=Back-left; FC=Front-center; FR=Front-right; BR=Back-right. The floats are linear factors to reduce (<1) or increase(>1) the volume of the multiplied channel. FL=FC+0.30*FL+0.30*BL is setting the Front-left channel to the Front-Center channel plus 30% of the Front-left and 30% of the Back-left channels.

                  – kronenpj
                  Jan 15 '17 at 22:13








                • 1





                  FWIW: I find this mix make dialogues be way too loud compared to the music and ambient sounds. The technically more correct mix given in Tarc's answer is much more pleasing to me. So I guess you might have to try what works best for you, it depends on the situation.

                  – jlh
                  Feb 7 '18 at 22:12














                9












                9








                9







                Try this downmix:



                -ac 2 -af "pan=stereo|FL=FC+0.30*FL+0.30*BL|FR=FC+0.30*FR+0.30*BR" 


                as suggested in:
                Dialogue nightmode downmix preset for 5.1 DTS to 2.0 AAC stereo using ffmpeg and qaac






                share|improve this answer















                Try this downmix:



                -ac 2 -af "pan=stereo|FL=FC+0.30*FL+0.30*BL|FR=FC+0.30*FR+0.30*BR" 


                as suggested in:
                Dialogue nightmode downmix preset for 5.1 DTS to 2.0 AAC stereo using ffmpeg and qaac







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Mar 4 '16 at 22:41









                llogan

                25.8k54782




                25.8k54782










                answered Mar 4 '16 at 17:32









                Shane HarrelsonShane Harrelson

                10914




                10914








                • 2





                  What do all those options mean? If you explain them, people will be able to use your answer to solve different problems instead of just copy-pasting.

                  – David Richerby
                  Mar 4 '16 at 21:12






                • 2





                  @DavidRicherby -ac = Audio Channels (2 for stereo), -af = Audio Filter

                  – Cestarian
                  Mar 23 '16 at 4:14






                • 3





                  Tried this for a 5.1 movie and at least the output stereo sounded completely fine to me. Clear dialogue and nothing else seemed to be missing. Would be great if someone with VLC knowledge could share exactly what is done in the default 5.1 to 2.0 downmix there.

                  – forthrin
                  Jul 8 '16 at 10:28






                • 2





                  @DavidRicherby: The options inside the audio filter (-af) are: FL=Front-left; BL=Back-left; FC=Front-center; FR=Front-right; BR=Back-right. The floats are linear factors to reduce (<1) or increase(>1) the volume of the multiplied channel. FL=FC+0.30*FL+0.30*BL is setting the Front-left channel to the Front-Center channel plus 30% of the Front-left and 30% of the Back-left channels.

                  – kronenpj
                  Jan 15 '17 at 22:13








                • 1





                  FWIW: I find this mix make dialogues be way too loud compared to the music and ambient sounds. The technically more correct mix given in Tarc's answer is much more pleasing to me. So I guess you might have to try what works best for you, it depends on the situation.

                  – jlh
                  Feb 7 '18 at 22:12














                • 2





                  What do all those options mean? If you explain them, people will be able to use your answer to solve different problems instead of just copy-pasting.

                  – David Richerby
                  Mar 4 '16 at 21:12






                • 2





                  @DavidRicherby -ac = Audio Channels (2 for stereo), -af = Audio Filter

                  – Cestarian
                  Mar 23 '16 at 4:14






                • 3





                  Tried this for a 5.1 movie and at least the output stereo sounded completely fine to me. Clear dialogue and nothing else seemed to be missing. Would be great if someone with VLC knowledge could share exactly what is done in the default 5.1 to 2.0 downmix there.

                  – forthrin
                  Jul 8 '16 at 10:28






                • 2





                  @DavidRicherby: The options inside the audio filter (-af) are: FL=Front-left; BL=Back-left; FC=Front-center; FR=Front-right; BR=Back-right. The floats are linear factors to reduce (<1) or increase(>1) the volume of the multiplied channel. FL=FC+0.30*FL+0.30*BL is setting the Front-left channel to the Front-Center channel plus 30% of the Front-left and 30% of the Back-left channels.

                  – kronenpj
                  Jan 15 '17 at 22:13








                • 1





                  FWIW: I find this mix make dialogues be way too loud compared to the music and ambient sounds. The technically more correct mix given in Tarc's answer is much more pleasing to me. So I guess you might have to try what works best for you, it depends on the situation.

                  – jlh
                  Feb 7 '18 at 22:12








                2




                2





                What do all those options mean? If you explain them, people will be able to use your answer to solve different problems instead of just copy-pasting.

                – David Richerby
                Mar 4 '16 at 21:12





                What do all those options mean? If you explain them, people will be able to use your answer to solve different problems instead of just copy-pasting.

                – David Richerby
                Mar 4 '16 at 21:12




                2




                2





                @DavidRicherby -ac = Audio Channels (2 for stereo), -af = Audio Filter

                – Cestarian
                Mar 23 '16 at 4:14





                @DavidRicherby -ac = Audio Channels (2 for stereo), -af = Audio Filter

                – Cestarian
                Mar 23 '16 at 4:14




                3




                3





                Tried this for a 5.1 movie and at least the output stereo sounded completely fine to me. Clear dialogue and nothing else seemed to be missing. Would be great if someone with VLC knowledge could share exactly what is done in the default 5.1 to 2.0 downmix there.

                – forthrin
                Jul 8 '16 at 10:28





                Tried this for a 5.1 movie and at least the output stereo sounded completely fine to me. Clear dialogue and nothing else seemed to be missing. Would be great if someone with VLC knowledge could share exactly what is done in the default 5.1 to 2.0 downmix there.

                – forthrin
                Jul 8 '16 at 10:28




                2




                2





                @DavidRicherby: The options inside the audio filter (-af) are: FL=Front-left; BL=Back-left; FC=Front-center; FR=Front-right; BR=Back-right. The floats are linear factors to reduce (<1) or increase(>1) the volume of the multiplied channel. FL=FC+0.30*FL+0.30*BL is setting the Front-left channel to the Front-Center channel plus 30% of the Front-left and 30% of the Back-left channels.

                – kronenpj
                Jan 15 '17 at 22:13







                @DavidRicherby: The options inside the audio filter (-af) are: FL=Front-left; BL=Back-left; FC=Front-center; FR=Front-right; BR=Back-right. The floats are linear factors to reduce (<1) or increase(>1) the volume of the multiplied channel. FL=FC+0.30*FL+0.30*BL is setting the Front-left channel to the Front-Center channel plus 30% of the Front-left and 30% of the Back-left channels.

                – kronenpj
                Jan 15 '17 at 22:13






                1




                1





                FWIW: I find this mix make dialogues be way too loud compared to the music and ambient sounds. The technically more correct mix given in Tarc's answer is much more pleasing to me. So I guess you might have to try what works best for you, it depends on the situation.

                – jlh
                Feb 7 '18 at 22:12





                FWIW: I find this mix make dialogues be way too loud compared to the music and ambient sounds. The technically more correct mix given in Tarc's answer is much more pleasing to me. So I guess you might have to try what works best for you, it depends on the situation.

                – jlh
                Feb 7 '18 at 22:12











                5














                So, by combining @Shane Harrelson's with @Jordan Harris's answer to another question - with lazy mode turned on - here what's needed to convert input_51.mkv (5.1) into output_stereo.mkv (stereo):



                ffmpeg -i input_51.mkv -c:v copy 
                -ac 2 -af "pan=stereo|FL=FC+0.30*FL+0.30*BL|FR=FC+0.30*FR+0.30*BR"
                output_stereo.mkv


                The -c:v copy part means that the video stream is not being touched (I guess that the video codec settings is being copied). Without it, it will take much longer. Just repeating from the above answer for completude, -ac 2 means two audio channels and -af specifies an audio filter.



                After looking into the command a bit, I figured out that it's setting how the two stereo channels are composed; the FL (front left channel) is taken from the original FC (front center) plus 0.30*FL (30% from the front left) plus 0.30*BL (30% from the back left) and so on.






                share|improve this answer


























                • Will this keep the center channel consistent and audible?

                  – Freedo
                  Aug 7 '17 at 10:54
















                5














                So, by combining @Shane Harrelson's with @Jordan Harris's answer to another question - with lazy mode turned on - here what's needed to convert input_51.mkv (5.1) into output_stereo.mkv (stereo):



                ffmpeg -i input_51.mkv -c:v copy 
                -ac 2 -af "pan=stereo|FL=FC+0.30*FL+0.30*BL|FR=FC+0.30*FR+0.30*BR"
                output_stereo.mkv


                The -c:v copy part means that the video stream is not being touched (I guess that the video codec settings is being copied). Without it, it will take much longer. Just repeating from the above answer for completude, -ac 2 means two audio channels and -af specifies an audio filter.



                After looking into the command a bit, I figured out that it's setting how the two stereo channels are composed; the FL (front left channel) is taken from the original FC (front center) plus 0.30*FL (30% from the front left) plus 0.30*BL (30% from the back left) and so on.






                share|improve this answer


























                • Will this keep the center channel consistent and audible?

                  – Freedo
                  Aug 7 '17 at 10:54














                5












                5








                5







                So, by combining @Shane Harrelson's with @Jordan Harris's answer to another question - with lazy mode turned on - here what's needed to convert input_51.mkv (5.1) into output_stereo.mkv (stereo):



                ffmpeg -i input_51.mkv -c:v copy 
                -ac 2 -af "pan=stereo|FL=FC+0.30*FL+0.30*BL|FR=FC+0.30*FR+0.30*BR"
                output_stereo.mkv


                The -c:v copy part means that the video stream is not being touched (I guess that the video codec settings is being copied). Without it, it will take much longer. Just repeating from the above answer for completude, -ac 2 means two audio channels and -af specifies an audio filter.



                After looking into the command a bit, I figured out that it's setting how the two stereo channels are composed; the FL (front left channel) is taken from the original FC (front center) plus 0.30*FL (30% from the front left) plus 0.30*BL (30% from the back left) and so on.






                share|improve this answer















                So, by combining @Shane Harrelson's with @Jordan Harris's answer to another question - with lazy mode turned on - here what's needed to convert input_51.mkv (5.1) into output_stereo.mkv (stereo):



                ffmpeg -i input_51.mkv -c:v copy 
                -ac 2 -af "pan=stereo|FL=FC+0.30*FL+0.30*BL|FR=FC+0.30*FR+0.30*BR"
                output_stereo.mkv


                The -c:v copy part means that the video stream is not being touched (I guess that the video codec settings is being copied). Without it, it will take much longer. Just repeating from the above answer for completude, -ac 2 means two audio channels and -af specifies an audio filter.



                After looking into the command a bit, I figured out that it's setting how the two stereo channels are composed; the FL (front left channel) is taken from the original FC (front center) plus 0.30*FL (30% from the front left) plus 0.30*BL (30% from the back left) and so on.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Mar 20 '17 at 10:04









                Community

                1




                1










                answered Nov 19 '16 at 4:09









                TarcTarc

                16316




                16316













                • Will this keep the center channel consistent and audible?

                  – Freedo
                  Aug 7 '17 at 10:54



















                • Will this keep the center channel consistent and audible?

                  – Freedo
                  Aug 7 '17 at 10:54

















                Will this keep the center channel consistent and audible?

                – Freedo
                Aug 7 '17 at 10:54





                Will this keep the center channel consistent and audible?

                – Freedo
                Aug 7 '17 at 10:54











                1














                If the -ac 2 option gives you a balanced downmix where neither the music nor the speech sounds too much more than the other components, you just need to boost the volume with



                -vol 512


                I used 512 in the example, which increases the sound making it two times louder. The rule is that 256 is equivalent to 100%



                Do not go too high with the value, and be sure to check the results in those parts of the movie with explosions or loud noise. Is is very easy to introduce distorsion by using a too high value.






                share|improve this answer




























                  1














                  If the -ac 2 option gives you a balanced downmix where neither the music nor the speech sounds too much more than the other components, you just need to boost the volume with



                  -vol 512


                  I used 512 in the example, which increases the sound making it two times louder. The rule is that 256 is equivalent to 100%



                  Do not go too high with the value, and be sure to check the results in those parts of the movie with explosions or loud noise. Is is very easy to introduce distorsion by using a too high value.






                  share|improve this answer


























                    1












                    1








                    1







                    If the -ac 2 option gives you a balanced downmix where neither the music nor the speech sounds too much more than the other components, you just need to boost the volume with



                    -vol 512


                    I used 512 in the example, which increases the sound making it two times louder. The rule is that 256 is equivalent to 100%



                    Do not go too high with the value, and be sure to check the results in those parts of the movie with explosions or loud noise. Is is very easy to introduce distorsion by using a too high value.






                    share|improve this answer













                    If the -ac 2 option gives you a balanced downmix where neither the music nor the speech sounds too much more than the other components, you just need to boost the volume with



                    -vol 512


                    I used 512 in the example, which increases the sound making it two times louder. The rule is that 256 is equivalent to 100%



                    Do not go too high with the value, and be sure to check the results in those parts of the movie with explosions or loud noise. Is is very easy to introduce distorsion by using a too high value.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jan 14 '18 at 23:23









                    MephistoMephisto

                    17810




                    17810























                        0














                        This is an old question now, but pointed me in the right direction and wanted to share my result. Loosely following Gregory's answer:



                        pan=stereo|FL=0.5*FC+0.707*FL+0.707*BL+0.5*LFE|FR=0.5*FC+0.707*FR+0.707*BR+0.5*LFE


                        Putting half of the FC and LFE into left and right gives a total of 1 for their effective volumes from both speakers. Using .707 * Front/Back Left/Right brings those channels down to a good level so they don't overpower the center.






                        share|improve this answer




























                          0














                          This is an old question now, but pointed me in the right direction and wanted to share my result. Loosely following Gregory's answer:



                          pan=stereo|FL=0.5*FC+0.707*FL+0.707*BL+0.5*LFE|FR=0.5*FC+0.707*FR+0.707*BR+0.5*LFE


                          Putting half of the FC and LFE into left and right gives a total of 1 for their effective volumes from both speakers. Using .707 * Front/Back Left/Right brings those channels down to a good level so they don't overpower the center.






                          share|improve this answer


























                            0












                            0








                            0







                            This is an old question now, but pointed me in the right direction and wanted to share my result. Loosely following Gregory's answer:



                            pan=stereo|FL=0.5*FC+0.707*FL+0.707*BL+0.5*LFE|FR=0.5*FC+0.707*FR+0.707*BR+0.5*LFE


                            Putting half of the FC and LFE into left and right gives a total of 1 for their effective volumes from both speakers. Using .707 * Front/Back Left/Right brings those channels down to a good level so they don't overpower the center.






                            share|improve this answer













                            This is an old question now, but pointed me in the right direction and wanted to share my result. Loosely following Gregory's answer:



                            pan=stereo|FL=0.5*FC+0.707*FL+0.707*BL+0.5*LFE|FR=0.5*FC+0.707*FR+0.707*BR+0.5*LFE


                            Putting half of the FC and LFE into left and right gives a total of 1 for their effective volumes from both speakers. Using .707 * Front/Back Left/Right brings those channels down to a good level so they don't overpower the center.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Nov 16 '18 at 3:13









                            Dave_750Dave_750

                            101




                            101






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Super User!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f852400%2fproperly-downmix-5-1-to-stereo-using-ffmpeg%23new-answer', 'question_page');
                                }
                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                Cannot install PyQt5 The Next CEO of Stack OverflowCannot install tcpreplay 3.4.4cannot...

                                Kapp-Putsch Acontecimentos | Outros artigos | Menu de navegação

                                Why did early computer designers eschew integers? The Next CEO of Stack OverflowWhat register...