[vlc-devel] get_fps always return zero

Rémi Denis-Courmont remi at remlab.net
Mon May 3 16:29:53 CEST 2010


On Mon, 3 May 2010 16:23:32 +0300, Mehmet Kaplan <mehmetkpln at gmail.com>
> as clear from the subject, libvlc_media_player_get_fps function
> returns always zero in most of the file formats (in avi there is not
> any problem; in wmv, mp4, mov video formats get_fps always returns
> zero).
> however, get_length and get_position works well in all format types.
> by the way, I'm using vlc 1.0.5.
> is there any solution for this problem?

You need to fix every file format plugin one by one. Unfortunately, many
formats do not convey a reliable frame rate nor enforce a constant one. So
there is no way that libvlc_media_player_get_fps() can ever be made to work
reliably. Any application that rely on this information is basically broken
by design.

Rémi Denis-Courmont

More information about the vlc-devel mailing list