Page 1 of 1

Help! libvlc_media_player_get_fps always return 0 !

Posted: 09 Oct 2009 04:13
by henrymark
:D Hello,
When I use libvlc API to get fps, it always return 0.
Anyone found this problem?
Thanks!

Re: Help! libvlc_media_player_get_fps always return 0 !

Posted: 14 Oct 2009 16:40
by kerdale
Hi all,
I have the same issue with many different media.
Anyone could help?
Thanks.

Re: Help! libvlc_media_player_get_fps always return 0 !

Posted: 14 Oct 2009 17:53
by Rémi Denis-Courmont
You need to wait until the media is preparsed. But even then, most file formats don't provide this information.

Re: Help! libvlc_media_player_get_fps always return 0 !

Posted: 15 Oct 2009 03:19
by henrymark
Sorry! I forgot to point out that I use this API with live streaming, just like rtsp.

Re: Help! libvlc_media_player_get_fps always return 0 !

Posted: 15 Oct 2009 16:20
by Rémi Denis-Courmont
RTSP does not convey frame rate information as far as I know. At least VLC does not support that.

Re: Help! libvlc_media_player_get_fps always return 0 !

Posted: 26 Feb 2010 02:54
by henrymark
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~~

Re: Help! libvlc_media_player_get_fps always return 0 !

Posted: 03 May 2010 14:48
by cobweb2304
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).

Re: Help! libvlc_media_player_get_fps always return 0 !

Posted: 04 May 2010 03:03
by henrymark
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.