Changes between Version 6 and Version 7 of AudioChannelManipulation
- Timestamp:
- Mar 14, 2014, 4:10:55 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AudioChannelManipulation
v6 v7 11 11 12 12 == stereo → 2 × mono streams == 13 Output each channel in stereo input to individual mono streams in one output file with the [http ://ffmpeg.org/ffmpeg-filters.html#channelsplit channelsplit] audio filter.13 Output 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. 14 14 15 15 {{{ … … 24 24 }}} 25 25 26 or with the [http ://ffmpeg.org/ffmpeg-filters.html#pan pan] audio filer:26 or with the [https://ffmpeg.org/ffmpeg-filters.html#pan pan] audio filer: 27 27 28 28 {{{ … … 37 37 }}} 38 38 39 or with the [http ://ffmpeg.org/ffmpeg-filters.html#amerge amerge] audio filter:39 or with the [https://ffmpeg.org/ffmpeg-filters.html#amerge amerge] audio filter: 40 40 41 41 {{{ … … 51 51 }}} 52 52 53 or with the [http ://ffmpeg.org/ffmpeg-filters.html#amerge amerge] audio filter:53 or with the [https://ffmpeg.org/ffmpeg-filters.html#amerge amerge] audio filter: 54 54 55 55 {{{ … … 58 58 59 59 == 6 × mono → 5.1 == 60 Combine 6 mono inputs into one 5.1 (6 channel) output with the [http ://ffmpeg.org/ffmpeg-filters.html#amerge amerge] audio filter:60 Combine 6 mono inputs into one 5.1 (6 channel) output with the [https://ffmpeg.org/ffmpeg-filters.html#amerge amerge] audio filter: 61 61 62 62 {{{ … … 67 67 All inputs must have the same sample rate and format. If inputs do not have the same duration the output will stop with the shortest. 68 68 69 == 5.1 → stereo == 70 71 Note that `ffmpeg` integrates a default down-mix (and up-mix) system that should be preferred (the `-ac` option) unless you have very specific needs. 72 73 To downmix you can simply use `-ac 2`: 74 75 {{{ 76 ffmpeg -i 6channels.wav -ac 2 stereo.wav 77 }}} 78 79 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 Front Left of the input to the Front Left of the output, and the Front Right of the input to the Front Right of the output: 80 81 {{{ 82 ffmpeg -i 6channels.wav -af "pan=stereo:c0=FL:c1=FR" stereo.wav 83 }}} 84 85 You can also map specific channels by number. This example will map the first and third channels of the input to the first and second channels of the output. 86 87 {{{ 88 ffmpeg -i 6channels.wav -af "pan=stereo:c0=c0:c1=c2" output.wav 89 }}} 90 91 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. 92 93 See the [https://ffmpeg.org/ffmpeg-filters.html#pan pan audio filter documentation] for additional information and examples. 94 69 95 == 2 × stereo → stereo == 70 Combine two stereo inputs into one stereo output with the [htt p://ffmpeg.org/ffmpeg-filters.html#amerge amerge] and [http://ffmpeg.org/ffmpeg-filters.html#pan pan] audio filters:96 Combine two stereo inputs into one stereo output with the [htts://ffmpeg.org/ffmpeg-filters.html#amerge amerge] and [https://ffmpeg.org/ffmpeg-filters.html#pan pan] audio filters: 71 97 72 98 {{{ … … 89 115 }}} 90 116 91 or with the [http ://ffmpeg.org/ffmpeg-filters.html#pan pan] audio filer:117 or with the [https://ffmpeg.org/ffmpeg-filters.html#pan pan] audio filer: 92 118 93 119 {{{
