How to get FPS

*nix specific usage questions
levyitay
Blank Cone
Blank Cone
Posts: 26
Joined: 25 Jul 2011 18:03

How to get FPS

Postby levyitay » 18 Mar 2012 14:04

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

andreahmed
New Cone
New Cone
Posts: 6
Joined: 20 Mar 2012 09:55

Re: How to get FPS

Postby andreahmed » 28 Mar 2012 15:15

I have the same problem

levyitay
Blank Cone
Blank Cone
Posts: 26
Joined: 25 Jul 2011 18:03

Re: How to get FPS

Postby levyitay » 29 Mar 2012 21:04

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


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 19 guests