VideoHelp Forum




+ Reply to Thread
Results 1 to 2 of 2
  1. Member
    Join Date
    May 2011
    Location
    Sweden
    Search PM
    For instance, draw 2 black rectangles (0,0,244,1080 & 1676,0,1920,1080) for a clip from 01:30 to 03:12.
    Quote Quote  
  2. Originally Posted by elektro View Post
    For instance, draw 2 black rectangles (0,0,244,1080 & 1676,0,1920,1080) for a clip from 01:30 to 03:12.

    If those are x,y coordianates for top left, bottom right - they look like they correspond to 244 width, 1080 height , letterbox bars on a 1920x1080 frame - just crop and add borders

    Use Trim and Aligned Spline to join the separate sections

    Use the frame numbers that correspond to the time depending on your frame rate. You can use ShowTime() and or ShowFramenumber() in avisynth to preview the time and get the framenumber , or use an avs editor like avspmod that shows that info

    Here is a demo script
    Code:
    ColorbarsHD(1920,1080,"YV24")
    ConvertToYV12()
    Trim(0,10000)
    #ShowTime() #2698 - 5755 for 29.97FPS
    orig=last
    
    orig
    crop(244,0,-244,0)
    addborders(244,0,244,0)
    bars=last
    
    orig.Trim(0,2697)  ++ bars.Trim(2698,5755) ++ orig.Trim(5756,0)

    Another method is to use overlay , you can use non rectangular shapes with an alpha mask - but your case is probably simpler with crop and addborders
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!