Page 1 of 1

How to get FPS

Posted: 18 Mar 2012 14:04
by levyitay
Hi,
I have a rtsp stream being played with live555 module.
How can I get the current FPS?
before VLC 2.0 I used stats->i_displayed_pictures which now returns 0 all the time.
libvlc_media_player_get_fps also returns 0

any ideas?

Thanks,
Itay

Re: How to get FPS

Posted: 28 Mar 2012 15:15
by andreahmed
I have the same problem

Re: How to get FPS

Posted: 29 Mar 2012 21:04
by levyitay
Hi,
I solved the problem.
first make sure that in the init flags you don't have --no-stats
then get the "i_displayed_pictures" (you can get an array of stats from the media)
then just calculate the difference between each second