-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
RTMP2WebRTC: Stuttering when using flutter WebRTC #4052
Comments
I believe this problem is related to #4050 (see my comment #4050 (comment)), where I am experiencing the same issue (but in the browser, not in the application). |
Same issue for me too. I get the same codec information in all cases which is h264 but on iOS in some cases, I have a huge fps drop. I thought there was some experimental codec issue related to VP9/AV1, but the default SRS settings for transcoding is the copy engine, so actually there is no transcoding process. |
In the previously closed issue, you mentioned that the profile should be set to baseline. I am unable to make any changes to the drone (there are no available options). Where should I change this setting? Could you please point out where and what I should change in the SRS configuration? I also tried transcoding with ultrafast and baseline settings, but it was slow (around 2-3 seconds), and I need the streaming to be under 0.5 seconds. |
Let's reproduce this issue first on iOS device. My EnvMacOS 14.4.1 M2 chip Here is my steps to do it. 1. prepare a video source to testingI used this video source
Above video is h.264 high profile without b-frame. 2. start srs
replace ip address to yours. 3. rtmp publish to srs
4. build and install flutter_liveuse the branch in What I did in this draft is to upgrade 5. play webrtc videos in iosclick webrtc option. My conclusionI think the video stream without b-frame seems not that bad, just the same result to play webrtc in web browser (both safari and chrome in MacOS, check my comments in #4050) |
Steps to reproduce
What I found have three problems: ios flutter_live webrtc play, mac safari webrtc play and mac safari http-flv & http-ts play.
Causethe ios & mac hardware decoder (Video Toolbox) dislike to feed it so many SEI NALU between NonIDR and IDR NALU packets. Solutionsadd filter to delete the SEI NALU for rtc, which is works well. |
try to fix #4052. --------- Co-authored-by: winlin <[email protected]>
try to fix #4052. --------- Co-authored-by: winlin <[email protected]>
We have developed a live streaming mobile application using Flutter, which employs RTMP for broadcasting and WebRTC for viewing, based on the logic found in your flutter_live repository (https://github.com/ossrs/flutter_live/blob/main/lib/flutter_live.dart). The application performs well on Android devices, but experiences some lag on iOS devices. We are exploring potential optimizations. From previous tests, we observed that the lag on iOS devices is reduced when the encoder profile is switched from 'main' or 'high' to 'baseline', although some lag still persists.
When using RTMP for baseline streaming, there is less stuttering compared to high settings, but stuttering still occurs.
TRANS_BY_GPT4
The text was updated successfully, but these errors were encountered: