I would suggest: 1) Create a producer to open V1 (it does not matter the profile)2) Query V1 for the size3) Close V1 (delete the producer)4) Create a producer to open V2 (it does not matter the profile)5) Query V2 for the size6) Close V2(delete the producer)7) Calculate the profile that you want based on the size you queried from V1 and V28) Create a profile with the new calculated profile9) Proceed to create producers, tractors and consumers all using the same profile I do not understand the use case you are working under. Typically people have a target profile that is driven by the device, platform, quality or player that the file will be used on. And then they work everything else to fit within that profile. But your profile is being calculated from arbitrary sized sources. Maybe this does not apply to you because any non-standard profile will work for you. But this is uncommon in my experience. ~Brian
On Thursday, January 6, 2022, 03:53:40 AM CST, José María García Pérez <josemaria.alk...@gmail.com> wrote: Right now, when I stack videos vertically, I output the Tractor and the Profile: "tuple[tr:Tractor; p:Profile] "proc stackVertically*( v1,v2:Producer ):tuple[tr:Tractor; p:Profile] Later I apply the returned profile to the consumer: # Call the function to stack vertically two videos. # The tractor and new profile are returned var (newProducer, profile) = stackVertically( v1, v2 ) # Consumer using the new calculated profile var sdl = profile.newFactoryConsumer( "sdl2" ) sdl["terminate_on_pause"] = 1 # From tractor to SDL2 newProducer > sdl What I would like to do is to apply the profile to the tractor. Like moving the consumer within the stackVertically function and then using that consumer as a producer. I see that there is this plugin to use a consumer as a producer: https://www.mltframework.org/plugins/ProducerConsumer/ but it is not very clear how I should use it and if it is appropriate for this purpose. On the other hand, I wonder if I should get the producer from the tractor and set "width", "height", "aspect_ratio". I am trying this last option without success. Any suggestion is welcomed. _______________________________________________ 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