[FFmpeg-devel] [PATCH] Clip-Wrapped MXF support (attempt #4)

Maksym Veremeyenko verem
Mon Feb 14 14:17:27 CET 2011

Tomas H?rdin ???????(??):
>>> I'd need a place to upload them to. There's four of them, ranging from
>>> 100 megs to 400 megs each. Since they have the index in the footer I
>>> can't cut them down to size for upload to the MPlayer ftp.
>> could you upload this file to my ftp if i provide you with 
>> login/password?
> Yes, of course.

First, thanks for files.

The files you provided has AVID (i think) essence identifier:


[mxf @ 0x95fb7a0] data definition   ul 80.7D. 
[mxf @ 0x95fb7a0] essence codec     ul 06.0E.2B.
[mxf @ 0x95fb7a0] essence container ul 06.0E.2B. 


[mxf @ 0x989c7a0] data definition   ul 80.7D. 
[mxf @ 0x989c7a0] essence codec     ul 06.0E.2B.
[mxf @ 0x989c7a0] essence container ul 06.0E.2B. 


[mxf @ 0x88b97a0] data definition   ul 80.7D. 
[mxf @ 0x88b97a0] essence codec     ul 06.0E.2B.
[mxf @ 0x88b97a0] essence container ul 06.0E.2B. 

that actually not listed in *RP 224.10* (http://www.smpte-ra.org/mdd/), 
so they (files) are not good for testing new feature in ffmpeg...

anyway we can try to do some assumption about uls and apply attached patch.

as result:

[root at story-parts ffmpeg]# ./ffmpeg_g -debug 5 -i 
/mnt/spool/tmp/devels/mxf/tidkod-svep-avcintra50-960x720-25.mxf -an 
-vcodec copy -f rawvideo -y 

[mxf @ 0x9a507a0] only frame wrapped mappings are correctly supported
[mxf @ 0x9a507a0] read packet 06.0E.2B. 
[mxf @ 0x9a507a0] size 105250816 offset 0x5ffe7
[mxf @ 0x9a507a0] Clip-wrapped reading. mxf->current_klv_bsize=65536, 
[mxf @ 0x9a507a0] read packet data 06.0E.2B. 
[mxf @ 0x9a507a0] data size 65536 offset 0x5ffe7

[root at story-parts ffmpeg]# ls -als 
102784 -rw-r--r-- 1 root root 105250816 ??? 14 15:12 

as seen resulted file is 105250816 bytes exactly the same as logged 
above: /size 105250816 offset 0x5ffe7/

so... no garbage found...

Maksym Veremeyenko

More information about the ffmpeg-devel mailing list