[vlc-devel] [PATCHv6] dcp: Creation of access-demux module for DCP

Denis Charmet typx at dinauz.org
Mon Nov 25 23:22:09 CET 2013


Le lundi 25 novembre 2013 à 10:35:28, Nicolas Bertrand a écrit :
> Le 25/11/2013 16:23, Denis Charmet a écrit :
> >>+    audio_format.audio.i_bitspersample = p_AudioDesc->QuantizationBits;
> >>>+    audio_format.audio.i_blockalign = p_AudioDesc->BlockAlign;
> >>>+    audio_format.audio.i_channels = p_AudioDesc->ChannelCount;
> >Beware of channel mapping. If you have more than 2 channels, the core
> >will expect the samples in a precise order. Expect bad mapping issues.
> Usually 6 channels (5.1). In which order its expected ? And how or
> where handle/check that?

see vlc_aout.h in include/

/**
 * It describes the audio channel order VLC expect.
 */
 static const uint32_t pi_vlc_chan_order_wg4[] =
 {
     AOUT_CHAN_LEFT, AOUT_CHAN_RIGHT,
     AOUT_CHAN_MIDDLELEFT, AOUT_CHAN_MIDDLERIGHT,
     AOUT_CHAN_REARLEFT, AOUT_CHAN_REARRIGHT, AOUT_CHAN_REARCENTER,
     AOUT_CHAN_CENTER, AOUT_CHAN_LFE, 0
 };

In the wav and mkv demux, we reorder the channels in the Demux function.
Using audio output functions.

See
http://git.videolan.org/?p=vlc.git;a=commitdiff;h=f305d59a1aec9110f6b11e533fd89ffecfa5be5c
for the reordering in mkv.

Regards,

-- 
Denis Charmet - TypX
Le mauvais esprit est un art de vivre



More information about the vlc-devel mailing list