VLCLIB 2.0.5 can't determine stream FPS

This forum is about all development around libVLC.
avi_tal
Blank Cone
Blank Cone
Posts: 19
Joined: 10 Oct 2012 17:49

VLCLIB 2.0.5 can't determine stream FPS

Postby avi_tal » 17 Jul 2013 23:54

Dear Friends,

I am trying to get streaming media Frames Per Second (fps) using the command: float mediaFps = libvlc_media_player_get_fps(mp);
This command always returns zero on streaming media (RTSP). It works fine for movie files.
I am currently using VLCLIB 2.0.5 which opens the stream successfully.
VLC Player is able to show the fps (twice from the real value though) on the "media info" tab.
Does anyone have an idea on why the return value for this function is always zero?

Your help is greatly appreciated.

Thanks,

Avi Tal.

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

Re: VLCLIB 2.0.5 can't determine stream FPS

Postby Rémi Denis-Courmont » 18 Jul 2013 17:26

Not all sources provide frame rate meta-informations. If the player can show the value for the same source, then you probably are querying it too early.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

avi_tal
Blank Cone
Blank Cone
Posts: 19
Joined: 10 Oct 2012 17:49

Re: VLCLIB 2.0.5 can't determine stream FPS

Postby avi_tal » 18 Jul 2013 19:05

Dear Rémi Denis-Courmont,

Thanks allot for your reply.

The player is able to show the value for the same source. LIBVLC calls the libvlc_media_player_get_fps() every 5 seconds, and the return value is always zero.
In fact, I was not able to get fps for any network stream using LIBVLC. Just local video files. The player is able to get fps for most network streams.

Any idea why?

Thanks,

Avi Tal.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 5 guests