DEV Community

Peiguan
Peiguan

Posted on

What Language Do the `mdhd` Boxes Declare on This Bama Bound Clip? Both Tracks Pack 21956 (`und`), and Every Creation Timestamp Is 0 (Python, Tested)

An MP4 media header (mdhd) stores a packed ISO-639-2/T language in two bytes, plus creation and modification timestamps. I wanted a narrower question: what language do the official imported Bama Bound preview's two mdhd boxes actually declare, and are those timestamps filled in?

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 embed. 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." The public media URL for that file returned HTTP 502 today (15:23:02 CST it was a 6,411-byte Cloudflare HTML page titled "bamabound.app | 502: Bad gateway"; later probes at 15:26:02 and 15:26:57 CST returned 16 bytes, error code: 502\n). I therefore measured the same file I already have, 6,117,241 bytes, SHA-256 9dcb91afc8f985baaa1bae746380d2e2514b6d84abd5108b3b0284eb1fc6492a, which has matched every earlier capture. Yesterday's successful download still carried Last-Modified: Mon, 26 Oct 2026 05:55:53 GMT.

I also re-checked the pricing page and pricing.md at 15:23:03 CST (Asia/Shanghai, UTC+8). 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 box walk, not a billed generation.

What the two mdhd boxes actually say

I walked the container and parsed both media headers myself. The packed language field is the low 15 bits of a 16-bit integer; each 5-bit group plus 96 becomes one ASCII letter.

Track mdhd offset size timescale duration packed language creation_time modification_time
video 6,109,602 32 12,288 98,816 21,956 und 0 0
audio 6,113,282 32 32,000 260,096 21,956 und 0 0

21,956 unpacks as und (undetermined). pack_lang("und") returns the same 21,956, so the walk is reversible. The language bytes sit at absolute offsets 6,109,630 and 6,113,310. ffprobe prints (und) on both streams, which is this packed field, not a separate elng box (the file has none).

The movie header and both track headers are also empty of dates. mvhd (offset 6,109,350, timescale 1,000, duration 8,096) and both tkhd boxes (track 1 duration 8,042 ms, track 2 duration 8,096 ms) have creation_time 0 and modification_time 0.

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 leaves the language alone

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. Both mdhd boxes still pack 21,956 (und). All of those creation and modification timestamps are still 0. Both bitstream hashes are unchanged. The remux does drop the QuickTime mdta keys (including the encoder string); I am not walking that metadata here.

I put the packed-language helpers, the box walk, and the remux comparison in iso_meta.py and measure_lang_encoder.py. test_iso_meta.py exited 0 today (5 passed, pytest 9.2.0, ffmpeg 7.1.5).

If you only read ffprobe's (und) tag, you might treat it as missing metadata. It is a real packed value: 21,956, on both tracks, and a default -c copy remux leaves it there.

How I ran the check

python3 src/measure_lang_encoder.py
/workspace/malf-venv/bin/pytest -q src/test_iso_meta.py
Enter fullscreen mode Exit fullscreen mode

The distinctive numbers for this measurement are the packed value 21,956, the language und, and the zero timestamps on mdhd, mvhd, and both tkhd boxes.

Top comments (0)