Go Back    Forum > Digital Video > Video Project Help > Restore, Filter, Improve Quality

Reply
 
LinkBack Thread Tools
  #1  
03-26-2016, 11:21 AM
premiumcapture premiumcapture is offline
Free Member
 
Join Date: Dec 2013
Location: Boston, MA
Posts: 585
Thanked 72 Times in 65 Posts
Hello,

With Avisynth, what would be the best way to composite a top and bottom portion of a frame between two identical copies of a video? One video's tape is damaged where a portion below has a line for about 20 minutes and another video has a different portion damaged above.

Thanks
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
03-27-2016, 01:10 AM
lordsmurf's Avatar
lordsmurf lordsmurf is online now
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,656
Thanked 2,461 Times in 2,093 Posts
This is my before/after script. It makes side-by-side or top/bottom before/after clips. But you can use it here.

Code:
clip1=AVISource("c:\.avi")
clip2=AVISource("c:\.avi",false).Trim(10,0)

clip1=ConvertToYUY2(clip1)
clip2=ConvertToYUY2(clip2)

# left/right 640x480 source
#StackHorizontal(clip1.crop(0, 0, -320, -0), clip2.crop(320, 0, 0, -0))

# left/right 720x480 source
#StackHorizontal(clip1.crop(0, 0, -360, 0), clip2.crop(360, 0, 0, 0))
#StackHorizontal(clip2.crop(0, 0, -360, 0), clip1.crop(360, 0, 0, 0))

# top/bottom - 640x480 and 720x480 source
#StackVertical(clip1.crop(20, 0, 0, -240), clip2.crop(14, 240, -6, 0))
#StackVertical(clip2.crop(0, 0, -20, -240), clip1.crop(6, 240, -14, 0))

# left/right 720x480 source side-by-side
#StackHorizontal(clip1.crop(0, 0, 360, 0), clip2.crop(360, 0, 0, 0))
#StackHorizontal(clip2.crop(0, 0, 0, 0), clip1.crop(0, 0, 0, 0))
#spline36resize(640,480) 
#spline36resize(960,360)
Notes:
false = no audio
trim = frames not in sync between before and after, so I needed to adjust it

You need to uncomment what's needed. Probably just the top/bottom. I can access this on the share drive, but not test it right now. So hopefully that'll be enough to get you going.

Is that what you want?
A script to replace top with file A, while bottom is still file B?

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Where do you Keep All Your Videos ?? JLegnon Project Planning, Workflows 1 01-28-2013 11:01 PM
Rotating a video that was shot vertically ? Sossity Edit Video, Audio 6 12-22-2010 07:53 AM
Many projects to restore, too many videos deter Restore, Filter, Improve Quality 10 02-17-2010 11:29 AM
Videos into DVDs... Superstar Capture, Record, Transfer 27 01-18-2009 11:49 PM
How to put videos on my iPod ? gatch72 Videography: Cameras, TVs and Players 0 11-05-2006 12:15 PM




 
All times are GMT -5. The time now is 01:17 AM