Closed jerzywilczek closed 4 months ago
Since this is nice to have and does not seem to actually break anything we are not going to work on it. However feel free to contribute with a PR ðŸ«
This is a bit disappointing, since the spec states this should be a hard error, most players just ignore this section.
According to MPEG-4 part 12 section 8.8.5, sequence numbers from
mfhd
(movie fragment header ormoof
header) box should form an increasing sequence.Currently, the mp4 plugin creates a series of
moof
boxes for each track in a file, and each of these sequences is monotonic, but the sequence of allmoof
sequence numbers is not monotonic.An example:
What is produced:
moof
for track 1 with sequence number 6moof
for track 2 with sequence number 6moof
for track 2 with sequence number 7moof
for track 1 with sequence number 7What should be produced:
moof
for track 1 with sequence number 6moof
for track 2 with sequence number 7moof
for track 2 with sequence number 8moof
for track 1 with sequence number 9This is not a critical error, since according to the spec the sequence numbers are a safety check, which allows readers to verify integrity of the sequence, but it would be nice if this got fixed.