[FFmpeg-trac] #8597(undetermined:new): Failure encoding last video frame when rewrapping MXF
FFmpeg
trac at avcodec.org
Sat Apr 4 23:09:36 EEST 2020
#8597: Failure encoding last video frame when rewrapping MXF
-------------------------------------+-------------------------------------
Reporter: kmh73 | Owner:
Type: defect | Status: new
Priority: normal | Component:
| undetermined
Version: git-master | Resolution:
Keywords: mxf | Blocked By:
regression |
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by Tjoppen):
Alright, I managed to figure out what nonsense to enable for Google Drive
to work. ffprobe -show_packets 0036fbv01.cf5cc84a_53374fee.mxf says that
all packets are 240000 bytes except for the last one which is 247936.
I dug into the file a bit and it looks clip wrapped, but the essence
container KLV is not a multiple of 240000 bytes. This causes the size of
the last packet to come out wrong. The reason for this seems to be that
the body partition has KAGSize=131072, and Panasonic's MXF muxer being
broken. The correct thing to do would be to insert KLV fill instead of
padding the essence with NUL bytes. The fix is basically to patch the file
so that the padding is KLV fill instead of garbage essence.
TL;DR: Not a regression, the file is broken. DV is CBR, the essence in
this file is not, due to incorrect padding.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8597#comment:8>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list