-
-
Notifications
You must be signed in to change notification settings - Fork 826
Question about RTSP fps #1792
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
Comments
Hello, Maybe the problem is in metadata, |
Hello, I was checking the case and this seems that the problem is related with the SPS generated, in Android the SPS never add a value named "vui_parameters_present_flag", this value is optional and contain information about the video fps. I will check if I can insert fps value in the RTSP ANNOUNCE |
Hi @pedroSG94 , Thank you for the reply. I have checked the "Statistics" tag, which has frame number count. |
Hello, I'm not sure the way you are testing but I comfirmed that the fps is working correcly. genericStream.setFpsListener { fps ->
//callback each second that report the fps value
} I only set the fps value in prepareVideo method (I'm using GenericStream) genericStream.prepareVideo(width, height, vBitrate, rotation = rotation, fps = 2) This callback count the video frames send to the protocol module (rtmp, rtsp, etc) |
Hi @pedroSG94 Thanks for the reply. Update 20250409: |
Yes, As commented before it is expected because the fps value is provided by SPS but this value is optional in the SPS. In Android this value seems that never is created so the fps is unknown. In this case the server seems that set the default value (30fps). |
Hi, I have a question about RTSP fps.
I am using
Camera2Source
as video source,mediamtx
on PC as server, and VLC on PC to view the stream.I want to set a lower fps to reduce the data size, so I set fps like this:
call
genericStream.getGlInterface().forceFpsLimit(fps)
beforeprepareVideo(width, height, vBitrate, fps, iFrameInterval, rotation)
.And I find that no matter what fps number do I set, VLC will always get FPS 29.97.
But the parameter seems works (video is not as smooth as 30 fps).
I think it is not a VLC's bug in showing RTSP fps. I tried to use FFMPEG to push a 24fps file, and VLC showed 24 correctly.
So does this mean smartphone is pushing same images to fit 29.97, or just some parameter is not setting right cause VLC always showing 29.97?
Thank you.
The text was updated successfully, but these errors were encountered: