hello guys
is there any way that i can put any video on the silver section in this pictures?

		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 27 of 27
			
		- 
	
- 
	
- 
	see this: 
 http://avisynth.org/mediawiki/Overlay
 
 Replace the first line with your videoCode:pip=colorbars(width=720, height=540) background=ImageSource("vg0f9v.jpg.png") overlay(background, pip, x=24, y=92)
 
 e.g
 pip=AVISource("video.avi").Spline36Resize(720,540)
 
 
 You may have to resize it differently, or add letterbox or pillarbox depending on the source video's aspect ratio . You might have to adjust the length of the background or insert video
 
 
- 
	
- 
	Adjust the background length 
 
 Imagesource has "start" and "end" parameters
 http://avisynth.org/mediawiki/ImageSource
 
 avisynth starts numbering at frame zero , so that's why end is 64999 (= 65000 total frames). Change it to the exact number of frames that you need -1 .Code:background=ImageSource("vg0f9v.jpg.png", start=0, end=64999)
 
 You probably need to add ConvertToYV12() at the end of the script as well
- 
	thank you very much i understand now to deal with pictures using avisynth  
 i have another question there is option on virtualdub that fix video and audio he let them playing at the same time but i can't use on this avs file
   
- 
	I think audio isn't served in the script; what does file=>file information in vdub say? Does it report any audio ? 
 
 An alternative you can probably adjust the audio in the script
 
 But to serve audio try something like this:
 
 If it's a demuxed audio source, or different video container, use the appropriate source filter for audCode:pip=colorbars(width=720, height=540) background=ImageSource("vg0f9v.jpg.png", start=0, end=64999) overlay(background, pip, x=24, y=92) vid=last aud=avisource("video.avi") audiodub(vid,aud)
- 
	imagesource has fps parameter too, you can change it to match your insert video. Use mediainfo if you don't know what the fps is 
 
 background=ImageSource("vg0f9v.jpg.png", start=0, end=64999, fps=x)
- 
	it's recorded video using visual boy advance wath this video and you gonna understand 
 http://www.youtube.com/watch?v=0D_wre2i2xI
- 
	this is my script 
 
 Code:pip=AVISource("1.avi").Spline36Resize(746,564) background=ImageSource("Pokemon Light Platinum.png", start=0, end=65252) overlay(background, pip, x=12, y=82) ConvertToYV12()
- 
	just add the audio in as above 
 
 Code:pip=AVISource("1.avi").Spline36Resize(746,564) background=ImageSource("Pokemon Light Platinum.png", start=0, end=65252) overlay(background, pip, x=12, y=82) ConvertToYV12() vid=last aud=AVISource("1.avi") audiodub(vid,aud)
- 
	this the final code that i use 
 
 but i like to add a png images(transparent) to where is the ballspip=AVISource("1.avi").Spline36Resize(746,564)
 background=ImageSource("Pokemon Light Platinum.png", start=0, end=65252)
 overlay(background, pip, x=12, y=82)
 ConvertToYV12()
 vid=last
 
 aud=AVISource("1.avi")
 
 audiodub(vid,aud)
 i try to use imagesource but it didn't work
- 
	
- 
	BTW, To add transparency, you have to specify RGB32 for the alpha channel 
 
 eg. Lets say you have a background video, and you want to add a single transparent png to overlay. The png has to be the same dimensions as the background video (make it in your image editor)
 
 Code:Background=AVISource("video.avi") Logo=ImageSource("logo.png",pixel_type="RGB32") Overlay(Background, Logo ,mask=Logo.ShowAlpha())
- 
	So it's a single image , not a sequence then ? 
 
 Just remove the white brackground (mask it out, or key it out) save it as a transparent png (RGB32), and follow the example above in post #17. As before, you have to adjust the x, y parameters and so forth
- 
	ok but i want to add the transparent image in this code 
 
 pip=AVISource("1.avi").Spline36Resize(746,564)
 background=ImageSource("Pokemon Light Platinum.png", start=0, end=65252)
 overlay(background, pip, x=12, y=82)
 ConvertToYV12()
 vid=last
 
 aud=AVISource("1.avi")
 
 audiodub(vid,aud)
- 
	
 Just name that section, eg. mybackground=last, then add the image with a 2nd Overlay()
 
 
 Code:pip=AVISource("1.avi").Spline36Resize(746,564) background=ImageSource("Pokemon Light Platinum.png", start=0, end=65252) overlay(background, pip, x=12, y=82) ConvertToYV12() vid=last aud=AVISource("1.avi") audiodub(vid,aud) MyBackground=last ################## Logo=ImageSource("logo.png",pixel_type="RGB32", start=0, end=65252) Overlay(MyBackground, Logo , mask=Logo.ShowAlpha())
- 
	i want this pic to show in the frames that i want when i do that it's still showing from the frame 0 to frame 65252 
 
 Logo=ImageSource("logo.png",pixel_type="RGB32", start=0, end=65252)
- 
	add WithLogo=last 
 
 So now you have 2 versions, MyBackground = no logo , and WithLogo that has logo. Both are the full durationCode:pip=AVISource("1.avi").Spline36Resize(746,564) background=ImageSource("Pokemon Light Platinum.png", start=0, end=65252) overlay(background, pip, x=12, y=82) ConvertToYV12() vid=last aud=AVISource("1.avi") audiodub(vid,aud) MyBackground=last ################## Logo=ImageSource("logo.png",pixel_type="RGB32", start=0, end=65252) Overlay(MyBackground, Logo , mask=Logo.ShowAlpha()) WithLogo=last
 
 Use trim() to add the logo. Say you want the logo to appear only from frame 1000-2000
 
 There are other ways too, e.g. ReplaceFramesSimple() or ClipClop() or similar filters where you replace frames from one video into anotherCode:MyBackground.trim(0,999) ++ WithLogo.trim(1000,2000) ++ MyBackground.trim(2001,0) 
- 
	i use the script like this but didn't work 
 
 pip=AVISource("1.avi").Spline36Resize(787,537)
 background=ImageReader("Pokemon Light Platinum.png", start=0, end=9619)
 overlay(background, pip, x=35, y=84)
 ConvertToYV12()
 vid=last
 
 aud=AVISource("1.avi")
 
 audiodub(vid,aud)
 
 MyBackground=last
 
 Logo=ImageSource("pokemon.png",pixel_type="RGB32", start=7765, end=9619)
 
 Overlay(MyBackground, Logo , mask=Logo.ShowAlpha())
 
 withlogo=last
- 
	So you only want it at the end? from 7765 to 9619 ? 
 
 
 pip=AVISource("1.avi").Spline36Resize(787,537)
 background=ImageReader("Pokemon Light Platinum.png", start=0, end=9619)
 overlay(background, pip, x=35, y=84)
 ConvertToYV12()
 vid=last
 
 aud=AVISource("1.avi")
 
 audiodub(vid,aud)
 
 MyBackground=last
 
 Logo=ImageSource("pokemon.png",pixel_type="RGB32", start=0, end=9619)
 
 Overlay(MyBackground, Logo , mask=Logo.ShowAlpha())
 
 WithLogo=last
 
 MyBackground.trim(0,7764) ++ WithLogo.trim(7765,9619)
 
 
Similar Threads
- 
  Avisynth Overlay QuestionBy jelythefish in forum EditingReplies: 13Last Post: 8th Apr 2013, 19:56
- 
  FadeIn/FadeOut (Avisynth) questionBy Cherbette in forum EditingReplies: 5Last Post: 20th Jan 2012, 22:27
- 
  AVISynth QuestionBy Alexstarfire in forum Newbie / General discussionsReplies: 6Last Post: 6th Jul 2010, 12:22
- 
  Avisynth Script QuestionBy MegaTonTerror in forum Video ConversionReplies: 4Last Post: 22nd Aug 2009, 22:28
- 
  Basic question about AVISynth pluginsBy sd_smoker in forum Newbie / General discussionsReplies: 3Last Post: 3rd Jul 2008, 12:04


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			


 Quote
 Quote
