Skip to content

Conversation

@seydx
Copy link
Contributor

@seydx seydx commented Mar 11, 2025

This pull request includes updates to the VideoRTC class in the www/video-rtc.js file to enhance codec support checking. The most important changes are the addition of a new method to check for H.265 support and the modification of codec priority assignment logic.

Enhancements to codec support checking:

  • www/video-rtc.js: Added a new static method isH265Supported to check if H.265/HEVC codecs are supported by the browser.
  • www/video-rtc.js: Updated the condition for assigning msePriority for 'hvc1.' codecs to include a check using the new isH265Supported method.

@felipecrs
Copy link
Contributor

Chrome 136 is probably going to support H.265 in WebRTC by default. Is this PR needed for functioning with Chrome?

@felipecrs
Copy link
Contributor

Chrome 136 is probably going to support H.265 in WebRTC by default. Is this PR needed for functioning with Chrome?

Answering myself: no. This PR is not needed for go2rtc to work with H265 for WebRTC in Chrome. It's already working now that 136 was pushed to stable.

@vampywiz17
Copy link

Chrome 136 is probably going to support H.265 in WebRTC by default. Is this PR needed for functioning with Chrome?

Answering myself: no. This PR is not needed for go2rtc to work with H265 for WebRTC in Chrome. It's already working now that 136 was pushed to stable.

these PR not add the support the HEVC, but add suppport that browser automatically use WebRTC and not MSE. But currently it not working... My stream are only MSE with automatic mode, only work WebRTC if i force it.

So it definately need it.

@felipecrs
Copy link
Contributor

Right, thanks for clarifying it.

www/video-rtc.js Outdated
Comment on lines 674 to 676
if (!videoCodecs) {
return false;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor indentation issue which I think can be better fixed this way:

Suggested change
if (!videoCodecs) {
return false;
}
if (!videoCodecs) return false;

Copy link
Contributor

@felipecrs felipecrs Aug 14, 2025

Choose a reason for hiding this comment

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

@seydx, a gentle ping. :)

@felipecrs
Copy link
Contributor

felipecrs commented Sep 8, 2025

@AlexxIT do you have any concern with this?

If previously WebRTC was preferred when streaming H264, then why not prefer it with H265 too when the browser supports it?

I believe this PR is a no-brainer and is very important.

@AlexxIT AlexxIT self-assigned this Sep 9, 2025
@AlexxIT
Copy link
Owner

AlexxIT commented Sep 9, 2025

I haven't watched it yet.

@AlexxIT AlexxIT merged commit dd7130d into AlexxIT:master Sep 29, 2025
@AlexxIT
Copy link
Owner

AlexxIT commented Sep 29, 2025

Thanks. I made some minor edits.

@AlexxIT AlexxIT added this to the master milestone Sep 29, 2025
@seydx seydx deleted the check-h265 branch September 30, 2025 13:51
@AlexxIT
Copy link
Owner

AlexxIT commented Oct 21, 2025

@vampywiz17
Copy link

@AlexxIT

How to set it up that work properly with WebRTC card integration? If i use go2rtc stream directly it work well, but if i use webrtc card (with go2rtc 1.9.11) it also the MSE is the priority.

@felipecrs
Copy link
Contributor

@vampywiz17 the WebRTC card was not updated yet for this change.

@felipecrs
Copy link
Contributor

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.

4 participants