VideoHelp Forum




+ Reply to Thread
Results 1 to 9 of 9
  1. Member
    Join Date
    Oct 2007
    Location
    United States
    Search Comp PM
    I have a set of 64 frames with a 200x200 box overtop of a black background and I want to replace that box with a 200x200 black box from another source or just draw a 200x200 black box over top of it, but am unsure of how to do this.

    I was looking into the Overlay section, but can't really think of a way to make it not do the entire image...
    Quote Quote  
  2. It can be done with a mask , or alpha channel (transparency)

    Does the "box" move or is it static ?

    What program(s) are you using ? A video editor /NLE ? or avisynth ?
    Quote Quote  
  3. Member
    Join Date
    Oct 2007
    Location
    United States
    Search Comp PM
    AviSynth and the box is static the entire time.
    Quote Quote  
  4. Code:
    WhateverSource() # get source video
    box = BlankClip(last).Crop(0,0,200,200) # create a black clip with same properties as source, crop to 200x200
    Overlay(last, box, x=0, y=0) # overlay the the box at 0,0, or wherever you need it
    Last edited by jagabo; 17th Dec 2016 at 07:49.
    Quote Quote  
  5. Member
    Join Date
    Oct 2007
    Location
    United States
    Search Comp PM
    That would work, but there is some text at the very bottom of the frame that I do not want to crop away.
    Quote Quote  
  6. I think you need to show an example of the source and what you want.
    Quote Quote  
  7. Jagabo gave you the code, but you still need to make some modifications yourself to make it work the way you want.
    Quote Quote  
  8. I originally posted Crop(0,200,-0,-0).AddBorders(0,200,0,0) thinking that the video was 200 pixels wide. But after a while I thought maybe that wasn't the case and updated the post. And updated the post again with more comments. I don't know which he was responding to.
    Quote Quote  
  9. Member
    Join Date
    Oct 2007
    Location
    United States
    Search Comp PM
    Ya, I was replying to his original reply before he edited it. The edited one worked like a charm though.

    Thanks so much!
    Quote Quote  



Similar Threads

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