View Single Post
Old 13th April 2019, 22:17   #8806  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
What is QAAC? & How to download it.
Its builtin to MegUI already as one of the optional audio encoders (ie change the selected encoder).

EDIT: Hello_Hello said it better.

Quote:
How to add Logo.png using MeGUI?
MeGUI is an encoder app, why do you expect it to add all sorts of non encode stuff, if you want to add logo (most people want to get rid of such crap)
then learn to use Avisynth, and do it yourself. (once you know how to use Avisynth, then can add your own code to MeGUI generated script)

EDIT: You'de be better off posting request in Avisynth forum, as that is what you would want to use via MeGUI.
Also, you will also want to be more specific in your requirement, ie what is logo source [EDIT: you already said is png], how big, how much of clip affected [eg all, intro, exit] etc.

EDIT: Could search in Avisynth forum for previously posted stuff [EDIT: Below just threads with logo in the thread title]:
eg
[EDIT Actually this one in Mpeg4 Encoder forum] https://forum.doom9.org/showthread.p...highlight=logo
https://forum.doom9.org/showthread.p...highlight=logo
https://forum.doom9.org/showthread.p...highlight=logo
https://forum.doom9.org/showthread.p...highlight=logo
https://forum.doom9.org/showthread.p...highlight=logo
https://forum.doom9.org/showthread.p...highlight=logo
https://forum.doom9.org/showthread.p...highlight=logo
https://forum.doom9.org/showthread.p...highlight=logo
https://forum.doom9.org/showthread.p...highlight=logo
https://forum.doom9.org/showthread.p...highlight=logo
https://forum.doom9.org/showthread.p...highlight=logo
https://forum.doom9.org/showthread.p...highlight=logo
https://forum.doom9.org/showthread.p...highlight=logo
https://forum.doom9.org/showthread.p...highlight=logo
https://forum.doom9.org/showthread.p...highlight=logo

EDIT: Avisynth Layer:- http://avisynth.nl/index.php/Layer
Avisynth Overlay:- http://avisynth.nl/index.php/Overlay

EDIT: Can also do D9 search on "Watermark" as well as "Logo".

https://forum.doom9.org/showthread.p...ight=Watermark
https://forum.doom9.org/showthread.p...highlight=logo
https://forum.doom9.org/showthread.p...ight=Watermark
https://forum.doom9.org/showthread.p...ight=Watermark
https://forum.doom9.org/showthread.p...ight=Watermark
https://forum.doom9.org/showthread.p...ight=Watermark
https://forum.doom9.org/showthread.p...ight=Watermark

EDIT: Simple demo SomeLogo.avs
Code:
# SomeLogo.avs
# with Avisynth installed, play avs in most any player except VLC.
Colorbars(Pixel_Type="YV12").KillAudio                                                  # Testing subtstitute for your source video clip as YV12, ie delete line or comment out [insert '#' before line]
#AviSource("D:\Parade.avi").ConvertToYV12

#####  CONFIG #####
I=ImageSource(".\Imagemagick-logo.png")                                                 # Your Logo in current directory (or specify path)
I_Width     = 128                                                                       # Your required width of Logo, multiple of 4
I_HEIGHT    = 96                                                                        # Your required Height of Logo, multiple of 4
LOGO_X      = -20                                                                       # Logo X position
LOGO_Y      = -20                                                                       # Logo Y position
RGT_REL     = True                                                                      # If True then LOGO_X adjusts right aligned, ie LOGO_X=0 is hard against Right hand side)
BOT_REL     = True                                                                      # If True then LOGO_Y adjusts Bottom aligned, ie LOGO_Y=0 is hard against bottom)
OPACITY     = 0.5                                                                       # 0.0 -> 1.0, 0.0=NO LOGO, 1=ALL LOGO
START_FRAME = 25
END_FRAME   = 100                                                                       # 0 = Do Till End of clip
### END CONFIG ###

I=(I.Width!=I_WIDTH || I.Height != I_HEIGHT) ? I.Spline36Resize(I_WIDTH,I_HEIGHT) : I   # Resize to required
I=I.ConvertToYV12                                                                       # Same As Source clip
END_FRAME = (END_FRAME==0) ? Framecount-1 : END_FRAME
LOGO_X = (RGT_REL) ? (Width -I.Width  + LOGO_X) : LOGO_X
LOGO_Y = (BOT_REL) ? (Height-I.Height + LOGO_Y) : LOGO_Y
MASK=I.BlankClip(Color_YUV=$FF8080)                                                     # Solid White (just dummy for ApplyRange really)

(START_FRAME==0 && END_FRAME==FrameCount-1)
    \ ? Last.Overlay(I,x=LOGO_X,y=LOGO_Y,Mask=MASK,Opacity=OPACITY)
    \ : Last.ApplyRange(START_FRAME,END_FRAME,"Overlay",I,LOGO_X,LOGO_Y,MASK,OPACITY)
Could in MeGUI script editor add line (somewhere just before end of megui script
Code:
Import("D:\...\SomeLogo.avs")  # edit path
And save above script as SomeLogo.avs and edit only the SomeLogo script. [If you do this, ensure to comment out the Colorbars line]
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 14th April 2019 at 01:36.
StainlessS is offline   Reply With Quote