You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
encode-record: option-string parsers for x264, x265, SVT-AV1 and FFmpeg encoder options #265
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)
docs/api/encode-record.md: the RFC 8785 string-scalar form and the worked example.
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.
Keep unknown keys verbatim and mark them as unknown in the record.
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).
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.
Activity
docs(roadmap): move the encoder adapters from 0.4 to 0.6
docs(roadmap): move the encoder adapters from 0.4 to 0.6
docs(roadmap): move the encoder adapters from 0.4 to 0.6
docs(roadmap): move the encoder adapters from 0.4 to 0.6 (#266)
lusoris commentedon Oct 17, 2026
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.
test(encode-options): round-trip option strings through verify (#354)