obs-webrtc: Allow B-frames for AV1#13393
Conversation
|
I found this comment:
If this is correct the problem with b-frames seems to be on the viewers side. However I guess this might not be a good user experience because most users using WHIP most likely watch the resulting streams using WHEP in a browser which doesn't support b-frames so if we completely remove the line it might result in some users complaining why their streams hang. If we do this projects like Broadcast Box should add an error message informing the user that their browser can't play the stream if it uses b-frames with H26x. Not sure what is the best way to handle this. What do you think? |
Description
This change allows to use AV1 B-frames for the WHIP output.
Motivation and Context
Current browsers do have problems with B-frames in WebRTC, however this limitation only applies to H264 and HEVC.
When used with AV1 they do not cause problems.
Therefore OBS should not force disable B-frames if the video codec is AV1.
How Has This Been Tested?
Started a WHIP stream with different codecs and made sure the number of b-frames in the log looks correct.
Watched an AV1 stream with b-frames using Broadcast Box in a browser.
Types of changes
Checklist: