I am playing with pixbuf, but the colours I get are off: https://i.imgur.com/DhuBrir.png while I was expecting: https://i.imgur.com/p8yTx2W.jpg
The code that I am using (in Nim, but readable): # nim c -r --threads:on ex02_show_red_window import mlt import os var f:Repository = initFactory("/usr/lib/mlt-7") # Create the default consumer var p:Profile = newProfile() #mlt_profile_init(nil) var sdl:Consumer = newFactoryConsumer(p, "sdl2") sdl["terminate_on_pause"] = 1 # Stop the consumer when finished var pro:Producer = newFactoryProducer(p, "pixbuf", "./resources/pexels-pixabay-97082.jpg") connect( sdl, pro ) # Start the consumer sdl.start while not stopped( sdl ): sleep(1) I have two questions: 1. What can I do in order to get proper colours? 2. How can I scale the image to fit the profile's size? Kind regards (and have Christmas holidays!)
_______________________________________________ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel