[Libav-user] AV_CH_LAYOUT_NATIVE usage

Nicolas George george at nsup.org
Thu Oct 27 16:06:19 EEST 2022

rohit khali (12022-10-27):
> I came across request_channel_layout in AVCodecContext. Looks like we can
> force the FFmpeg decoder to output the channel data in the way it's coded
> in the original compressed stream.

No, you cannot, because the "original compressed stream" does not
contain a specific order, the channels are encoded together, as, IIRC, I
already explained to you.

If you need your channels in a specific order for your application, then
you have to reorder them yourself from the order chosen by libavcodec.

  Nicolas George

More information about the Libav-user mailing list