Skip to content

Add --sframe-replace-kf encoder parameter - #5151

Open
mabenjak wants to merge 2 commits into
AOMediaCodec:mainfrom
mabenjak:switch_at_key_position
Open

Add --sframe-replace-kf encoder parameter#5151
mabenjak wants to merge 2 commits into
AOMediaCodec:mainfrom
mabenjak:switch_at_key_position

Conversation

@mabenjak

@mabenjak mabenjak commented Jul 24, 2026

Copy link
Copy Markdown

The encoder replaces key frames with switch frames in a repeating pattern, if --sframe-replace-kf is set to a non-zero value. The pattern follows this rule:

--sframe-replace-kf =0: disabled

--sframe-replace-kf =1: K-S-K-S…,

--sframe-replace-kf =2: K-S-S-K-S-S…

--sframe-replace-kf =3: …

Fixes #5153

The encoder replaces key frames with switch frames in a repeating pattern, if --sframe-replace-kf is set to a non-zero value. The pattern follows this rule:

--sframe-replace-kf =0: disabled

--sframe-replace-kf =1: K-S-K-S…,

--sframe-replace-kf =2: K-S-S-K-S-S…

--sframe-replace-kf =3: …
@mabenjak
mabenjak force-pushed the switch_at_key_position branch from 153b233 to 0a15277 Compare July 24, 2026 01:10
@mabenjak
mabenjak marked this pull request as ready for review July 24, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Encoder: emit S-frames at key-frame positions

2 participants