[vlc-devel] get_fps always return zero

Mehmet Kaplan mehmetkpln at gmail.com
Tue May 4 08:54:10 CEST 2010

>> 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.

I think there is not any problem in files, because i can get the real
fps values with mplayer.
Also in my VLC Player 1.0.2, i see the real fps value in media information.
Is there a problem in 1.0.5 version, also what do you mean by fixing
format plugin?
Should i change the code or use format plugins from older versions?

More information about the vlc-devel mailing list