DEV Community

Peiguan
Peiguan

Posted on

Does This Bama Bound Clip Pack Two Frames Into Its First `stsc` Chunk? 192 `stco` Offsets for 193 Frames (Python, Tested)

An MP4 sample-to-chunk table (stsc) is easy to ignore if you only count frames. I wanted a narrower question: does the official imported Bama Bound preview pack more than one video sample into its first chunk, how many stco offsets sit next to those 193 frames, and does a stream-copy remux keep that table?

I build bamabound.app. I did not invent a customer file for this. I measured the official imported field preview the homepage and the create page still play. Those pages label it an imported preview: "Imported preview of a person holding a Bama Bound sign." "Imported previews are references, not results from this studio." I re-downloaded the file today, 2 December 2026, at 15:22:47 CST (Asia/Shanghai, UTC+8) from the public media URL. It is 6,117,241 bytes. Its SHA-256 is 9dcb91afc8f985baaa1bae746380d2e2514b6d84abd5108b3b0284eb1fc6492a, unchanged from earlier captures. Origin Last-Modified remains Mon, 26 Oct 2026 05:55:53 GMT.

I also re-checked the pricing page and pricing.md at 15:22:46 CST. Official Field banner singles are still 480p $7.98 / 798 credits, 720p $9.98 / 998, 1080p $16.98 / 1923, and 4k $24.98 / 3921, tax extra. 1080p and 4k credits are not 1:1 with cents. Packs are still $22.99 for 3 credits, $59.99 for 10, and $99.99 for 20. Both files still say Updated 2026-11-04. This measurement is a post-download box walk and remux check. It is not a billed generation.

What the video stsc and stco boxes actually say

I walked the container and parsed the video sample table myself. The video stsc box sits at offset 6,111,522, size 40, version 0. entry_count is 2:

first_chunk samples_per_chunk sample_description_index
1 2 1
2 1 1

The video stco box has 192 chunk offsets. The first offset is 48 (immediately after the 8-byte mdat header at offset 40). The last offset is 6,060,990. Expanding the two stsc entries across those 192 chunks gives 1 + 191 = 192 chunks and 2 + 191 = 193 samples, which is the video frame count. Chunk 1 holds two frames; every later chunk holds one.

That first two-sample chunk is the distinctive layout. It is not a default "one sample per chunk" interleave.

Annex-B SHA-256 is 1d3959a35a26e70188de23474a76b1866db3e26c005ab69f3657adb2be869b67. ADTS SHA-256 is 084469e3d17abed811d2507a4c523bbcce57afc8fed17fb9f6fb623fd0dbac0e. The source SHA-256 was unchanged after every measurement in this run.

A default stream-copy remux keeps the same table

ffmpeg -hide_banner -loglevel error -y -i src/ref.mp4 -c copy remux-copy.mp4
Enter fullscreen mode Exit fullscreen mode

The remux is 6,116,980 bytes. The video stsc table is still two entries, still (1, 2, 1) then (2, 1, 1). There are still 192 stco offsets, still starting at 48 and ending at 6,060,990. The first chunk still holds two samples. Both bitstream hashes are unchanged. The official file remains 6,117,241 bytes; only the remuxed copy is smaller, because a stream-copy remux rewrites parts of moov (today it also dropped the AIGC tag). The chunk table itself was not rewritten.

I put the walker, the chunk expansion, and the remux comparison in stsc_video.py (also saved next to this post as the script I actually ran). It exited 0 today.

If you only look at the frame count, 193 samples look like 193 chunks. They are not. This imported preview packs two frames into its first video chunk, and a default -c copy remux leaves that packing alone.

How I ran the check

python3 src/stsc_video.py
Enter fullscreen mode Exit fullscreen mode

The script parses stsc and stco on the video track, expands the two entries into 192 chunks, asserts the first chunk holds 2 samples and the total is 193, remuxes with -c copy into a temp file, and repeats the walk. It writes JSON under files/devto/stsc_video.json. Today it exited 0. The official preview's SHA-256 was unchanged after the remux.

The audio track on the same file has its own, much longer stsc table. I am not walking that interleave here. The distinctive numbers for this measurement are the two-entry video stsc and the 192 stco offsets that cover 193 frames.

Top comments (0)