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 wan
For this scenario (and any like it), I strongly recommend to not start with
code. Even for my own coding projects I do not start with code. Start with
Shotcut or Kdenlive and use the tool to visually achieve what you want. After
you get the result that you are looking for in the graphical tool,
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 tracto