How to get FPS value when playing ASF stream?
Posted: 07 Jan 2013 17:09
hi, i'm trying to get FPS data for ASF stream... function "libvlc_media_player_get_fps" returns always "0"... so I'm trying to calculate it by using data returned from "libvlc_media_get_stats" function...
first I thought about "i_displayed_pictures" but calculated values are too big i.e. 15FPS when stream comes form CCTV Camera (max 5FPS).... because there is no detailed description of "libvlc_media_stats_t" type in documentation and I'm new to whole sreamin/video programming I started to test other data ...and "i_decoded_video" looks to be the winner because it gives me values that are more likely real (1.5-3.5FPS).
... but that is only my assumption.
Can any one confirm it or give me a tip how to calculate FPS value when I'm trying to display an ASF stream?
first I thought about "i_displayed_pictures" but calculated values are too big i.e. 15FPS when stream comes form CCTV Camera (max 5FPS).... because there is no detailed description of "libvlc_media_stats_t" type in documentation and I'm new to whole sreamin/video programming I started to test other data ...and "i_decoded_video" looks to be the winner because it gives me values that are more likely real (1.5-3.5FPS).
... but that is only my assumption.
Can any one confirm it or give me a tip how to calculate FPS value when I'm trying to display an ASF stream?