ossrs / srs

SRS is a simple, high-efficiency, real-time media server supporting RTMP, WebRTC, HLS, HTTP-FLV, HTTP-TS, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
25.32k stars 5.33k forks source link

WebRTC: Refine the negotiation about the h264 codec 42e01f #3517

Closed winlinvip closed 1 year ago

winlinvip commented 1 year ago

SRS always choose 42e01f first, which is Constrained(e0) Baseline(42) Level3.1(1f), but we should also choose all 42****, because all baseline codec should be accepted.

So we should refine the negotiation:

  1. Accept 42e01f
  2. Accept 42e0**
  3. Accept 42****

Please refer to following documents for details:

https://github.com/ibc/h264-profile-level-id/blob/master/test/test.js https://blog.csdn.net/epubcn/article/details/102802108