PDA

View Full Version : striping commercials of mpeg2 captured programms


jonas
7th August 2002, 13:15
Hi,

At the moment when I'm capturing tv, I capture into mpeg2 files and use dvd2avi and gknot to convert it to avi later on.
Getting rid of the commercials allways involved selecting each interval (from start to 1st commercial break,...,from next start to end), encode it seperately using gknot and filally apanding the segments using nandub at the end.

As I did'nt know of a better way of doing this, I changed dvd2avi and the mpeg2dec.dll gknot is using a bit, so one can set all intervals in dvd2avi at once, save to one .d2v and to only one gkot encoding.

At the moment it is working fine, but there are still things that could be improved (ease of use, maybe audio sync)

I allready posted in the dev section a few days ago, so I take interesst in this is not too hight.
If I'm wrong, I'll get back to work on these inprovements, otherwise there's no point, as it's working fine for me allready.

If anyone is interested in testing it. I will write some on how to use it (it is easy).
So plz tell me if you're going to test it.

jonas

bb
8th August 2002, 12:29
You can edit the AVS file and cut out the commercials with multiple Trim(firstframe, lastframe) commands, like Trim(1500, 27300)+Trim(32500, 47300)+Trim(52000, 67300). This way you can encode in a single run, and you don't need to append AVI segments.

BTW: you can open the AVS file in VirtualDub, then cut the commercials, save the processing settings, and then use my small proggie to get the Trim commands from the VCF (processing settings) file. Use the latest beta 3:

http://forum.doom9.org/showthread.php?s=&threadid=30587

bb

jonas
8th August 2002, 12:58
oh, good to know. Actually I didn't even know one could add ranges in vdub, but how do you handle the audio? would you first have to extract it to .wav, set it as audio file in vdub and use the save wav function, to be able to convert the audio to mp3?

And for people like me using gknot, wouldn't it still be easier to just add ranges in dvd2avi, which than save to one d2v and to one audio file?

bb, would you mind maybe having a look at the dvd2avi version with multiple range funtionality?

jonas

Edit: removed link to avoid broken link

bb
9th August 2002, 09:09
Regarding the audio, I'd say yes, save it as WAV and proceed as you described it.

Thank you for the DVD2AVI link. I'll test it this weekend.

BTW: Do you capture from analogue TV or from DVB? (Because for DVB there's a different solution.)

bb

jonas
9th August 2002, 10:29
at the moment I'm capturing from analogue TV but I'm considering to buy a dvb card (as soon as I find some money) to be able to get british E4 (showing all good series like friends), so I'd still be interested in that other solution.
I thought the multi range dvd2avi would be helpful especially for dvb, as you recieve the video in mepg2, don't you?

anyways, just a few more sentences to the use of dvd2avi version.

1. A new range is created by pressing '[' when the trackbar pointer is right of the current selected range. (And than ']' wherever you want the new range to end)
2. Only the latest range is shown selected in the trackbar, and only that one can be edited.
3. The Luminance filter is deactivated at the moment.

Things that need to be looked at especially is
4. I'm not 100% sure on Audio sync (I couldn't spot any sysc probs yet)
5. The mpeg2dec you encode just as fast as the old one

thnaks
jonas

bb
9th August 2002, 10:58
In brief for now: For DVB capture in PVA format, use PVACut to cut the file. Then use PVAstrumento to convert to MPEG2.

Thank you for the hints. I'll try that soon, because it's a good alternative to cut through the frameserver. You can cut frame accurately this way, which PVACut doesn't support.

bb

theReal
9th August 2002, 22:13
bb, great tool! Just yesterday I thought I'd really need a tool like that, but it doesn't exist... and now I see it does exist! Cool!