On 6/5/2018 8:17 PM, alcinos wrote:
Hello,
I'm currently facing the following problem. I have a producer that is
going to be encapsulated into a timewarp producer to adjust speed, and
I would like to know beforehand what will be the duration of the
timewarped producer.
To give a concrete example, say the producer is a AvFormat producer
lasting 1.35s, with a profile at 25fps. Quick math shows that 1.35*25
= 33.75, hence get_playtime() returns 34. However, when I create a
timewarp producer with speed = 0.1, the length doesn't become 34*10 =
340, but rather 337, because of the rounding involved.
To do the exact computation, one would need to access the "real"
duration of the producer, which is in this case 1.35, but I didn't
find any way to do it. Is there a way? What about if in/out points are
set?
Thanks in advance,
Alcinos
I would suggest to create a normal producer with the file, check the
duration, and then destroy the producer and create a timewarp producer.
~Brian
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel