Log in

View Full Version : How can multiple ranges be selected for VDub to frameserve?


tluxon
17th March 2003, 05:24
As near as I can tell so far, VirtualDub only works on a single selected range of a file at a time. If this is the case, it seems that it would be very cumbersome to use to remove commercials from a movie and frameserve what you want to keep for re-encoding into mpeg-2. How do people handle this, or is there a way to select multiple ranges?

Thanks,

Tim

maago
17th March 2003, 05:51
Personally, I use virtualdub to find the frames to cut at, and use the Trim command in avisynth. (Then I serve to vdub and make a huffyuv compression of it to be safe when using DVD2SVCD and CCE, anyone know if this is necessary with filters like PeachSmoother?) I haven't found a way to select multiple ranges in virtualdub either, the best I came up with was deferring the jobs and doing all the cuts at once, and then merging them afterwards, or using '++' in avisynth. Here is the exact script I use for capturing Seinfeld episodes and removing commercials:

LoadPlugin("TomsMoComp.dll")
LoadPlugin("PeachSmoother.dll")

c = Avisource("capture.avi")
## ~4 seconds of blackness to take care of the 2 sec overlap in bbMPEG muxing
c0 = Blankclip(c,120)
c1 = Trim(c,1883,8403)
c2 = Trim(c,10206,22093)
c3 = Trim(c,27500,45519)
c4 = Trim(c,50387,52478)

c0 ++ FadeIO2(c1,10) ++ FadeIO2(c2,10) ++ FadeIO2(c3,10) ++ FadeIO2(c4,10)

TomsMoComp(1,15,1)

PeachSmoother(NoiseReduction=45,Stability=25,Spatial=50)

bb
17th March 2003, 13:00
Simply cut out each commercial (Mark-In, Mark-Out, then press Delete) and save a VCF file by File / Save processing settings. Then use my tiny tool vcf2avs to get an AVS file including the Trim commands, which you can use to frame serve to CCE or TMPGEnc:
http://forum.doom9.org/attachment.php?s=&postid=253886

bb

tluxon
17th March 2003, 15:06
That is a quick and slick way to get the Trim command line. It would be great if you could someday add the use of templates for consistently used filters and other parts of the .avs file.

Cheers,

Tim

Belgabor
17th March 2003, 17:22
Sorry, can't resist:

Templates are already in VDubMod and the script editor can copy the video edit (the cut out pieces) to AviSynth Trim commands :P

Cheers