DEV Community

Peiguan
Peiguan

Posted on

Do the Public Tiny Desk AI Clips Advertise AAC Pre-Roll With a roll Sample Group? Reading sbgp/sgpd Without Decoding (Python, Tested)

Do the Public Tiny Desk AI Clips Advertise AAC Pre-Roll With a roll Sample Group? Reading sbgp/sgpd Without Decoding (Python, Tested)

I built tinydeskoutstanding.video, an independent studio that places one to five photos into a 15-second vertical desk performance. Today, 1 December 2026, I asked whether the eight public homepage samples carry an ISO-BMFF Audio Roll Recovery sample group — the sgpd / sbgp pair with grouping_type roll — and whether that declaration matches the number of AAC frames a decoder actually emits.

They all do, and only on the audio track. The official reference has a version-1 sgpd box of 26 bytes at offset 17,152, with one description: a signed roll_distance of -1. Immediately after it, at offset 17,178, a version-0 sbgp box of 28 bytes assigns that description to 681 samples. ffprobe reports nb_frames 681 and, once the frames are actually read, nb_read_frames 680. That is one priming frame plus 680 audible frames, or 696,320 PCM samples at 1,024 samples per AAC frame (48 kHz). None of the eight files has a roll group on the video track.

The public samples were copied from the 29–30 November SHA-256-verified on-disk set and re-checked today: each filename still matches its SHA-256, and the official file is still 4,258,704 bytes (db09b1c5…). I did not use a paid studio render and I did not touch a customer file. As of today's fetch of the pricing page (72,750 bytes, 12:28:29 CST, Asia/Shanghai), a single run is $9.98 at 480p (998 credits), $12.98 at 720p (1,298), $24.98 at 1080p (2,498), or $39.98 at 4K (3,998), the same for Just Me, Back Row, and Whole Band. There is no subscription.

What I ran

The official reference is still:

https://tinydeskoutstanding.video/media/imported/db09b1c54359b0930cec54690f0158751f6144e3a7faa812556adec5a89a0cc1.mp4
Enter fullscreen mode Exit fullscreen mode

Then:

python3 roll_groups.py --samples-dir files/samples --out files/dv/roll_groups.json
python3 test_roll_groups.py
Enter fullscreen mode Exit fullscreen mode

The script walks the ISO-BMFF boxes, reads sgpd and sbgp on the soun track, and asks ffprobe how many AAC frames are stored versus decoded. It does not decode the picture.

The eight public files

Measured 12:39:00–12:39:01 CST. Every file has roll_distance -1 and sample_count == nb_frames == nb_read_frames + 1.

short bytes sample_rate sbgp count decoded frames
db09b1c5 (official) 4,258,704 48,000 681 680
0299078c 6,965,109 44,100 759 758
632c0129 7,080,290 44,100 762 761
8256cd87 9,808,970 32,000 544 543
875d2458 1,159,628 44,100 176 175
947f5eb2 3,429,450 44,100 823 822
db033545 2,447,927 44,100 434 433
f7ff5268 4,566,973 44,100 821 820

A roll_distance of -1 is the usual way an MP4 tells a player to hold back one AAC frame as encoder delay. It is not a damaged soundtrack. If you are writing a remuxer, copy the sgpd / sbgp pair with the audio track, or record that you dropped it.

How to reproduce: Python 3, ffprobe, and the roll_groups.py / mp4_walk.py / iso_boxes.py scripts in this post. test_roll_groups.py exits 0. Numbers are from files/dv/roll_groups.json, measured on this box on 1 December 2026.

Top comments (0)