Changes between Version 15 and Version 16 of AudioChannelManipulation


Ignore:
Timestamp:
Nov 19, 2014, 1:17:28 AM (4 years ago)
Author:
llogan
Comment:

remove annoying image links that i accidentally clicked on twice. add stronger note color

Legend:

Unmodified
Added
Removed
Modified
  • AudioChannelManipulation

    v15 v16  
    55== stereo → mono stream ==
    66
    7 [[Image(stereo_mono.png)]]
     7[[Image(stereo_mono.png, nolink)]]
    88
    99Mix a single stereo stream down to a mono stream. Both channels of the stereo stream will be downmixed into the stream:
     
    1515== stereo → 2 × mono files ==
    1616
    17 [[Image(stereo_2mono_outputs.png)]]
     17[[Image(stereo_2mono_outputs.png, nolink)]]
    1818
    1919Output each channel in stereo input to individual mono files:
     
    3131== stereo → 2 × mono streams ==
    3232
    33 [[Image(stereo_2mono_streams.png)]]
     33[[Image(stereo_2mono_streams.png, nolink)]]
    3434
    3535Output each channel in stereo input to individual mono streams in one output file with the [https://ffmpeg.org/ffmpeg-filters.html#channelsplit channelsplit] audio filter:
     
    4040
    4141{{{
    42 #!div style="border: 1pt dotted; margin: 1em; background-color: #fffff9;"
     42#!div style="border: 1pt dotted; margin: 1em; background-color: #ffffdd;"
    4343'''Note:''' Your player will likely play the first stream by default unless your player allows you to select the desired stream.
    4444}}}
     
    4646== mono → stereo ==
    4747
    48 [[Image(mono_stereo.png)]]
     48[[Image(mono_stereo.png, nolink)]]
    4949
    5050Create a stereo output from one mono input:
     
    6161
    6262{{{
    63 #!div style="border: 1pt dotted; margin: 1em; background-color: #fffff9;"
     63#!div style="border: 1pt dotted; margin: 1em; background-color: #ffffdd;"
    6464'''Note:''' These examples will not magically create a "true" stereo output from the mono input, but simply place the same audio into both the left and right channels of the output (both channels will be identical).
    6565}}}
     
    6767== 2 × mono → stereo ==
    6868
    69 [[Image(2mono_stereo.png)]]
     69[[Image(2mono_stereo.png, nolink)]]
    7070
    7171Create a stereo output from two mono inputs with the [https://ffmpeg.org/ffmpeg-filters.html#amerge amerge] audio filter:
     
    7777== 6 × mono → 5.1 ==
    7878
    79 [[Image(6mono_5point1.png)]]
     79[[Image(6mono_5point1.png, nolink)]]
    8080
    8181Combine 6 mono inputs into one 5.1 (6 channel) output with the [https://ffmpeg.org/ffmpeg-filters.html#amerge amerge] audio filter:
     
    9090== 5.1 → 6 × mono
    9191
    92 [[Image(5point1_6mono.png)]]
     92[[Image(5point1_6mono.png, nolink)]]
    9393
    9494Split a 5.1 channel input into individual per-channel files:
     
    108108== 5.1 → stereo ==
    109109
    110 [[Image(5point1_stereo.png)]]
     110[[Image(5point1_stereo.png, nolink)]]
    111111
    112112To downmix you can simply use `-ac 2`:
     
    117117
    118118{{{
    119 #!div style="border: 1pt dotted; margin: 1em; background-color: #fffff9;"
     119#!div style="border: 1pt dotted; margin: 1em; background-color: #ffffdd;"
    120120'''Notes:'''
    121121* By default when using `-ac 2` the LFE channel is omitted. See "[http://www.atsc.org/cms/standards/a_52-2010.pdf Digital Audio Compression Standard (Document A/52:2010)]" for more downmixing info involving LFE.
     
    139139== 2 × stereo → stereo ==
    140140
    141 [[Image(2stereo_stereo.png)]]
     141[[Image(2stereo_stereo.png, nolink)]]
    142142
    143143Combine two stereo inputs into one stereo output with the [https://ffmpeg.org/ffmpeg-filters.html#amerge amerge] and [https://ffmpeg.org/ffmpeg-filters.html#pan pan] audio filters:
     
    154154
    155155{{{
    156 #!div style="border: 1pt dotted; margin: 1em; background-color: #fffff9;"
     156#!div style="border: 1pt dotted; margin: 1em; background-color: #ffffdd;"
    157157'''Note:''' The output produced with the pan audio filter may not be identical to the output produced with `-ac 2`, so you'll have to listen to your outputs or view [#Statistics audio statistics] to determine which output suits you.
    158158}}}
    159159
    160 [[Image(2stereo_stereob.png)]]
     160[[Image(2stereo_stereob.png, nolink)]]
    161161
    162162A similar situation as above, but instead use the left and right channels from the first input to make the left channel out the output, and use the left and right channels of the second input to make the right channel of the output.
     
    169169== Mix both stereo channels to stereo ==
    170170
    171 [[Image(stereo_stereo_mix.png)]]
     171[[Image(stereo_stereo_mix.png, nolink)]]
    172172
    173173The left channel and right channel will each contain both the left and right channels (like "mono as stereo"):
     
    179179== Switch stereo channels ==
    180180
    181 [[Image(switch_stereo_channels.png)]]
     181[[Image(switch_stereo_channels.png, nolink)]]
    182182
    183183Switch left channel to right and right channel to left:
     
    195195== Mute a channel ==
    196196
    197 [[Image(mute_stereo_channel.png)]]
     197[[Image(mute_stereo_channel.png, nolink)]]
    198198
    199199This example will mute the first channel (the left channel) but keep the second channel as is: