[FFmpeg-devel] [PATCH]Warn if the flac encoder outputs files with incorrect channel layout or guesses the channel layout

Stefano Sabatini stefano.sabatini-lala at poste.it
Mon Apr 25 11:43:19 CEST 2011


On date Monday 2011-04-25 02:33:39 +0200, Michael Niedermayer encoded:
> On Mon, Apr 25, 2011 at 01:43:40AM +0200, Carl Eugen Hoyos wrote:
> > Hi!
> > 
> > Attached patch allows the flac encoder to warn if multichannel audio was 
> > provided, but no channel layout defined, and shows an error if the specified 
> > layout is different from the one flac supports (but still encodes).
> > 
> > Please comment, Carl Eugen
> 
> no objections to zthe patch but in the long term we maybe want a
> list of supported channel layouts in AVCodec so this could be
> checked more generically in utils.c for more encoders

In general we may need a number-of-channels<->channel-layout map,
for example here (configure_audio_filters):
https://gitorious.org/ffmpeg-mirror/ffmpeg-mirror/commit/3a1441e54c212715bbfb88887045910dc3e68700

I don't know if this mapping is specific for each encoder/decoder
though.
-- 
FFmpeg = Fundamentalist & Formidable Mean Portable Ecletic God


More information about the ffmpeg-devel mailing list