bbc / bmx

Library and utilities to read and write broadcasting media files. Primarily supports the MXF file format
BSD 3-Clause "New" or "Revised" License
62 stars 17 forks source link

KLV Fill after header partition is less than minimum required value #37

Closed philipnbbc closed 1 year ago

philipnbbc commented 1 year ago

It was reported that it was less than 8KB (8192B) which is required for IMF. It should be 8192B plus a 256B margin in the implementation but maybe there is an issue.

thomasheritage commented 1 year ago

In the bmx-made IMF Image Track File I looked at the KLV Fill at the end of the Header Partition was 8047 bytes in total length (incl the length of the K&L&V of the KLV Fill item).

Note that SMPTE ST 2067-5:2020 says:

On creation, a minimum 8k-Byte fill shall follow the header partition to allow for in-place extension.

A couple of points:

It's probably helpful for the KLV Fill at the end of the Header Partition to be clearly large enough (i.e. V of the KLV of the Fill item is at least 8192 bytes) to avoid any disputes.