Log in

View Full Version : Is there anyway to put a logo on a video while using meGUI?


Mr901
22nd June 2009, 14:42
Been using this program for a few months now, havent figured out how to do this. any help is appreciated.

flebber
22nd June 2009, 14:55
As Megui uses Avisynth the answer is yes. However there is no native Avisynth logo filter. I don't personally add logo's but here is some examples from here http://www.videohelp.com/forum/archive/watermarks-in-avisynth-t154665.html there is also more information on the page. Also found some examples here http://avisynth.org/mediawiki/Script_examples

Hope it helps

The first example overlays the video with a simple still image.

:

# load the needed plugins
LoadPlugin("F:\editors\Avisynth\plugins\2.5x\imagesequence\imagesequence.dll")
LoadPlugin("F:\editors\Avisynth\plugins\2.5x\mpeg2dec\MPEG2DEC.dll")
# open the videosource
vid=Mpeg2Source("H:\lotr\part2.d2v").ConvertToRGB32
# open the still image
img=ImageSequence("H:\pumpkin\pumpkin1.bmp").ConvertToRGB32
# mask the white background but leave the other colors unchanged
img=ColorKeyMask(img,$FFFFFF,$000000)
# place the image into the upper left corner of the video
ovl=Layer(vid,img,"add",255,0,0)
return ovl


Here is a simple animated logo.

:

# load the needed plugins
LoadPlugin("F:\editors\Avisynth\plugins\2.5x\imagesequence\imagesequence.dll")
LoadPlugin("F:\editors\Avisynth\plugins\2.5x\mpeg2dec\MPEG2DEC.dll")
# open the videosource
vid=Mpeg2Source("H:\lotr\part2.d2v").ConvertToRGB32
# open the imagesequence (2 images)
img=ImageSequence("H:\pumpkin\pumpkin%d.bmp",1,2,25).ConvertToRGB32
# mask the white background but leave the other colors unchanged
img=ColorKeyMask(img,$FFFFFF,$000000)
# let the images sequence loop (almost) for ever
img=Loop(img)
# place the image into the upper left corner of the video
ovl=Layer(vid,img,"add",255,0,0)
return ovl

Mr901
22nd June 2009, 14:58
thanks for the speedy reply, i'll do some research to try and understand what you just posted lol

Mr901
28th June 2009, 01:02
ok i still can't figure this out..can i get it in super simplified noob talk?

freakk69
9th July 2009, 19:55
First download and extract the attachment Logo.zip then place it in the avi synth plugins folder....

And the rest of code is here...

Add this line to very top of the script.
LoadVirtualDubPlugin("C:\Program Files\AviSynth 2.5\plugins\Logo.vdf", "Logo", 0)

Then add this some where in your code ...for no errors add it to the bottom...
ConvertToRGB()
Logo(20, 350, 70, 35, 35, 35, 35, 35, "C:\Documents and Settings\freakk\Desktop\D9 Logo2.bmp", 0, 0, 0, 0, 0, 0, 0)
ConvertToYV12()

First create a BMP image using image editors like photoshop or yours choice....
then save it some where....
change the path of the image in the above script i.e "c:\......bmp"

The values 20, 350, 70 are the x, y , z positions of the logo... change them as per your needs.



---------------------------------------------------------------------------------------------------------

If you want the logo to be shown in some frames only,
Then add this script...leave the above one...but load the plugin..

ConvertToRGB()
Logo(20, 350, 70, 35, 35, 35, 35, 35, "C:\Documents and Settings\freakk\Desktop\D9 Logo2.bmp", 0, 10000, 1000, 0, 0, 0, 0)
ConvertToYV12()

Where 10000 is the frame No. and 1000 is the No. of frames the logo should be shown.
And the logo will be shown only for the 1000 frames starting at 10000th frame.
You can add this as many no of times as you want...changing the frame position.

-----------------------------------:scared:

Mr901
29th August 2009, 21:35
thanks, gonna try that today

Mr901
29th August 2009, 22:11
you are a life saver freak,

but now its giving me a error

http://i31.tinypic.com/epp4bb.jpg

Mr901
29th November 2011, 04:57
Okay new issue trying this, the image doesnt have a background, its transparent, but the program adds one and its slightly transparent.