# CTC_LD — AV2 CTC v9 Low Delay (LD)

130 frames, one key frame at 0 (`--kf-min/max-dist=9999`), no lookahead (`--lag-in-frames=0`), low-delay sub-GOP (`--subgop-config-str=ld`), pyramid height 4, fixed QP offsets. qindex 110, 135, 160, 185, 210, 235.

Common to all streams (CTC v9 section 4): AVM `avmenc` v1.0.0, `--passes=1 --end-usage=q --qp=<qindex> --use-fixed-qp-offsets=1 --deltaq-mode=0 --enable-tpl-model=0 --enable-keyframe-filtering=0 --enable-fwd-kf=0 --frame-parallel=0 --obu` (low-overhead OBU stream: size-prefixed OBUs, no container, file `.obu`). Classes A2, A4 and B1 are coded at 10 bit (`--bit-depth=10`) whatever the source bit depth. Intra block copy: B2 `--tune-content=screen --enable-intrabc-ext=1`, A4/A5 `--enable-intrabc-ext=2`, other classes `--enable-intrabc-ext=1`. G1/G2 (HDR): `--color-primaries=bt2020 --transfer-characteristics=smpte2084 --matrix-coefficients=bt2020ncl --chroma-sample-position=topleft`. Tiles only where the CTC asks for them (see the table). All streams are profile 0 (Main_420_10_IP0, 4:2:0, 8/10 bit, single layer), level chosen by the encoder from picture size and frame rate; where the average bitrate is above that level's MaxBitrate, the level / tier in the sequence header was raised afterwards to the lowest one that fits (Main tier, else High tier; `level_fix` in the JSON, decoded output unchanged), at most 6.1. Single pictures (F1/F2 still images, 1 frame) have no meaningful bitrate (the source fps is nominal), so for them the compressed picture size is checked instead (AVM level.c get_max_compressed_size); earlier bitrate-based level fixes of single pictures that fit the encoder's level were undone (`level_fix_reverted`, file again identical to the encoder output).

Speed preset: `--cpu-used=2` (the CTC asks for 0; a faster preset was used to make the full set feasible: the encoder's mode/partition search is reduced, so streams are slightly larger at the same quality). Encoder built with the arm-testset patch `AVM_KEEP_NORMATIVE_TOOLS`: stock AVM switches TCQ and intra DIP off in the sequence header at `--cpu-used>=2`; the patch keeps both on, so every normative tool stays enabled. Sequence-level tools switched off by the preset: none.

Checks per stream: `avmdec --rawvideo` decodes the whole stream without error, the decoded frames are bit-identical to the encoder reconstruction (`--recon`, md5 in the JSON), the number of frames and the output size are as expected, and the parsed sequence header has profile 0, 4:2:0, the expected bit depth and a level of at most 6.1.

**6 streams**, verified 6, total 0.3 MB. Files: `manifest.csv` / `manifest.json` (all parameters and results), a README per sequence folder.

Name: `<source name>_<config>_qp<qindex>.obu` (config AI, RA, LD, AS, RA-RS, LD-RS); next to it `.json` (metadata) and `.enc*.log` (encoder log with per-frame type, qindex, size and PSNR).

## Encoder parameters per class

| class | content | bit depth (source → coded) | tiles (cols x rows) / threads | intrabc | other |
|---|---|---|---|---|---|
| B2 | screen content | 8→8 | 1x1 / 1 | 1 | --tune-content=screen |

## Sequences

| class | sequence | resolution | fps | streams | qindex | levels | kbps (min–max) | size |
|---|---|---|---|---|---|---|---|---|
| B2 | [MobileDeviceScreenSharing.y4m](B2/MobileDeviceScreenSharing/README.md) | 1078x2220 | 15.000 | 6 | 110, 135, 160, 185, 210, 235 | 5.0 | 18–81 | 0.3 MB |
