Skip to content

Auto codec detection - #135

Merged
henkwiedig merged 5 commits into
OpenIPC:masterfrom
henkwiedig:auto-codec
Jul 8, 2026
Merged

Auto codec detection#135
henkwiedig merged 5 commits into
OpenIPC:masterfrom
henkwiedig:auto-codec

Conversation

@henkwiedig

Copy link
Copy Markdown
Collaborator

This PR adds automatic codec detection.

--codec now accepts:

  • h264 – Uses a fixed H.264 codec. Automatic detection is disabled, so there is no change in behavior.
  • h265 – Uses a fixed H.265 codec. Automatic detection is disabled, so there is no change in behavior.
  • auto – Classifies incoming packets. Once a threshold of kCodecSwitchConfirm consecutive packets is reached, the pipeline is reset and switched to the detected codec.

Default: h265

Other changes

  • RAW recordings are restarted after a codec switch.

  • Added new codec icons.

  • Added new facts:

    • video.codec: h264 or h265
    • video.codec_id: 0 or 1

@henkwiedig
henkwiedig merged commit d384836 into OpenIPC:master Jul 8, 2026
10 checks passed
@henkwiedig
henkwiedig deleted the auto-codec branch July 11, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant