[FFmpeg-user] play only left/right channel from an audio input

Lou lou at lrcd.com
Tue Mar 13 01:06:04 CET 2012


On Tue, 13 Mar 2012 01:30:01 +0200
jacob s <jacobhameiri at gmail.com> wrote:

> 2012/3/13 Lou <lou at lrcd.com>
> 
> > On Tue, 13 Mar 2012 00:56:28 +0200
> > jacob s <jacobhameiri at gmail.com> wrote:
> >
> > > Hello,
> > >
> > > Given a stereo audio input, is it possible to filter only left/right
> > > channel ?
> > > For example if I have a file with 2 audio channels can I create a new
> > file
> > > that has the left channel audio only ?
> >
> > We need more information; "a new file that has the left channel audio
> > only" can be interpreted as:
> >
> > * A mono output.
> > * A stereo output with input left audio in both channels of the output.
> > * A stereo output with input left audio in the left channel and silence
> >  in the right channel of the output.
>
> - A stereo output with input left audio in the left channel and silence in
> the right channel of the output.

ffmpeg -i input.wav -map_channel 0.0.0 -map_channel -1 output.wav

This will select the first channel, which I assume is your left
channel. Adapted from http://ffmpeg.org/ffmpeg.html#Advanced-options


More information about the ffmpeg-user mailing list