> Am I correct that MLT translates from these clock times to frame numbers and 
 >uses frame numbers for everything internally?
Yes. "frame number" is often referred to as "position" in the code. I think the 
two terms are used interchangably.
>  How does rounding work?
The code is 
here:https://github.com/mltframework/mlt/blob/master/src/framework/mlt_property.c#L371
It uses lrint() for rounding the seconds part.
~Brian

    On Thursday, August 19, 2021, 11:45:00 PM CDT, amindfv--- via Mlt-devel 
<mlt-devel@lists.sourceforge.net> wrote:  
 
 From reading the "time properties" doc 
(https://www.mltframework.org/blog/time_properties), it seems any number with a 
radix is interpreted as a clock time - e.g. "00:00:00.5" means half a second.

A couple questions:

  - Am I correct that MLT translates from these clock times to frame numbers 
and uses frame numbers for everything internally?
  - How does rounding work? If I'm working at 24fps, frame number 8 has clock 
time 0.3333... and frame 9 has clock time 0.375. If I say "00:00:00.334", is 
that identical to saying "00:00:00.374"? And thus "00:00:00.333" would refer to 
the earlier frame 7? (I.e. the frame number is always rounded down?) Or is 
there some other simple and consistent translation from these clock times to 
frame numbers?

Thanks,
Tom



_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel
  
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to