VideoHelp Forum




+ Reply to Thread
Results 1 to 10 of 10
  1. Hi

    I'm a cat, please patience.

    Code:
    ffmpeg64bit2014.exe -y -i input.avi -vn -map_channel 0.1.0 -map_channel 0.1.1 -af "pan=stereo:c0<c0+c1:c1<c0+c1,volume=1.5" -c:a pcm_s24le gat.wav
    from this commandline I get an audio wav file with 2 channels, can I generate the mix of pan into one single track and one channel (not 2 channel)?

    my input is a stereo L+R file
    Quote Quote  
  2. This works for me:
    Quote Quote  
  3. Member The_Doman's Avatar
    Join Date
    Feb 2004
    Location
    Netherlands
    Search PM
    This can probably help you out?

    FFMpeg: Manipulating audio channels
    Quote Quote  
  4. This works for me:
    Code:
    ffmpeg64bit2014.exe -y -i input.avi -vn -af "pan=mono|c0=0.5*c0+0.5*c1,volume=1.5" -c:a pcm_s24le gat.wav
    Quote Quote  
  5. wow
    Image
    [Attachment 92634 - Click to enlarge]


    it works ***

    so
    Code:
    ffmpeg64bit2014.exe -y -i input.avi -vn -af "pan=mono|c0=0.5*c0+0.5*c1,volume=1.5" -c:a pcm_s24le gat.wav
    is it the same of using

    Code:
    ffmpeg64bit2014.exe -y -i input.avi -vn -af "pan=stereo:c0<c0+c1:c1<c0+c1,volume=1.5" -c:a pcm_s24le -ac 1 gat.wav

    ?
    Quote Quote  
  6. This is the simplest code that does what you are trying:

    Code:
    ffmpeg64bit2014.exe -y -i input.avi -vn -af "pan=mono|c0=c0+c1,volume=1.5" -c:a pcm_s24le output.wav
    If you get clipping remove the volume=1.5.

    Or this code will normalize but same as the above if you get clipping.
    Code:
    ffmpeg64bit2014.exe -y -i input.avi -vn -af "pan=mono|c0<c0+c1,volume=1.5" -c:a pcm_s24le output.wav
    Adding gain requires different coding if that is what you want instead of volume increase.

    Basically the equal sign = adds their volume levels directly for each channel.
    The less than sign means "Normalize" & calculates the total gain coefficient (1 + 1 = 2) and divides each individual channel's gain by that total.
    Last edited by cholla; 9th Jun 2026 at 10:50. Reason: added simpler codes
    Quote Quote  
  7. Simple stereo to mono mix, (L+R)/2,

    https://trac.ffmpeg.org/wiki/AudioChannelManipulation#stereomonostream
    Code:
    ffmpeg -i stereo.flac -ac 1 mono.flac
    Quote Quote  
  8. Originally Posted by jagabo View Post
    Simple stereo to mono mix, (L+R)/2,
    Code:
    ffmpeg -i stereo.flac -ac 1 mono.flac
    jagabo your code will work except the OP wants to remove the video so it needs -vn added.

    I had never worked with the Pan settings in ffmpeg before.
    They are to control the levels. So a mono does not get the full level of each track.
    If the full level is used a lot of conversions get clipping.

    This one should resist clipping
    Code:
    ffmpeg64bit2014.exe -y -i input.avi -vn -af "pan=mono|c0=0.5*c0+0.5*c1" -c:a pcm_s24le output.wav
    If you leave this out of the code c:a pcm_s24le it will usually do 16-bit .
    Quote Quote  
  9. Originally Posted by cholla View Post
    Originally Posted by jagabo View Post
    Simple stereo to mono mix, (L+R)/2,
    Code:
    ffmpeg -i stereo.flac -ac 1 mono.flac
    jagabo your code will work except the OP wants to remove the video so it needs -vn added.
    I was just showing a simple command line that converts stereo to mono. The OP can adapt it to his circumstances for himself.
    Quote Quote  
  10. Mr. Computer Geek dannyboy48888's Avatar
    Join Date
    May 2007
    Location
    Texas, USA
    Search Comp PM
    Jagabo solution is what I do instead I pump to wav then run normalize-audio on it. That is the Linux command, dunno the windows cli equivalent
    if all else fails read the manual
    Quote Quote  



Similar Threads

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