VideoHelp Forum




+ Reply to Thread
Results 1 to 16 of 16
  1. Member
    Join Date
    Aug 2009
    Location
    United States
    Search Comp PM
    I only want to crop certain sections of a 10min video in virtual dub mod,Is this possible and how do I do it???
    Quote Quote  
  2. What do you mean by crop? Are you talking about removing scenes from the video? Or removing part of the frame (to get rid of black borders, for example)?
    Quote Quote  
  3. Member
    Join Date
    Aug 2009
    Location
    United States
    Search Comp PM
    Removing parts of the frame yes,only in certain parts though.
    Quote Quote  
  4. You can't remove parts of the frame from certain scenes and then retain the entire video. An AVI must have the same frame size throughout. If there is just something you want to cover up with a black (or other color) box you can use the Fill filter. To apply this only to certain shots you would have to work in sections. Save each section (use sequential numbers in the filenames) then append them all when you are done.

    To crop away a portion of the frame for the entire video can use the Crop function. It can be applied to any filter. If you aren't doing any other filtering you can add the Null Transform (do nothing) filter, then apply cropping to that.
    Quote Quote  
  5. Member
    Join Date
    Aug 2009
    Location
    United States
    Search Comp PM
    Yes the fill will do just fine,But I need some kind of tutorial to do sections only.Or is there an easier program to do this and save as an mpeg not avi.
    Quote Quote  
  6. Most full featured editors have similar functions and will let you apply the fill/overlay over only the desire range of frames.

    In VirtualDub you should set everything up, including the fill filter, and compression codecs. Use the mark-in and mark-out tools to mark sections. Turn the fill filter off or on (or change the fill area as necessary) for the current section. Then save the section as AVI.

    For example, if you want to cover something in frames 1000 to 2000 of a 5000 frame video:

    1) Open the source video, add the fill filter, set the compression codec and prameters.

    2) Mark in at frame 0, mark out at frame 1000. Turn off the fill filter (in the main Filters dialog uncheck the checkbox to the right of the filter). Save as AVI, name it PART1.AVI.

    3) Mark in at frame 1000, mark out at frame 2000. Turn on the fill filter. Save as AVI, PART2.AVI.

    4) Mark in at frame 2000, mark out at frame 5000 (end of video). Turn off the fill filter. Save as AVI, PART3.AVI.

    You can now join the 3 parts together in VirtualDub:

    A) Open PART1.AVI as usual, File -> Open Video File.

    B) Append the other segments: File -> Append AVI Segment. Select PART2.AVI. PART3.AVI will automatically be appended.

    C) Select Video Direct Stream Copy so the video doesn't get reencoded.

    D) File -> Save as AVI to create your final AVI file.
    Quote Quote  
  7. Member
    Join Date
    Aug 2009
    Location
    United States
    Search Comp PM
    Will give it a shot jagabo I do understand,I really appreciate the instructions.Thanks!!
    Quote Quote  
  8. Oops, the checkbox is to the LEFT of the filter, not the right!
    Quote Quote  
  9. Member
    Join Date
    Aug 2009
    Location
    United States
    Search Comp PM
    O.K my next issue here is 47sec chunks of video are being saved at 1.42 GB which is very large.Complete original file is only 926MB It will not allow direct stream copy to work probably due to format of file which is a .VR file ripped from a ram disc.And if I'm correct .Vr is nothing but a mpeg2 file.I just change the extention to mpeg.Any way of reducing the size.
    Quote Quote  
  10. You have to re-encode using compression (i.e. lose quality if you use lossy codecs). Direct stream copy won't work.

    Step 1 in jagabo's list says "set the compression codec and prameters"
    Quote Quote  
  11. If your final output will be MPEG I recommend you just live with the uncompressed intermediate files or use HuffYUV to compress them to 1/2 to 1/3 that size. Then convert the resulting file(s) with your MPEG encoder.
    Quote Quote  
  12. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    You could avoid the intermediate files by doing the editing entirely within an Avisynth script.
    Quote Quote  
  13. Originally Posted by Gavino
    You could avoid the intermediate files by doing the editing entirely within an Avisynth script.
    You're welcome to write up some detailed instructions on how to do that!
    Quote Quote  
  14. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    I guess I left myself wide open to that one.

    Well, the Avisynth equivalent of VDub's Fill filter (at least in this context) is LetterBox. So the script would look something like this:
    Code:
    AviSource("video.avi")
    ApplyRange(1000, 2000, "LetterBox", 32, 32, 8, 8)
    ... # repeat this line similarly for each affected section
    The example shows frames 1000 to 2000 being blacked out 32 pixels top and bottom, and 8 pixels left and right.

    Once you have created the script, just load it into VDub like a normal video file and save the result (setting compression, etc) as you would normally.
    Quote Quote  
  15. Member
    Join Date
    Aug 2009
    Location
    United States
    Search Comp PM
    I'm really trying to finish a very short video by fri,But my next issue is I'm missing codecs in compression
    I guess the divx is the most widely used.But Don't have it.
    Quote Quote  
  16. Download and install Divx codec or Xvid codec (<-- follow the links). Xvid is a better MPEG 4 part 2 implementation than Divx, these days.
    Quote Quote  



Similar Threads

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