I'm looking for a way to add logos/icons/images to the screen for 5 seconds at the beginning of the video, like this:
[Attachment 64750 - Click to enlarge]
I'm using this script that does what I need:
On top of that I want to add two logos to the right of the screen, I did try something like the code bellow to se if it would show up:Code:clip1=LWLibavVideoSource("video.mp4").ConvertToRGB32() clip2=ImageSource("1432193.jpg").ConvertToRGB32().BilinearResize(1280,720) maskclip = ColorKeyMask(clip2, $00B140, 0) Overlay(clip1, clip2, mask=ShowAlpha(maskclip), mode="blend", opacity=1)
Instead, the final video is 80x80 with the logo2.png on top, I also try "Overlay" but it end up with the exact same result.Code:icon1=ImageSource("logo1.png").ConvertToRGB32().BilinearResize(80,80) icon2=ImageSource("logo2.png").ConvertToRGB32().BilinearResize(80,80) layer(icon1, icon2)
How do I do that?
Thank you.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 8 of 8
Thread
-
-
Remember that for many compositing processes with images (text is usually excluded here), all images' canvases/frames need to be the same size. So if you have an 80x80 logo sprite to overlay on top of a 1920x1080 video, you will need to apply borders to the 80x80 to expand it out to 1920x1080 (and you would also want to include additional padding with the mask, so that those borders don't show up).
Scott -
Change "layer(icon1, icon2)" to:
Code:Overlay(icon1, x=50, y=200) Overlay(icon2, x=50, y=300)
-
What you are doing is overlaying icon2 onto icon1 and returning the result -- an 80x80 image that is just icon2. You want to layer each of the icons on top of the earlier video, which is named "last" since you didn't name it:
Code:# assuming last is the output of the previous code icon1=ImageSource("logo1.png").ConvertToRGB32().BilinearResize(80,80) icon2=ImageSource("logo2.png").ConvertToRGB32().BilinearResize(80,80) layer(last, icon1, x=?, y=?) layer(last, icon2, x=?, y=?)
Remember, when you don't specify a clip by name the name "last" is assumed, both for input and output. -
Thank you mate.
That does it, thank you.
Code:icon1=ImageSource("logo1.png").ConvertToRGB32().BilinearResize(80,80) icon2=ImageSource("logo2.png").ConvertToRGB32().BilinearResize(80,80) Overlay(icon1, x=1159, y=276) Overlay(icon2, x=1159, y=362)
[Attachment 64751 - Click to enlarge]
PS: How to make that fadeout after 5 seconds at the beginning of the video?
Thank you sir, works like a charm.
Code:layer(last, icon1, x=1159, y=276) layer(last, icon2, x=1159, y=362)
[Attachment 64751 - Click to enlarge]
PS: How to make that fadeout after 5 seconds at the beginning of the video? -
You better use some plugin for logos, like logo.avsi from Dogway: https://github.com/Dogway/Avisynth-Scripts
I see there are options to do fade ins and outs. -
This is the changes done to make the logo 1 and logo 2 to fadein and fadeout at the beginning of the video:
Code:icon1=ImageSource("logo1.png", start=0, end=150).ConvertToRGB32().BilinearResize(80,80).FadeIn(10).FadeOut(15) icon2=ImageSource("logo2.png", start=0, end=150).ConvertToRGB32().BilinearResize(80,80).FadeIn(10).FadeOut(15)
Thank you all for the help.
Similar Threads
-
[Vegas Movie Studio] Add white background to pictures to fit screen width?
By yetanotherlogin in forum EditingReplies: 4Last Post: 21st Feb 2022, 01:57 -
Removing logos from .mkv and retaining original video settings
By AlexA97 in forum EditingReplies: 5Last Post: 10th Aug 2019, 13:44 -
Freemake Video Converter unwanted yellow logos
By CVK in forum Newbie / General discussionsReplies: 5Last Post: 20th Apr 2018, 16:01 -
Removing logos
By RBCC in forum EditingReplies: 2Last Post: 24th Sep 2017, 00:34 -
How to add a time stamp below of a screen capture from a video in ffmpeg?
By Chemist116 in forum Newbie / General discussionsReplies: 11Last Post: 2nd Jun 2017, 15:08