PS? TS?
I am sure this answer means something to some people, but for me its two obscure and unknown abreviations.
However for those who may also grapple with the meaning of the number returned by libvlc_media_player_get_position() I have the following guess/understanding of what it means and how it is derived. I should state that I have tried to study any source code, just how it behaves when used.
1. The value is NOT directly proportional to the current play position in terms of either time or frames. i.e. the equation
No. of frames played / No. of frames in File != libvlc_media_player_get_position() .
2. I suspect it is actualy calculating a value from a an equation such as :
Current Number of Bytes Read From Media File / Size of Media File. Now if you have varying degrees of compression ratios for different sections of your media then the position value calculated will not be proportional to the actual play position. i.e. Where my 1 minute of "black" trailer starts at the end of my 36 min media file I would expect it have very high compression ratio when compared to preceeding 35 minutes. Indeed looking at libvlc_media_player_get_position() for my file it reports a value of 0.998958 when it has a minute left to play. You might have expected a value of 0.9722222 (35/36).
3. This is not just a "feature" of the libvlc libary either.
![Exclamation :!:](./images/smilies/icon_exclaim.gif)
When playing my media file in the regular vlc media player installed on my PC the slider bar does not accuratly show the position into the play either. i.e. The slider moves at regular pace for the first 35 minutes of play but by the time it gets to my 1 minute of black trailer the slider appears to be already at the end and moves no further during the last minute of black trailer.