Calculation of frame rate

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
yanch0712
New Cone
New Cone
Posts: 4
Joined: 09 Nov 2023 07:25

Calculation of frame rate

Postby yanch0712 » 09 Nov 2023 07:46

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15309
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Calculation of frame rate

Postby Rémi Denis-Courmont » 09 Nov 2023 08:38

It depends if there are other ways to obtain timestamps.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

yanch0712
New Cone
New Cone
Posts: 4
Joined: 09 Nov 2023 07:25

Re: Calculation of frame rate

Postby yanch0712 » 09 Nov 2023 10:25

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15309
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Calculation of frame rate

Postby Rémi Denis-Courmont » 09 Nov 2023 16:09

In that case, VLC will not calculate the FPS at all. It will just use the timestamps from RTP.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

yanch0712
New Cone
New Cone
Posts: 4
Joined: 09 Nov 2023 07:25

Re: Calculation of frame rate

Postby yanch0712 » 10 Nov 2023 04:27

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)?

Rémi Denis-Courmont
Developer
Developer
Posts: 15309
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Calculation of frame rate

Postby Rémi Denis-Courmont » 10 Nov 2023 10:50

No.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 25 guests