Page 1 of 1

Calculation of frame rate

Posted: 09 Nov 2023 07:46
by yanch0712
Does vlc need the unit_in_tick/time_scale in SPS to calculate FPS? According to H.264 protocol, I think they are optional.
But if we do not have these information in SPS, sometimes the vlc can not play the video.

Re: Calculation of frame rate

Posted: 09 Nov 2023 08:38
by Rémi Denis-Courmont
It depends if there are other ways to obtain timestamps.

Re: Calculation of frame rate

Posted: 09 Nov 2023 10:25
by yanch0712
It depends if there are other ways to obtain timestamps.
We have add timestamp to each frame sent via live555, which I think it's enough for player to calculate fps.

Re: Calculation of frame rate

Posted: 09 Nov 2023 16:09
by Rémi Denis-Courmont
In that case, VLC will not calculate the FPS at all. It will just use the timestamps from RTP.

Re: Calculation of frame rate

Posted: 10 Nov 2023 04:27
by yanch0712
In that case, VLC will not calculate the FPS at all. It will just use the timestamps from RTP.
Do you mean it's different when we use TCP or UDP(http)?

Re: Calculation of frame rate

Posted: 10 Nov 2023 10:50
by Rémi Denis-Courmont
No.