Use mlt_producer_set_speed() on the tractor (or playlist as seen in melted):
https://www.mltframework.org/doxygen/structmlt__producer__s.html#a15cb033f194e160cc9f62ce0b3080ff9
Despite the speed being a double, decimals digits are truncated, and speed
less than one for slower than realtime are not supported in a default
build. There is a unsupported build option that makes the mlt_position type
use double instead of int32_t (define DOUBLE_MLT_POSITION), but there is
definitely going to be breakage if you use that. Basically, this value is
added to a frame number-based counter of type mlt_position in the producer.
Negative values are supported to play in reverse. If you look in
src/melt/melt.c you can see this function being used.
On Wed, Jul 18, 2018 at 3:39 PM Steve Rubin <st...@descript.com> wrote:
> I understand that the timewarp producer manipulates a producer's playback
> rate. Is there a way to adjust the playback rate of a higher order
> producer, e.g., a playlist or tractor?
>
> This would enable a straightforward implementation of a project-level
> playback speed option in a DAW/NLE (rather than having to do fine-grained
> management of playback rates on each producer).
>
> Thanks,
> Steve
>
> ------------------------------------------------------------------------------
> 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
>
------------------------------------------------------------------------------
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