View Single Post
Old 8th July 2012, 14:36   #4  |  Link
juhok
Registered User
 
juhok's Avatar
 
Join Date: Dec 2005
Posts: 110
Here's a suggestion for a similar issue by jmac698 at digitalfaq.com forums, adjust as needed:

Code:
#Fix Sony 9000 Digital8 video
#A Script which fixes a problem where the top 6 lines of video have a green color
#Version 0.1 by jmac698  Dec/10
dir="G:\project001a\vcr comparison\"
imagesource(dir+"sony9000.jpg")#change this to: 
#avisource(dir+"yourvideo.avi")
pal=1#set to 0 for NTSC (obviously would apply to an equivalent NTSC hi8 deck)
goodline=13#increase this until the color is fixed, refers to the cropped coordinates
newwidth=720#The final width of the new video
newheight=(pal==1)?576:480#The final height of the new video
#This script is not completely general, generally only even numbers are supported
left=4#adjust these to closely crop your video
right=9
top=0
bot=7
Crop(left, top, -right , -bot)#Crop your video
addborders((newwidth-last.width)/2,(newheight-last.height)/2,(newwidth-last.width)/2,(newheight-last.height)/2)#Re-Centre your video
converttoyuy2
badcolor=last.vtoy#This is where the green line comes from
fillcolor=badcolor.crop(0,goodline,0,-(newheight-goodline-2)).pointresize(newwidth/2,goodline)
fixcolor=stackvertical(fillcolor,badcolor.crop(0,goodline,0,0))
ytouv(last.utoy,fixcolor,last)
juhok is offline   Reply With Quote