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

Benjamin Larsson banan
Mon Feb 21 12:16:24 CET 2011


On 02/13/2011 11:56 AM, Maksym Veremeyenko wrote:
> Tomas H?rdin ???????(??):
>> Maksym Veremeyenko skrev 2011-02-11 14:30:
> [...]
>>> Sample of AVC-Intra i have generated with index tables. For example 76
>>> frames sample:
>>>
>>> IndexEditRate 24000/24000
>>> IndexStartPosition 0
>>> IndexDuration 1
>>> EditUnitByteCount 472576
>>> IndexSID 1
>>> BodySID 2
>>>
>>> IndexEditRate 24000/24000
>>> IndexStartPosition 1
>>> IndexDuration 75
>>> EditUnitByteCount 472064
>>> IndexSID 1
>>> BodySID 2
>>>
>>> 28 frames sample:
>>>
>>> IndexEditRate 24000/24000
>>> IndexStartPosition 0
>>> IndexDuration 1
>>> EditUnitByteCount 472576
>>> IndexSID 1
>>> BodySID 2
>>>
>>> IndexEditRate 24000/24000
>>> IndexStartPosition 1
>>> IndexDuration 27
>>> EditUnitByteCount 472064
>>> IndexSID 1
>>> BodySID 2
>>
>> That's an.. interesting way of solving such problems. Why is your
>> encoder not outputing packets of constant size?
> There is no *my* encoder. There is Panasonic P2 camera...

I think the best way to support these kind of files is to parse the file
to find all mxf indexes and then generate one index that is use for
getting packets and seeking. These kind of streams are actually VBR as
the first frame is ca 100bytes larger then the rest. Using a fixed
EditUnitByteCount will cause bad framing or the need to drop the first
frame.

MvH
Benjamin Larsson



More information about the ffmpeg-devel mailing list