DEV Community

Peiguan
Peiguan

Posted on

Is the Maroon Banner Locked in Place, or Does It Drift by a Few Pixels Across This Bama Bound Clip? (Python + ffmpeg, Tested)

The maroon banner is the object people screenshot. If it sits in one place, a still you pull at 1 second and a still you pull at 6 seconds will frame the same cloth. If it drifts by tens or hundreds of pixels as the person walks or tilts the sign, those stills will not crop the same way. I wanted a geometric number for that, not an impression of color.

I build bamabound.app. I did not invent a customer file for this. I measured every frame of the official imported field preview the homepage plays, and I checked the same code on two labeled synthetic controls: one whose banner is locked, and one that I built to drift by 3 pixels per frame. The homepage and the create page still label that preview an imported field preview — an external reference of the sign clip, not a billed generation from this studio. I re-checked the pricing page this afternoon (28 November 2026, 15:21–15:22 Asia/Shanghai). A single 480p Field banner run is $7.98 (798 credits); 720p is $9.98 (998); 1080p is $16.98 (1923); 4k is $24.98 (3921); tax is added at checkout. Every command I quote exited 0.

This is a position check. It is not the 11-26 banner-hex walk, not a letterbox test, and not a first-on timestamp. I do remeasure presence, because the geometry only means something if the cloth is actually there.

The gate and the band

I decode the clip to 8-bit RGB with ffmpeg 7.1.5 and convert to HSV in Python (numpy 2.5.5; no OpenCV). A pixel counts as maroon when its hue is in [310, 355] degrees, its saturation is at least 0.40, and its value sits between 0.10 and 0.75. That is the same gate the 11-24 chapter-marker work and the 11-26 hex walk used.

For each frame I take the vertical banner band as the longest run of rows whose maroon fraction is at least 15%, merging gaps of up to four rows. Inside that band I take the horizontal span the same way, at a 15% column cut. I also record the centroid of every gated pixel. I am not using the tight bounding box of every gated pixel as the headline, because maroon-gated pixels also appear outside the cloth (on this file the tight y-range reaches down near y = 1081 on the opening frames). The band is the object I am calling "the banner."

A locked control stays at 0; a drifting control moves 69 pixels

I painted 24 frames of 720×1280 with a green field and a crimson rectangle (RGB 155, 27, 48) that sits inside the gate. In the locked fixture the box stays at y = 200 for every frame. In the drifting fixture it starts at y = 200 and moves down 3 pixels per frame, so the expected top-edge drift is 23 × 3 = 69 pixels. Both are encoded with libx264 CRF 0 and yuv444p so the test is about geometry, not chroma rounding.

banner_position.py --self-check-only exited 0. The locked control reported 24/24 frames with a banner, a maximum edge drift of 0.0, and locked=True. The drifting control reported 24/24, a band_y0 drift of 69.0 — exactly the designed 69 — and locked=False.

The official imported preview is not locked

The official file (src/ref.mp4, SHA-256 9dcb91afc8f985baaa1bae746380d2e2514b6d84abd5108b3b0284eb1fc6492a, 6,117,241 bytes, fetched 28 November 2026 at 15:20:54 CST) is 720×1280, H.264 High, yuv420p, 24 fps, 193 frames. The video stream lasts 8.041667 seconds.

The banner is present on 193/193 frames. The first-on timestamp is pts 0.0 — the same first-on the 11-24 chapter-marker walk reported, and the opening-frame maroon fraction is the same figure, 0.17592881944444444. On frame 0 the vertical band is y ∈ [118, 468). That is the hook I am not retelling. The hook today is whether that band stays put.

It does not.

Quantity min max drift (px) min at max at
band y0 (top) 118 218 100 frame 0, t=0.000 s frame 127, t=5.292 s
band y1 (bottom) 419 520 101 frame 122, t=5.083 s frame 94, t=3.917 s
band height 244 362 118 frame 146, t=6.083 s frame 28, t=1.167 s
centroid x 257.7498 356.2235 98.4737 frame 173 frame 58
centroid y 286.2334 382.1415 95.9080 frame 122 frame 116

The maximum frame-to-frame centroid step is 27.3605 pixels. The mean step is 7.5712 pixels. The script reports locked=False.

The horizontal span is mostly stable and then one frame is not. band_x0 is 0 on the opening frame, has a median of 20 and a 95th percentile of 40, and exceeds 50 on only one frame: frame 26 at t=1.083 s, where band_x0 jumps to 364 and the measured width shrinks to 356. Excluding that one frame, band_x0 drifts 46 pixels (0–46). I am leaving the raw maximum edge drift, 364 pixels, in the report so the outlier is visible, but I would not describe the cloth as sliding 364 pixels sideways. The vertical band and the centroid are the honest drift: about 100 pixels over eight seconds, not a few.

If you are pulling stills for a poster, a crop that is tight on frame 0 (band top at 118) will cut the top of the banner on frame 127 (band top at 218). The cloth moves with the person holding it. It is not locked in place.

The script and the two fixtures are in the files next to this post. python3 banner_position.py reprints the table and exits 0.

How to run it

python3 banner_position.py src/ref.mp4
# also writes banner_position_report.json
python3 banner_position.py --self-check-only
Enter fullscreen mode Exit fullscreen mode

The self-check rebuilds the two fixtures, remeasures them, and exits non-zero if the locked banner reports any edge drift or if the drifting banner does not report a top-edge drift of 69 pixels. Both checks passed today.

Top comments (0)