Page 1 of 1

What is the property named "Position" in the http request

Posted: 25 Oct 2017 13:52
by Miguel L Barco
Hi,
I need to extract the current time (or position) from a video using http request with json.

- I can use the property "time", that woks well, but its not accurate enough. I would like frames, or milliseconds.
- I have seen another property "position" that shows a very big decimal number, and I suppose its also "time", or the real position in the video.

But I cant find the relationship between "position" and "time".

For example, I have "time":399, and "position":0.23910315334797,

Any help will be appreciated
Regards:
Migue

Re: What is the property named "Position" in the http request

Posted: 25 Oct 2017 16:29
by InTheWings
time is time in seconds. unsure if you can set a floating point number.
position is ratio on length.

Re: What is the property named "Position" in the http request

Posted: 25 Oct 2017 19:17
by Miguel L Barco
Thank you! Now I can do the math!
Using the ratio I can get a more precise value of each moment, not just rounded seconds. And using the difference between an exact "position" and the previous "second" expressed as exact "position", I can calculate the frames.
Maybe there are too much decimals, and too much rounded values, but its better than nothing.

Regards:
Migue

Re: What is the property named "Position" in the http request

Posted: 26 Oct 2017 10:11
by Miguel L Barco
Oh! Unfortunately the "seek" command value only accepts an integer. I can't jump to an specific frame, or millisecond or percentage. The telnet interface seems to have the same limitation.

It's sad that i can obtain the precise value of the current point but I can't use it to jump to that point again :-(

Any workaround or extension?

Regards:
Migue