ossrs / srs

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

WHIP: Fix bug for converting WHIP to RTMP/HLS. v5.0.208 v6.0.113 #3920

Closed winlinvip closed 4 months ago

winlinvip commented 6 months ago
  1. When converting RTC to RTMP, it is necessary to synchronize the audio and video timestamps. When the synchronization status changes, whether it is unsynchronized or synchronized, print logs to facilitate troubleshooting of such issues.
  2. Chrome uses the STAP-A packet, which means a single RTP packet contains SPS/PPS information. OBS WHIP, on the other hand, sends SPS and PPS in separate RTP packets. Therefore, SPS and PPS are in two independent RTP packets, and SRS needs to cache these two packets.

Co-authored-by: john hondaxiao@tencent.com

winlinvip commented 4 months ago

Test the WHIP+WHEP, and WHIP+FLV, all work very well.

image

image

winlinvip commented 4 months ago

Need to merge to SRS 5.0 and 6.0 @xiaozhihong