+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 6 of 6
			
		- 
	*** DIGITIZING VHS / ANALOG VIDEOS SINCE 2001**** GEAR: JVC HR-S7700MS, TOSHIBA V733EF AND MORE
- 
	
- 
	I've found the magic script again in my archives , have a look below Jagabo but i have a problem a small horizontal line is still present if you can give me a hand to tweak that: 
 
 The image i'm working on:imagesource ("blabla.jpg").converttoyv12()
 # X1 is left, Y1 is top, X2 is right, Y2 is bottom
 X1 = 0
 Y1 = 0
 X2 = 720 # for a 720 wide horizontal bar , change accordingly
 Y2 = 32 # for a top 32 pixels in height horizontal bar, change accordingly
 # Make the values MOD4
 X1 = X1 - (X1 % 4)
 Y1 = Y1 - (y1 % 4)
 X2 = (X2 + 3) / 4 * 4
 Y2 = (Y2 + 3) / 4 * 4
 ##
 Active = crop(X1,Y1,X2-X1,Y2-Y1)
 Above = Y1 > 0 ? crop(0,0,width(),Y1) : NOP
 Below = Y2 < height() ? crop(0,Y2,width(),height()-Y2) : NOP
 Left = X1 > 0 ? crop(0,Y1,X1,Y2-Y1) : NOP
 Right = X2 < width() ? crop(X2,Y1,width()-X2,Y2-Y1) : NOP
 Last = Active
 # INVERT HUES:
 input=last
 U = UtoY().Invert()
 V = VtoY().Invert()
 YtoUV(U, V, last)
 #####
 IsClip(Left) ? StackHorizontal(Left, Last) : NOP
 IsClip(Right) ? StackHorizontal(Last, Right) : NOP
 IsClip(Above) ? StackVertical(Above, Last) : NOP
 IsClip(Below) ? StackVertical(Last, Below) : NOP
 return Last
 
 Result:
 Last edited by themaster1; 30th Apr 2015 at 11:13. *** DIGITIZING VHS / ANALOG VIDEOS SINCE 2001**** GEAR: JVC HR-S7700MS, TOSHIBA V733EF AND MORE
- 
	That's basically the same thing I did except for the reversal of the colors. And the longer script has the ability to split right/left in addition to top/bottom. 
 
 The remaining discolored bar is there because the transition from cyan to brown isn't sharp. No matter where you split the video a little bar will be left. I'd fill the bar with an overlay of colors interpolated from above and below.
- 
	*** DIGITIZING VHS / ANALOG VIDEOS SINCE 2001**** GEAR: JVC HR-S7700MS, TOSHIBA V733EF AND MORE
- 
	Something like this: 
 
 Feathering the edges with an alpha mask will probably look better in moving shots.Code:YPOS = 34 ImageSource("Cyan_bar.jpg", start=0, end=23, fps=23.976) ConvertToYV12() # first fix the top top = Crop(0,0,width,YPOS) top = MergeChroma(top, top.Invert()) bot = Crop(0,YPOS,width,-0) StackVertical(top,bot) # then fix the remaining strip top = Crop(0, YPOS-6, width,4) # four lines above bot = Crop(0, YPOS+2, width,4) # four lines below patch=StackVertical(top,bot).Blur(0,1.0).Crop(0,2,-0,-2) MergeChroma(last, Overlay(last,patch,x=0,y=YPOS-2))Last edited by jagabo; 30th Apr 2015 at 22:45. 
Similar Threads
- 
  how to get rid of the black bar ?By ahmadss in forum Blu-ray RippingReplies: 22Last Post: 9th Dec 2014, 14:43
- 
  how can i switching the highest color with draft color in premiere cs5 ?By m6gpower in forum EditingReplies: 0Last Post: 3rd Mar 2014, 04:32
- 
  Facebook search barBy didikai in forum Off topicReplies: 0Last Post: 29th Jun 2013, 14:18
- 
  One sided right bar in Virtualdub ...By holeepassion in forum Newbie / General discussionsReplies: 13Last Post: 22nd Apr 2012, 15:16
- 
  How to get rid of this nav barBy SignedupGuest in forum Newbie / General discussionsReplies: 4Last Post: 15th Mar 2012, 21:40


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

 Quote
 Quote