hello ,
i'm trying to add a logo on my vidéo from X frames to X frames, but i can't succeed with functions overlay , layer, or logo.vdf
with overlay function i can't find the way to let appear the logo during X frames only
with layer function, the same
with logo.vdf , avspmod says invalid argument
So, how can I put a logo on my video wich appear from frame number 3316 to frame number 3367
The logo is a png with no transparency
thanks a lot
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 4 of 4
Thread
-
-
Using AviSynth?
B=ImageSource("Logo.png")
AVISource("Movie.avi")#whatever your source video is
A=Last
C=Overlay(A,B,100,200)#the numbers represent the X and Y coordinates for the logo
ReplaceFramesSimple(A,C,Mappings="[3316 3367] ")#the numbers represent the start and end frame numbers
ReplaceFramesSimple is a part of stickboy's RemapFrames filter. -
Or something like:
Code:logo = ImageSource("Logo.png") source = AVISource("Movie.avi") #whatever your source video is # cut the video into three parts part1 = Trim(0, 3315) # start to 3315 part2 = Trim(3316,3367) # 3316 to 3367 part3 = Trim(3368, 0) # 3368 to end # apply the logo to part2 part2 = Overlay(part2, logo, x=100, y=200) #the numbers represent the X and Y coordinates for the logo # put the three parts back together part1++part2++part3
-
Jagabo and manono give excellent examples, as always, but if you are familiar with Avisynth, you can use another script that allows you to size your Logo/video as well as other attributes than can shorten setup time.
Code:v1 = Directshowsource("birthday with audio.flv").ConvertToRGB32.Lanczosresize(640, 480) img1 = ImageSource("TransparentBG.png", pixel_type="RGB32", fps=30.000, end=3368).converttoRGB32.LanczosResize(144,100) clip1 = v1.trim(0, -3316) ++ v1.trim(3316, -52).Overlay(img1, 100, 200,Opacity=1.0, img1.ShowAlpha()) \ ++ v1.trim(3368, 0) return clip1
[Attachment 45532 - Click to enlarge]
Similar Threads
-
Can I force ffmpeg to transcode 59.94 frames to display at 25 frames per se
By oduodui in forum EditingReplies: 4Last Post: 28th Apr 2018, 09:24 -
Replace random duplicate frames with black frames (AVISYNTH)
By benzio in forum EditingReplies: 7Last Post: 31st Jan 2018, 16:43 -
Avisynth total frames does not equal VirtualDub total frames
By EasyFeet in forum EditingReplies: 12Last Post: 14th May 2017, 00:20 -
Add and or remove black frames from MKV (h.264) file without re-rencoding?
By Krawhitham in forum EditingReplies: 1Last Post: 12th Sep 2015, 02:39 -
Help: Applying Avisynth Filters to Certain Frames and to All Frames
By DarkSamus993 in forum EditingReplies: 4Last Post: 27th Dec 2013, 13:24