The bsrw filter rewrites metadata for various bitstream formats. It must be explicitly loaded as it is not checked during graph resolution. It operates in passthrough mode for unsupported codecs.
Supported modifications by codec:
- MPEG-4 Visual: Sample aspect ratio, profile, and level.
- AVC|H264, HEVC, VVC: Sample aspect ratio, profile, level, profile compatibility, video format, video fullrange, color primaries, transfer characteristics, matrix coefficients, and timecodes (AVC/HEVC).
- AV1: Timecode.
- ProRes: Sample aspect ratio, color primaries, transfer characteristics, and matrix coefficients.
Note: For HEVC and VVC, some properties (like profile IDC and profile space) are modified in the stream configuration rather than the bitstream itself. Values default to -1 (keep existing info). A sar value of 0/0 removes the sample aspect ratio if possible.