ffmpeg PTS calculation

1.3k views Asked by At

i im using ffmpeg to save stream in memory and then restream to my html5 web page...i would like to know how can i manually calculate PTS value like xtream panel codes does have (PTS/Network Speed 1.00x or 1.34x or 0.94x)....i can't get output from ffmpeg because i im not saving output file to hdd so i need to caluclate it manually...

i got all information from memory chunk stream link pts_timebase and some others informations like bitrate, resolution etc...how can i manually calculate PTS like ffmpeg outputs when you save file from ffmpeg to HDD and then you get for example:

frame= 710 fps = 65 q=1.0 Lsize = 4974kB time=00:00:28.33 bitrate = 1437.9kbits/s speed = 2.61x

I would like to calculate manually this speed that in this example is 2.61x..what is the forumla to calulate this?

Thanks.

0

There are 0 answers