Industry Insights

238x to 324x: How Semantic Compression Beats a Codec

The datasheet ratios divide exactly against raw YUV420 frames. Here is what that baseline proves, where the bytes go, and which numbers not to quote.

Compression ratios are usually quoted as a single number, which makes them useless for engineering decisions. The figure that matters is not "300× better" but "how many bytes are left for the frame, and what does that cost me in quality". The TP8901-M3ALE03 datasheet quotes 238×, 274× and 324× for its three settings, and those three numbers turn out to be simple arithmetic on the same baseline.

The baseline is raw YUV420, and it checks out

YUV420 stores one luma sample per pixel and one chroma sample per two pixels in each direction, so a frame costs width × height × 1.5 bytes:

Setting

Raw YUV420 frame

Semantic frame

Ratio

320×192

92,160 B

387 B

238×

432×240

155,520 B

568 B

274×

640×368

353,280 B

1,100 B

321× (datasheet: 324×)

The first two rows divide exactly. The third lands at 321× because 1.1 kB is itself a rounded figure — 353,280 ÷ 324 = 1,090 bytes, and the datasheet rounds up to 1.1 kB when it reports the ratio. That is worth knowing before anyone accuses the vendor of fudging: the ratios are not measured against a compressed reference, they are measured against uncompressed 4:2:0 frames.

Raw versus semantic frame size on a log scale

Two things follow from that baseline being honest. First, the comparison is conservative — nobody transmits raw YUV420, so the "real world" saving against a codec is smaller than 238×, which is why the datasheet separates the two claims (238–324× per frame against raw, and 300–1,000× on static or low-motion scenes at quality-priority settings). Second, the 99.8% figure is a whole-stream measurement including the 24-byte frame header, not a per-frame best case.

Where the bytes go

A semantic frame of 387 bytes is not a thumbnail. It is a structured description: what objects are present, where their edges sit, and how they moved since the last frame. The encoder decides how much detail to spend on each of those, which is why the same camera at the same setting can produce 200-byte frames overnight and 900-byte frames at noon.

That is also why P-frames can collapse to tens of bytes. If nothing in the scene changed, there is almost nothing to describe, and the 4:2:0 pixel grid defined in ITU-R BT.601 that a conventional codec would still have to partition and code simply never gets built.

Megabytes per hour, raw frames versus the semantic stream

The per-hour view is the one that convinces operations managers rather than engineers: one hour of 320×192 at 3.2 fps is 1.06 GB of raw frames and 4.5 MB on the link. Twenty-four hours is 25.5 GB of raw video that never has to exist, because the gateway keeps what it needs locally and sends only the description.

What the ratio does not tell you

A high compression ratio is easy to achieve by throwing away information. The useful question is which information survived. Three tests separate a working deployment from an impressive datasheet:

  1. Recognisability. Can an operator identify a person, a vehicle and a direction of movement at the deployed setting? If the answer is no, the ratio is irrelevant.
  2. Small-object persistence. A meter dial or a switch position is a handful of pixels. Semantic encoders that specialise in edges can drop them first, so check that the specific asset you care about is visible after compression.
  3. Motion behaviour. Rapid panning is the worst case for any encoder. The datasheet is explicit that its ratios were measured on deliberately hard footage — high detail, rapid motion — which is the right way to quote them, but your site may still be harder.

The AI edge gateway landing page shows side-by-side frames at the same 10 kbps budget, which is a faster way to judge the first test than any table.

The measurement trap

Two vendors can both claim "99% less data" and mean completely different things:

What is measured

Typical result

What it hides

Against raw YUV420

238–324×

Uncompressed video is never transmitted, so the real saving is smaller

Against H.265 at equal PSNR

3–10×

Sensitive to encoder tuning and to how PSNR is averaged

Bits per second at a fixed quality

9.9 kbps vs 1–2 Mbps

Requires the same scene, same resolution, same frame rate

Ask which row a number comes from. The datasheet here is unusually specific: raw YUV420 baseline, 24-byte header included, hard footage. That is enough to reproduce the measurement, which is the only real test of a compression claim.

Deploying it without surprises

The pragmatic sequence on a real site is: pick the setting from the motion you need, verify one frame at that setting, then multiply. If a meter reading needs 640×368 at 1.1 fps, that is 9.7 kbps — affordable on the TP8606 narrowband link, but it leaves almost nothing for a second camera on the same channel. Two cameras means either dropping to 320×192 or accepting a shared frame schedule.

That is the last thing a compression ratio cannot tell you: how many cameras fit. For that you need bits per second, which the arithmetic on the landing page spells out for each setting.

FAQ

Is 99.8% the same as 238×?

They are measured over different scopes. 238× is one 320×192 frame against its raw equivalent; 99.8% is the whole data stream including headers, measured across real footage with I-frames and P-frames mixed. The stream figure is the one to quote to a network planner, and the per-frame figure is the one to reason about when budgeting a channel.

Can the ratio be raised by lowering quality further?

Yes, and the datasheet already describes the trade: at quality-priority settings on static or low-motion scenes the ratio reaches 300× to 1,000×, and P-frames can need only tens of bytes. The 238–324× figures are the conservative per-frame numbers with PSNR between 27.6 and 29.6 dB.

Does compression affect the GB/T 28181 output?

The gateway presents the stream to a GB/T 28181-2016 or 2022 platform over the same northbound interface regardless of how it was compressed internally, so a platform that expects a standard stream sees one. What changes is the bitrate and the frame rate the platform receives, not the protocol.

More in Industry Insights