Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: adam on May 21, 2019, 07:31:16 AM

Title: VideoFilter select Variable
Post by: adam on May 21, 2019, 07:31:16 AM
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
Title: Re: VideoFilter select Variable
Post by: eumagga0x2a on May 21, 2019, 05:13:17 PM
There is just the + operator missing between "logoImageFile=" and Trans.
Title: Re: VideoFilter select Variable
Post by: adam on May 22, 2019, 04:55:23 AM
Thanks for the help, it is fixed now.