-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WHIP: Convert OBS WHIP to RTMP failed for no RTCP SR packets. #3582
Comments
thanks @winlinvip for working on this. |
OBS WHIP cannot convert to RTMP due to multiple issues, the biggest one being that OBS WHIP lacks RTCP SR, making it impossible to synchronize audio and video timing. Although there are some ways to work around this, such as using the sampling rate to calculate timestamps, it is expected that there will be issues with audio and video synchronization, and it cannot be completely bypassed. Therefore, let's put this issue aside for now and wait for OBS WHIP to update and support RTCP SR before considering it. PS: Using the sampling rate to calculate timestamps can be risky on some mobile devices where the sampling rate is not accurate. However, since OBS generally runs on PCs, this solution has the potential to solve the problem, but it requires development and testing.
|
Update: OBS version 30.0.2 now includes RTCP SR, and the issue with timestamp synchronization has been resolved.
SRS has successfully decrypted and processed the data. SRS has added a log entry indicating that the timestamp has been synchronized. See 84d1a33
Approximately 2 seconds into the stream, the timestamp will be fully synchronized. PS: Currently, there is an issue with SPS/PPS that is preventing the conversion from WHIP to RTMP. The issue is being addressed.
|
Reproduce steps:
No sequence header for RTMP or HTTP-FLV or HLS.
Issues
It appears that some issues need to be resolved in order to support the transmuxing of WebRTC to RTMP. The following is a pcap file captured by Wireshark, which includes ICE and RTP packets produced by OBS WHIP:
whip-ice-rtp.pcapng.zip
SR NTP Sync
Let's examine an example to understand how Chrome sends RTCP SR and how SRS synchronizes the timestamp.
srs.log.zip
Refer to issue #2470 for using NTP in RTCP SR to synchronize the timestamp. At startup, the timestamp has not yet been synchronized:
It takes approximately 5 seconds to receive the SR and synchronize the timestamp, which is:
About 30s later, the timestamp:
About 1m, the timestamp:
About 2m, the timestamp:
About 12m, the timestamp:
About 17m, the timestamp:
Please see this post for detail.
The text was updated successfully, but these errors were encountered: