Hello, i would like to know how to automatic modify some frames,
my situation is: i recived a video for homework and i have to remove or modify like writing something on the frame. The frames to modify are every 12 frames. And the video is very long so i can't do it one by one.
Does anyone can tell me how to do this, i have no clue.
Thanks!!
		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 13 of 13
			
		- 
	
- 
	Exactly what do you have to modify? 
 
 If it's writing, where is it? does it move or animate? does it change over time, or is it always the same? maybe post an example screenshot
 
 How do you want to "modify" it? cover it up with a black patch? try to "remove" it ?
 
 If it's static, you might be able to use an avisynth filter with ApplyEvery() or similar functions to every 12th frame
- 
	Thanks to answer me, 
 
 to give you more informations, i have a normal video (avi) which have been modified every 12 frames, the modified frames have a white page with "change this one".
 
 So i simply have to write "done" under "change this one" or change the frames with a picture.
 
 Can you help me?
 
 ps oison i saw you are from canada, it would be easier for me to talk in french =) oison i saw you are from canada, it would be easier for me to talk in french =)Last edited by tonyalcapon; 30th Dec 2012 at 17:15. 
- 
	uhhh my french is rusty, I learned some back in elementary & junior high school...but I forgotten most of it 
 
 
 
 But you can do this in avisynth, but there is a bit of a learning curve
 
 Here is an example, that shows the framenumber, you can work though the code, and adjust to your video (just change the filenames, instead of "blankclip" you would use AVISource("yourvideo.avi") .
 
 video "1.avi" is the original , "2.avi" has the replaced frames . You can open it up in something like vdub to go frame by frame . It's really not that difficult, but it helps if you can see and example to work though the code
 
 1
 2Code:BlankClip(length=300, width=640, height=480) AssumeFPS(30000,1001) ShowFrameNumber() ConvertToYV12() 
 
 I chose, 0,12,24,.... but you can change the offset of selectevery . e.g. you might want 1,13,25,....Code:BlankClip(length=300, width=640, height=480) AssumeFPS(30000,1001) ShowFrameNumber() ConvertToYV12() a=last a SelectEvery(12,0) Subtitle("change this one") replaced=last a DeleteEvery(12,0) InterleaveEvery(replaced, 12,0)
 http://avisynth.org/mediawiki/SelectEvery
 
 I used simple subtitle("change this one"), but you can change the x,y position, font, color etc... to place wherever you want . The default is x=0,y=0, so you will see in the example it's in the top left corner
 http://avisynth.org/mediawiki/Subtitle
 
 You need stickboy's applyevery.dll for DeleteEvery(), and InterleaveEvery() - the other filters are internal avisynth filters that come with standard install
 http://avisynth.org/stickboy/
- 
	hello poison, i tried your script and it worked perfect! =) 
 
 now i'm working on it thanks!
- 
	Whew! That sounds like a bunch of work. 
 
 Why not make a 12-frame loop, set to repeat, stretch it out as needed, and composite it against the original? Of course frames 1-11 would be all white.
 
 The 12th would be a still.
- 
	i was also trying to place a picture (just for fun/curiosity) but can't found the solution, do you have any idea? 
- 
	
 it's the same method / same idea , just use ImageSource() instead of subtitle
 http://avisynth.org/mediawiki/ImageSource
 
 using the example above
 
 The "trick" is that the image has to be the same format in terms of colorspace, fps, dimensions etc...Code:BlankClip(length=300, width=640, height=480) AssumeFPS(30000,1001) ShowFrameNumber() ConvertToYV12() a=last ImageSource("image.jpg", 0,300, fps=29.97) ConvertToYV12() LanczosResize(640,480) AssumeFPS(30000,1001) SelectEvery(12,0) replaced=last a DeleteEvery(12,0) InterleaveEvery(replaced, 12,0)
 That's what the ConvertToYV12, LanczosResize, AssumeFPS etc... are for . You just change the parameters to match whatever your source video is
Similar Threads
- 
  Modifying bluray subtitle filesBy agent154 in forum SubtitleReplies: 2Last Post: 20th May 2012, 14:08
- 
  Modifying NTSC MPEG-2 with RestreamBy Anonymous344 in forum Video ConversionReplies: 18Last Post: 25th Mar 2010, 17:11
- 
  Ripping and modifying commercial DVDs and menusBy rassilon256 in forum Newbie / General discussionsReplies: 2Last Post: 9th Feb 2010, 07:30
- 
  Modifying headerinformation in aac *.m4a filesBy chh in forum AudioReplies: 4Last Post: 18th Jul 2009, 12:47
- 
  modifying mpeg4 without writing to diskBy thommyfilm in forum EditingReplies: 5Last Post: 12th Jun 2008, 04:13


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

 
						 
			