Skip to content

mp4: Use base data offset for samples if present - #1389

Merged
wader merged 1 commit into
masterfrom
mp4-base-data-offset
Sep 9, 2026
Merged

wader merged 1 commit into
masterfrom
mp4-base-data-offset

Conversation

@wader

@wader wader commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Update test file that seems to have accidentally worked as ffmpeg might have bug related to the global_sidx option where offset ends up wrong when content if shifted.

At least with 9.0.1 this seems to produce a broken file: $ ffmpeg -y -f lavfi -i testsrc -c:v h264 -f mp4 -movflags +global_sidx+frag_keyframe+empty_moov -t 100ms test.mp4 $ ffprobe -i test.mp4
...
[h264 @ 0x9ed048380] Invalid NAL unit size (1953658222 > 2992). ...

Update test file that seems to have accidentally worked as ffmpeg might have bug
related to the global_sidx option where offset ends up wrong when content if shifted.

At least with 9.0.1 this seems to produce a broken file:
$ ffmpeg -y -f lavfi -i testsrc -c:v h264 -f mp4 -movflags +global_sidx+frag_keyframe+empty_moov -t 100ms test.mp4
$ ffprobe -i test.mp4
...
[h264 @ 0x9ed048380] Invalid NAL unit size (1953658222 > 2992).
...
@wader
wader merged commit ea8c9e9 into master Sep 9, 2026
5 checks passed
@wader
wader deleted the mp4-base-data-offset branch September 9, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant