Help! libvlc_media_player_get_fps always return 0 !

This forum is about all development around libVLC.
henrymark
Blank Cone
Blank Cone
Posts: 46
Joined: 11 Aug 2009 09:55

Help! libvlc_media_player_get_fps always return 0 !

Postby henrymark » 09 Oct 2009 04:13

:D Hello,
When I use libvlc API to get fps, it always return 0.
Anyone found this problem?
Thanks!

kerdale
New Cone
New Cone
Posts: 4
Joined: 08 Oct 2009 10:21

Re: Help! libvlc_media_player_get_fps always return 0 !

Postby kerdale » 14 Oct 2009 16:40

Hi all,
I have the same issue with many different media.
Anyone could help?
Thanks.

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

Re: Help! libvlc_media_player_get_fps always return 0 !

Postby Rémi Denis-Courmont » 14 Oct 2009 17:53

You need to wait until the media is preparsed. But even then, most file formats don't provide this information.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

henrymark
Blank Cone
Blank Cone
Posts: 46
Joined: 11 Aug 2009 09:55

Re: Help! libvlc_media_player_get_fps always return 0 !

Postby henrymark » 15 Oct 2009 03:19

Sorry! I forgot to point out that I use this API with live streaming, just like rtsp.

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

Re: Help! libvlc_media_player_get_fps always return 0 !

Postby Rémi Denis-Courmont » 15 Oct 2009 16:20

RTSP does not convey frame rate information as far as I know. At least VLC does not support that.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

henrymark
Blank Cone
Blank Cone
Posts: 46
Joined: 11 Aug 2009 09:55

Re: Help! libvlc_media_player_get_fps always return 0 !

Postby henrymark » 26 Feb 2010 02:54

Hi, all,
I found libvlc_media_player_get_fps always return zero even playing local file!

So I think it's a bug and need to fix......thx~~

cobweb2304
New Cone
New Cone
Posts: 5
Joined: 30 Apr 2010 10:08

Re: Help! libvlc_media_player_get_fps always return 0 !

Postby cobweb2304 » 03 May 2010 14:48

i have the same problem with vlc 1.0.5.
get_length and get_position functions work well.
But get_fps function always return 0 (in .avi files it works well, problem is in other formats).

henrymark
Blank Cone
Blank Cone
Posts: 46
Joined: 11 Aug 2009 09:55

Re: Help! libvlc_media_player_get_fps always return 0 !

Postby henrymark » 04 May 2010 03:03

Thx for your response,and I just try v1.1 library to get fps and it works. So you can try v1.1 to get fps, but I think there maybe some bugs inside version 1.1, v1.1 need more testing.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 11 guests