Skip to content

encode-record: option-string parsers for x264, x265, SVT-AV1 and FFmpeg encoder options #265

Closed

Description

@lusoris

BLUF. Build the encode provenance record from real encoder option strings (-x264-params, -x265-params, -svtav1-params and FFmpeg encoder AVOptions), so the record hash describes what actually ran. Split from #81; the record format and digest shipped in v0.4.0-rc.1 (#250, ADR-0175).

Problem

pelorus/encode_record.h canonicalises and hashes the parameters it is given, and encode_record_test.c covers mutations, dropped and tampered fields, and canonical order. Nothing turns an encoder command line into those parameters yet.

Evidence (read 2026-10-09)

Proposal

  1. Parse each encoder's key=value:key=value option string, with each encoder's own escaping rules, plus the FFmpeg encoder AVOptions that change the bitstream, into encode-record parameters.
  2. Keep unknown keys verbatim and mark them as unknown in the record.
  3. Document each encoder's parser rules on the encode-record page.

Acceptance (failing first)

  • Failing first: an x265 option string with an escaped : is split wrongly by a naive parser, and the test catches it.
  • Two option strings that differ only in key order produce the same hash; strings that differ in one value do not (positive).
  • An unknown key is preserved and flagged, and a record with a key dropped from the source string fails verification (negative).
  • An empty option string and one at the parser's length cap both round-trip (build, serialise, verify) (boundary).
  • The parser rules for each encoder are in the docs (docs).

Dependencies

Blocked by: none
Unblocks: vidiko/vmafx#2142, vidiko/vmafx#2159
Size: M
Phase: 0.6

Activity

  1. added
    enhancement
    area:interop
    on Oct 9, 2026
  2. lusoris commented on Oct 17, 2026

    @lusoris
    ContributorAuthor

    The FFmpeg encoder AVOptions part of the proposal moves to #352, which needs its own ADR for the per-encoder tables. This issue closes on its five acceptance items, all of which cover the option-string parsers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:interopenhancementpriority:P2

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions