Author Topic: VideoFilter select Variable  (Read 645 times)


  • Newbie
  • *
  • Posts: 2
VideoFilter select Variable
« 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?

Code: [Select]
adm = Avidemux()
gui = Gui()

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

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


  • Moderator
  • Hero Member
  • *****
  • Posts: 4063
Re: VideoFilter select Variable
« Reply #1 on: May 21, 2019, 05:13:17 PM »
There is just the + operator missing between "logoImageFile=" and Trans.


  • Newbie
  • *
  • Posts: 2
Re: VideoFilter select Variable
« Reply #2 on: May 22, 2019, 04:55:23 AM »
Thanks for the help, it is fixed now.