Skip to content

Add support for H265/HEVC video in WebCodecView#235

Open
Cardy2 wants to merge 1 commit into
devfrom
add-H265-support
Open

Add support for H265/HEVC video in WebCodecView#235
Cardy2 wants to merge 1 commit into
devfrom
add-H265-support

Conversation

@Cardy2
Copy link
Copy Markdown
Contributor

@Cardy2 Cardy2 commented May 25, 2026

Changes:

  • Updated WebCodecView to handle the additional parameter sets needed to decode H265 video.
  • Removed unnecessary reconfigure calls so that no keyframe errors are hit due to reconfiguring while data is in midflight
  • Removed compression !== 'h265' condition from in VideoView createVideoView() for defaulting the use of WebCodecApi

Testing:

  • Ensure the FFMPEG driver is up-to-date with the latest changes in opensensorhub/osh-addons#master otherwise the data will not contain the needed parameter sets needed for decoding
  • Connect to any camera that has enabled H265/HEVC video data AND uses the FFMPEG driver to ingest the data (e.g. Axis, FFMPEG)
  • Open the viewer, start the video visualization, and check the console for errors

Notes:

This PR updates WebCodecView by adding the logic necessary for decoding H265 video. Eventually this logic will be extracted to a shared helper class that will hold the parameter-set state and the Annex-B helpers for both WebCodecView & FFMPEGView. If the WebCodecView logic is sound than decoupling it hopefully won't be too difficult.

@Cardy2 Cardy2 self-assigned this May 25, 2026
@Cardy2 Cardy2 linked an issue May 25, 2026 that may be closed by this pull request
@salsajeries salsajeries added this to the Release 3.0.0 milestone Jun 1, 2026
@Cardy2 Cardy2 requested review from salsajeries and removed request for drewbotts June 2, 2026 15:52
Copy link
Copy Markdown
Collaborator

@tipatterson-dev tipatterson-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May want to change the log levels or reduce the number so that this doesn't clog the feed if other things are being reviewed.

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.

Update osh-viewer to support H265/HEVC video

3 participants