[FFmpeg-devel] [PATCH] experimental multichannel cook support

Sascha Sommer saschasommer
Sat Jan 24 19:18:04 CET 2009


Hi,

while testing the wmapro decoder I stumbled over a matroska file with an 
additional realaudio cook 5.1 track. I then realized that the ffmpeg decoder 
does not yet support multichannel cook files.
It looks like for multichannel files several mono or stereo packets are 
concatenated together. The same goes for the extra data of the packets. The 
per subpacket extradata seems to be identical to the joint stereo version 
apart from an additional integer field that looks like some kind of channel 
mask. The lengths of the individual mono or stereo subpackets are stored at 
the end of the surrounding packet.

So here is an experimental patch to make it work.
Cleanup + channel layout handling still todo.

I'll be busy with wmapro so I also wouldn't mind if someone else wants to 
finish the patch.

Regards

Sascha
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cook5.1.patch
Type: text/x-diff
Size: 31983 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090124/b6a13212/attachment.patch>



More information about the ffmpeg-devel mailing list