DEV Community

Peiguan
Peiguan

Posted on

Do the Public Tiny Desk AI Samples Share One H.264 Video Encode? SPS/PPS Fingerprints and Video-Stream Hashes (Tested)

Do the Public Tiny Desk AI Samples Share One H.264 Video Encode? SPS/PPS Fingerprints and Video-Stream Hashes (Tested)

I built tinydeskoutstanding.video, an independent studio that places one to five photos into a 15-second vertical desk performance. Yesterday I asked whether the eight public homepage samples share one soundtrack. Today, 26 November 2026, I asked the complementary question about the picture: do those files share one H.264 video encode — the same bitstream, or at least the same SPS/PPS — or is each file a different encode?

I re-downloaded the eight /media/imported/ MP4s linked from the live homepage. 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 (12:30:26 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

Each filename is the SHA-256 of the container. All eight names matched after today's download. Then:

python3 video_bitstream_identity.py --samples-dir files/samples --out files/dv
Enter fullscreen mode Exit fullscreen mode

For each MP4 the script:

  1. Stream-copies the first video track to an Annex-B H.264 bitstream (ffmpeg -an -c:v copy -bsf:v h264_mp4toannexb -f h264) and SHA-256s that file. That hash is the video encode, not the container.
  2. Splits NAL units and SHA-256s the first unique SPS and the first unique PPS.
  3. Parses profile, level, entropy mode, and coded size from those parameter sets.
  4. Records width, height, duration, and pixel format from ffprobe as a cross-check.

The eight files do not share one video bitstream

short annex-B bytes annex-B SHA-256 (16) SPS (16) PPS (16) profile@level entropy coded size
0299078c 6,591,623 b48891acc820fbec 32bfaa5340f6ec6c f26281271713d391 High@3.1 CABAC 720×1280
632c0129 6,705,280 3c1cca0c9b9ce964 32bfaa5340f6ec6c f26281271713d391 High@3.1 CABAC 720×1280
8256cd87 9,488,530 598a70480a9e6d24 2b1d5ffdc7895c01 c6e783d08608e8f8 High@3.0 CABAC 480×854
875d2458 1,106,293 497f55eaa4790c33 55e07f54d45a8bc8 a863c4ba04d1c28e High@3.1 CABAC 540×940
947f5eb2 3,099,450 9dd5b40ac0e883f5 1f312d475b7dd2a6 136dc19b2a034f21 High@3.1 CABAC 720×1280
db033545 2,317,218 cb7086874b649a4a bd13d1c2641b7dd9 a863c4ba04d1c28e High@3.1 CABAC 540×960
db09b1c5 (reference) 4,066,216 9049f4ef7961d459 41247e52f88c1d9c edfc17e62b3e22b0 High@3.1 CABAC 720×1280
f7ff5268 4,319,395 628035094bf603f8 bd13d1c2641b7dd9 a863c4ba04d1c28e High@3.1 CABAC 540×960

All eight annex-B hashes are unique. If the gallery were eight muxes of one video encode, those hashes would collide. They do not. Sizes, coded resolutions, and durations also disagree (the official reference is 14.500000 s and 435 frames; 875d2458 is 4.041667 s and 97 frames). Every file is 8-bit 4:2:0 High profile with CABAC; only 8256cd87 is level 3.0, the rest are 3.1.

Two pairs share a parameter set anyway

A shared SPS/PPS is not the same thing as a shared bitstream. 0299078c and 632c0129 have the same SPS SHA-256 32bfaa5340f6ec6c… and the same PPS f26281271713d391…, both 720×1280 High@3.1, but different annex-B hashes and different frame counts (422 vs 424). That is what two encodes — or two slightly different trims — with the same sequence parameter set look like. db033545 and f7ff5268 similarly share SPS bd13d1c2641b7dd9… (540×960). Their PPS a863c4ba04d1c28e… is also shared with 875d2458, which has a different SPS and is 540×940.

The official reference is in neither pair. Its annex-B SHA-256 is 9049f4ef7961d459ec355cba54caa3f0a03ad5c307ea72a08c317560f030c37f, SPS 41247e52f88c1d9c…, PPS edfc17e62b3e22b0….

Takeaway

The public samples are a gallery of eight video encodes, not eight containers around one H.264 stream. Two pairs share an SPS, and one PPS shows up in three files, so a parameter-set fingerprint is useful for "same encoder configuration" and the wrong tool for "same file." If you are writing a downloader or a sameness check, hash the Annex-B video bitstream, not only the container, and do not assume that a matching SPS means a matching picture.

How to reproduce: Python 3 and ffmpeg / ffprobe 7.x. Run video_bitstream_identity.py on the eight SHA-verified files. The numbers above are from video_bitstream_identity.json, measured on this box on 26 November 2026.

Top comments (0)