Changes between Version 9 and Version 10 of AudioChannelManipulation
- Timestamp:
- Jun 6, 2014, 11:55:13 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AudioChannelManipulation
v9 v10 23 23 }}} 24 24 25 {{{ 26 #!div style="border: 1pt dotted; margin: 1em; background-color: #fffff9;" 27 '''Note:''' Your player will likely play the first stream by default unless your player allows you to select the desired stream. 28 }}} 29 25 30 == stereo → 2 × mono files == 26 31 … … 52 57 53 58 {{{ 54 ffmpeg -i input.mp3 -filter_complex "[0:a][0:a]amerge[aud]" -map "[aud]" output.m4a 55 }}} 56 57 '''Note:''' These examples will not magically create a "true" stereo output from the mono input, but simply place the same audio into both the `FL` and `FR` channels of the output (both channels will be identical). 59 ffmpeg -i input.mp3 -filter_complex "[0:a][0:a]amerge[aout]" -map "[aout]" output.m4a 60 }}} 61 62 {{{ 63 #!div style="border: 1pt dotted; margin: 1em; background-color: #fffff9;" 64 '''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). 65 }}} 58 66 59 67 == 2 × mono → stereo == … … 70 78 71 79 {{{ 72 ffmpeg -i left.mp3 -i right.mp3 -filter_complex amergeoutput.mka80 ffmpeg -i left.mp3 -i right.mp3 -filter_complex "[0:a][1:a]amerge[aout]" -map "[aout]" output.mka 73 81 }}} 74 82 … … 81 89 {{{ 82 90 ffmpeg -i front_left.wav -i front_right.wav -i front_center.wav -i lfe.wav -i back_left.wav -i back_right.wav \ 83 -filter_complex "[0:a][1:a][2:a][3:a][4:a][5:a] amerge=inputs=6" output.wav91 -filter_complex "[0:a][1:a][2:a][3:a][4:a][5:a]amerge=inputs=6[aout]" -map "[aout]" output.wav 84 92 }}} 85 93 … … 96 104 }}} 97 105 98 * By default when using `-ac 2` the LFE channel is omitted. 99 * `ffmpeg` integrates a default down-mix (and up-mix) system that should be preferred (the `-ac` option) unless you have very specific needs. 106 {{{ 107 #!div style="border: 1pt dotted; margin: 1em; background-color: #fffff9;" 108 '''Notes:''' 109 * 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. 110 * `ffmpeg` integrates a default down-mix (and up-mix) system that should be preferred (the `-ac` option) over the pan filter unless you have very specific needs. 111 }}} 100 112 101 113 If you want to map specific channels and drop the rest you can use the [https://ffmpeg.org/ffmpeg-filters.html#pan pan audio filter]. This will map the `FL` (Front Left) of the input to the `FL` of the output, and the `FR` (Front Right) of the input to the `FR` of the output: … … 120 132 121 133 {{{ 122 ffmpeg -i input1.wav -i input2.wav -filter_complex " amerge,pan=stereo:c0<c0+c2:c1<c1+c3" output.mp3134 ffmpeg -i input1.wav -i input2.wav -filter_complex "[0:a][1:a]amerge,pan=stereo:c0<c0+c2:c1<c1+c3[aout]" -map "[aout]" output.mp3 123 135 }}} 124 136
