mlt

generate video containing scrolling image using MLT


I want to generate a video [let's say 1920x1020] from a 1920x10000 still image.

The image has to scroll, from top to bottom as if someone was actually scrolling a page.

Found answers how to make it with ffmpeg, but i need to scroll it in mlt as i have a lot of other tasks there.

melt -profile atsc_1080p_2997 1.jpg length=300 -filter affine transition.geometry="0=0,0:100%x100%;300=0,-500:100%x100%"

This scrolls, but image is centered and i need to calculate pixels... Is there any way to make it like with ffmpeg? (generate video containing scrolling image) (just pass needed length)


Solution

  • MLT does not have a similar scroll filter. The method you used is the recommended/preferred way to scroll in MLT.

    ...i need to calculate pixels

    You can use percent instead of pixels if that helps.