Skip to content

fix(iso): use hvc1 sample entry for H.265 fMP4#2253

Draft
modeitsch wants to merge 1 commit into
AlexxIT:masterfrom
modeitsch:fix/h265-hvc1-sample-entry
Draft

fix(iso): use hvc1 sample entry for H.265 fMP4#2253
modeitsch wants to merge 1 commit into
AlexxIT:masterfrom
modeitsch:fix/h265-hvc1-sample-entry

Conversation

@modeitsch

Copy link
Copy Markdown

Summary

  • write H.265 fMP4 video sample entries as hvc1 instead of hev1
  • keep ISO parsing compatible with existing hev1 entries while adding hvc1 support
  • add regression coverage for H.265 sample entry generation and decoding

Root cause

go2rtc advertises H.265 MSE streams with an hvc1 codec string, but the fMP4 init segment was written with an hev1 sample entry. Some browsers reject that mismatch when creating or appending to the MSE SourceBuffer.

Validation

  • GOCACHE=/private/tmp/go-build-cache GOPATH=/private/tmp/go-path go test ./pkg/iso

Fixes #2205

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.

BUG: H.265 MSE Streaming Bug Report (In Frigate)

1 participant