[MPlayer-dev-eng] [PATCH] Automatic downmix

ubitux ubitux at gmail.com
Mon Aug 16 20:47:12 CEST 2010


On Sat, Aug 14, 2010 at 10:48:28PM +0200, Nicolas George wrote:
> By default, MPlayer uses libavcodec to decode FLAC. All libavcodec decoders
> are supposed to output their channels in WAVE order (FL FR FC LF RL RR).
> MPlayer then converts the channels from the decoder to the ALSA order
> (FL FR RL RR FC LF)
> 
> THat is the theory.
> 
> In practice, when mplayer uses libavcodec, the channel order is correctly
> handled.
> 
> On the other hand, it seems that libavcodec's FLAC decoder does not respect
> the libavcodec policy about channels layout, and outputs in Xiph channel
> order (FL FC FR RL RR LF).
> 
> The best course is probably to fix libavcodec. The commit that added
> channels layout support to the Vorbis decoder is is this one:
> http://git.ffmpeg.org/?p=ffmpeg;a=commit;h=8709fe869812d68d5db56e2260f5ca3dadd3526c
> Vorbis and FLAC are very similar in that regard, a similar approach would
> probably work.
> 

What you said is strange: I just encoded 6_Channel_ID.wav with flac, and
tried to play the generated 6_Channel_ID.flac with my patched MPlayer, and
everything went fine: channels assignment were good.

-- 
ubitux


More information about the MPlayer-dev-eng mailing list