-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
RTMP to WebRTC fps drop by DJI mini 3. #4050
Comments
I also have the same problem, but I tested with OBS Studio and found the following: If I stream using the advanced settings and change the Output mode to "Advanced," then: FFmpeg VAAPI H.264 --> Linux Chrome: OK, Android Chrome: OK I was able to reproduce the issue with a simple ffmpeg command: It seems that more expensive drones (or controllers) use another algorithm, which is not FFmpeg VAAPI H.264. Are there any settings I can try to change? Unfortunately, I cannot change anything on the drone's side (no any option in the official DJI app), only on the SRS. Tested on Ubuntu 22 with the default config, docker |
Please use h.264 profile baseline if need converting RTMP to WebRTC. Dup to #4052 |
@winlinvip Do you mean in |
Maybe it is the web browser don't support h.264 b-frame, because baseline profile don't support b-frame, that's the reason baseline works well. @zeldan you can verify by disable the b-frame by
or just use baseline profile.
|
Sorry, I reproduced the Here is my way to reproduce the
If I do transcode in step 2, don't do next steps. |
Describe the bug
There are more different ways how I can start a stream. If I am using ffmpeg or DJI mini 3 pro via rtmp everything works on every device fine on the client side using Mediastream and PeerConnnection javascript API. If I am using a DJI Mavic Enterprise (Thermal) then I have huge fps drops on iOS and Mac Safari in all cases I get to stream the same settings like H264, Level 3.1/4 with different resolutions. I would think that SRS applies the same encode decode settings for all incoming RTMP data and push the same through RTC, or maybe there are some differences? Does anybody any idea what could be the issue, or where should I try to start it? I can reproduce the bug using FFmpeg. VP8/VP9/Av1 is not the problem I think, because it is experimental on iOS, but there is always H264 code.
Version
Latest of V5.
Expected behavior
Smooth WebRTC streaming on all devices.
The text was updated successfully, but these errors were encountered: