Hi
The only tool I was introduced to get the job done was Avisynth so I tried MeGUI and AvsPmod but both give me errors.
the script:
I get no error with the script above but the logo is too big so if I chain <.Spline16Resize(159,67)> to ImageSoure then it throws an error like "Could not read AVS frame" and the log says "Could not read frame: Filter Error: Attempted to request a planar frame that wasn't mod2 in width!"Code:LoadPlugin("C:\Users\me\Desktop\MeGUI-2944-64\tools\lsmash\LSMASHSource.dll") LSMASHVideoSource("C:\Users\me\Desktop\video.mp4") #deinterlace #crop #resize #denoise Image=ImageSource("C:\Users\me\Desktop\logo.png",pixel_type="RGB32") Overlay(last,Image,mask=Image.ShowAlpha(),x=10,y=10)
I've never used Avisynth successfully so please any help would be really appreciated. I've spent hours without any success.
+ Reply to Thread
Results 1 to 6 of 6
-
-
It probably means you cannot use odd numbers on the resize, must be mod2 (even numbers)
-
I do all my production in FCP and Premier Pro for commercial purposes. Either can easily add a transparent logo or watermark but not free and high learning curve. Probably not for you.
I think ffmpeg can do it. Have a look at this thread https://stackoverflow.com/questions/39591675/ffmpeg-add-semi-transparent-watermarkpng-...different-size -
FFMPEG code.
Code:ffmpeg -i input.mkv -i logo.png -filter_complex ^ [1]scale=VALUE[S];^ [S]format=argb,colorchannelmixer=aa=0.5[alpha];^ [0:v][alpha]overlay=x=10:y=10 output.mkv
Last edited by Secoast; 16th Jul 2023 at 03:47.
-
Thanks everyone. I got the desired result with no errors by changing the logo size but the whole time I thought it would be added as a new layer or a "logo filter" so there'd be no need to re-encode the whole file but I was simply wrong, it took so long
Anyway could you please let me know if there is any way to add a logo to mp4/mkv files without rencoding? No issue on my side if it would be "soft" i.e. could be easily turned off.
Similar Threads
-
How to create transparent logo with audio spectrum on a video
By Tremor in forum EditingReplies: 0Last Post: 26th Sep 2022, 10:09 -
For $$ - Remove semi-transparent logo from video
By gestalt21 in forum EditingReplies: 21Last Post: 20th May 2022, 12:21 -
removing border from logo with transparent
By vanhoa in forum EditingReplies: 0Last Post: 12th Oct 2019, 09:26 -
I have a problem removing transparent logo in avisynth using "delogo"
By TeNSoR in forum Newbie / General discussionsReplies: 11Last Post: 8th Jan 2019, 16:30 -
Add a logo on virtualdub without converting the video
By supercain in forum EditingReplies: 2Last Post: 13th Oct 2018, 20:58