[FFmpeg-devel] [PATCH] lavd/oss: support for more than 2 channels

Nicolas George nicolas.george at normalesup.org
Fri Jul 27 00:01:52 CEST 2012

Le sextidi 6 thermidor, an CCXX, Alexander Strasser a écrit :
> > +    if (s->channels > 2) {
> > +        av_log(s1, AV_LOG_ERROR, "%d channels not yet supported.\n", s->channels);
> > +        if (is_output)
> > +            av_log(s1, AV_LOG_ERROR, "You can add the '-ac 2' option to let ffmpeg downmix to stereo.\n");
> > +        return AVERROR_PATCHWELCOME;
> > +    }
>   While your patch seems sensible. I think this is not the right place
> for the hint on command line usage. Not sure if it is easy to implement
> the command line usage hint outside of lavd...

I do not insist on it, but I believe it useful (I suspect the original patch
was related to a confusion between the -channels and -ac options) and I
really do not see any other way of implementing any other way. Considering
that lavd is not used much, I believe the people who will actually see the
warning are very likely to be using the ffmpeg command-line tool anyway.

Is there anyone else who cares enough and wants to give an advice?


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120727/a19bb77d/attachment.asc>

More information about the ffmpeg-devel mailing list