News:

--

Main Menu

VideoFilter select Variable

Started by adam, May 21, 2019, 07:31:16 AM

Previous topic - Next topic

adam

I am trying to simplify the use of avidemux to allow the application of a logo/transparency to a video file.
I have included the relevant code below, where I have the user select through a dialog box the video and appropriate logo.
The video will load and will convert and save with the selection method. The logo however will not be applied, I believe that addVideoFilter isn't recognizing that I am trying to use a variable to give a file path. I am also not sure if that is possible with the the addVideoFilter method.
I can't find any examples were this has worked. Can anoyone help?


adm = Avidemux()
gui = Gui()

Video=gui.fileReadSelect("Select Video to convert")
adm.loadVideo(Video)

Trans=gui.fileReadSelect("Select Transperency")
adm.addVideoFilter("addLogo", "x=0", "y=0", "alpha=255", "logoImageFile="Trans, "fade=0")




PS. when I load a logo in this way I can have text appear in the location were the file name should be using the gui to add the logo but I am unable to have a filepath appear

eumagga0x2a

There is just the + operator missing between "logoImageFile=" and Trans.

adam

Thanks for the help, it is fixed now.