Log in

View Full Version : Cutting Ads in virtualdub


rumpleforeskin
7th November 2007, 21:39
hi all,

I have a TV tuner card in my media PC and use it to record alot of documentarys for watching another time. unfortunatly anything that is not shown on bbc is peppered with ads.

Because the Capture card saves the recordings in mpeg format i like to run them through virtualdub and compress them with xvid, and mp3 the audio, saving me my precious disk space.

The problem i have is if i want to cut the ads in virtualdub I have to wait for pass one to complete then manually start pass 2.

The problem is that with que'd jobs virtual dub reloads the source file for again for the second pass but does not "remember" all the ads i had edited out.

Is there a method to circumvent this problem, or a way that virtual dub could save the "editing" information with the job list?

thanks
dave

setarip_old
8th November 2007, 00:19
Hi!

It might be easier to locate an MPEG editor...

Adub
8th November 2007, 01:13
Or you could make the cuts in virtualdub, save the processing settins to a virtualdub settings file. I believe they are called vcf files.

then use a program like VCF2AVS, which will recognize your cuts, and place the appropriate trim() statements in an avs file for you.

Simply load the avs file in your favorite encoding GUI, such as MeGUI, or AutoMKV, which will do the 1st and 2nd pass automatically, an enjoy your perfect encode!

Or, you could do as setarip_old says, find a mpeg editor like mpeg2cut or mpegschnitt and make the cuts directly, and then feed to your favorite encoder.

It seems like you want some program to do the 1st and 2nd pass automatically for you. Well, as I already mentioned, MeGUI and AutoMKV do this wonderfully, so check them out if you are curious.

berrinam
8th November 2007, 05:44
Actually, MeGUI has an AVS cutter, so if you use MeGUI you can select the cuts in MeGUI, and not require VirtualDub at all.

Adub
8th November 2007, 05:52
Oh yeah! I totally forgot about that. That would work perfectly for you.

squid_80
8th November 2007, 08:11
It's easy to do it with virtualdub -
Step 1: Load the source file
Step 2: Cut the ads out
Step 3: Select xvid compression and setup first pass
Step 4: Go to save avi, give it a junk name, tick Don't run this job now, click save
Step 5: Open compression options again, setup the second pass
Step 6: Go to save avi, put the desired filename, tick Don't run this job now, click save
Step 7: Go to file->job control and click start.

If you follow this process you don't need to manually start pass 2 after pass 1 ends and the same edits are used for both passes. It definitely does save editing information with the job list, the only way it would forget the edits is if you're re-opening the file fresh after queueing the first pass.

rumpleforeskin
12th November 2007, 16:14
Thanks for the info guys,

I use the AVS cutter in megui, works a treat.

Squid, i followed you instructions for vdub but when it comes to the second pass vdub reloads the movie file (passing mpeg ect) and loses the edits. Maybe a vista bug as im sure it worked before under xp.

anyways problem solved, thanks

blizard
20th November 2007, 21:02
Another suggestion would be to use AVIDEMUX. It will be very easy to edit and cut commercials as you can do this in one step and you don't need to transcode if that is only to cut out parts in your tv show. Just remember to keep it at in copy mode for both sound and video (no use of any filter option), use MPEG PS or MPEG TS as container and use what ever transcoder like AutoMKIV or AutoMen (both have batch mode) to make a Xvid/Divx or H.264/AVC file from that MPEG2 file you will get. It is possible to use those codec built into avidemux and change containers, but I have not been so very successful with that approach and it is more complicated as for some container/codec combo that isn't very well suited to be cut in the middle as B-frame.

Screen shot from Avidemux at main site for this project (http://fixounet.free.fr/avidemux/screenshots.html)

Wiki (http://en.wikipedia.org/wiki/Avidemux)

Package from Mulder (http://mulder.dummwiedeutsch.de/home/?page=projects#avidemux)

I do think that AVIdemux also have support for AVS and it have pretty good support for resizing, autocrop (MEncoder) and plenty other option with some preview. It is a good option to VDM.