An avcC box is the H.264 decoder-configuration record inside an avc1 sample entry. I wanted a narrower question than "extract the SPS and PPS bytes": on the official imported Bama Bound preview, how long are the length prefixes in front of each NAL unit, how many parameter sets sit in the record, and do the High-profile chroma-format and bit-depth fields after the PPS agree with the SPS?

I build bamabound.app. 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 this studio's output." The public media URL for that file still returned HTTP 502 today (at 15:25:25 CST it was 16 bytes of text/plain, error code: 502\n). I therefore measured the same local file I already have, 6,117,241 bytes, SHA-256 9dcb91afc8f985baaa1bae746380d2e2514b6d84abd5108b3b0284eb1fc6492a, which has matched every earlier capture.

I also re-checked the pricing page and pricing.md at 15:24:24 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 reads the avcC record. It does not write boxes, and it is not a billed generation.

The record is 45 payload bytes at offset 6,109,853

The avcC box sits at 6,109,853 and is 53 bytes, so the payload is 45 bytes:

0164001fffe100196764001facd940b40a1a1000000300100000030300f183196001000568ef86f2c0fdf8f800

ISO/IEC 14496-15 starts that record with a version, a profile, a compatibility byte, and a level. Then come two packed count fields, the parameter-set arrays, and — for High profile — a short extension.

Field Value
configurationVersion 1
AVCProfileIndication 100 (High)
profile_compatibility 0
AVCLevelIndication 31 (level 3.1)
length-size byte 0xFF: reserved 6 bits = 63, lengthSizeMinusOne = 3, so NALU length size = 4
SPS-count byte 0xE1: reserved 3 bits = 7, numOfSequenceParameterSets = 1
SPS 25 bytes, 6764001facd940b40a1a1000000300100000030300f1831960
numOfPictureParameterSets 1
PPS 5 bytes, 68ef86f2c0
High-profile extension 4 bytes, fdf8f800

The four leftover bytes are not padding. For profile 100 they decode as reserved 6 bits = 63, chroma_format = 1 (4:2:0), reserved 5 bits = 31, bit_depth_luma_minus8 = 0 (8-bit), reserved 5 bits = 31, bit_depth_chroma_minus8 = 0 (8-bit), and numOfSequenceParameterSetExt = 0.

Those values match the SPS

The same 25-byte SPS, parsed as an RBSP, also says profile_idc=100, level_idc=31, chroma_format_idc=1, bit_depth_luma=8, and bit_depth_chroma=8. frame_cropping_flag is 0, and the coded size equals the displayed size, 720×1280. ffprobe 7.1.5 prints High, level 31, yuv420p, 720×1280, and 193 frames at 24/1 — it does not print a color_range.

A short, tested parse

from avcc_record import inspect_avcc rec = inspect_avcc("files/official-preview.mp4") print(rec["nal_length_size"], rec["numOfSequenceParameterSets"], rec["numOfPictureParameterSets"]) # 4 1 1 print(rec["chroma_format"], rec["chroma_format_name"], rec["bit_depth_luma"], rec["bit_depth_chroma"]) # 1 4:2:0 8 8 print(rec["matches_sps_chroma_bit_depth"]) # True 

I ran that snippet today against the official file. test_avcc_record.py and the rest of today's suite exited 0 (10 passed, pytest 9.2.0, ffmpeg 7.1.5).

How I ran the check

python3 src/avcc_record.py files/official-preview.mp4 .venv/bin/pytest -q src 

The distinctive numbers for this measurement are a 4-byte NALU length, one 25-byte SPS and one 5-byte PPS, High-profile extension fdf8f800, chroma_format=1 (4:2:0), 8-bit luma and chroma, and a true match against the SPS.