[FFmpeg-devel] [PATCH] Fix decoding of DNxHD video in MXF container

Joseph Artsimovich joseph at mirriad.com
Tue Jan 31 14:22:50 CET 2012


I found two problems with decoding of DNxHD encoded videos in MXF 
container.

1. The DNxHD codec signature in libavformat/mxf.c is wrong.
2. Frame height is calculated incorrectly for interlaced videos.  What's 
stored in PictureEssenceDescriptor in MXF is not a frame height but 
field height.
This is a general problem that should affect other codecs.  I checked 
how D-10 (IMX) in MXF container ends up being handled correctly, and it 
turned out it's because of stream parsing.

The patches fixing the decoding problems are attached.  Note that I 
didn't look at MXF encoding, which might or might not be affected by 
problem 2.

-- 
Joseph Artsimovich
Senior C++ Applications Developer
MirriAd Ltd

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Don-t-confuse-frame-height-with-field-height-in-MXF-.patch
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120131/8fd3c972/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0002-Fix-incorrect-DNxHD-signature-in-MXF-container.patch
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120131/8fd3c972/attachment-0001.ksh>


More information about the ffmpeg-devel mailing list