View Full Version : How to make my process faster?
TMLewiss2
21st January 2005, 15:23
Ok I capture off my tuner into mpg2 format. Once I have my show (usually an hour long). I use DGIndex, AVISynth (with Decomb and Mpeg2Dec), and VirtualDubMod to encode the video. The problem is that when I have to crop out the commercials, it screws up everything. What I want to do is crop my audio exactly the same spots as my video, but I really dont want to have to save the video stream just for that, is there a way I can use the crop location that I specifiy in avisynth to crop out the audio then save it or something? What is the fastest way. Thanks in advance for all your help.
TMLewiss2
24th January 2005, 10:48
YEAH THE FORUM IS FINALLY BACK UP!
stickboy
24th January 2005, 11:50
Originally posted by TMLewiss2
Ok I capture off my tuner into mpg2 format. Once I have my show (usually an hour long). I use DGIndex, AVISynth (with Decomb and Mpeg2Dec), and VirtualDubMod to encode the video. The problem is that when I have to crop out the commercials, it screws up everything.I don't understand what "screws up everything" means. Could you be more specific?
What I want to do is crop my audio exactly the same spots as my video, but I really dont want to have to save the video stream just for that,So you want to make cuts, but you don't want the video saved? Or do you mean you don't want to re-encode the video?
I don't understand your question (it'd help if you described exactly what it is you're doing; e.g. what's your script, what's your output format). If you're saying you want to cut out commercials without doing any re-encoding, then you should use an MPEG2 cutting tool, such as Cuttermaran (http://www.cuttermaran.de/) or TMPGEnc MPEG Editor (http://www.pegasys-inc.com/en/product/tme.html).
If you do any kind of filtering on your clip, though, you'll have to re-encode. (But if re-encoding is your goal, then what's wrong with using Trim?)
TMLewiss2
24th January 2005, 11:57
What I mean is, what is the fastest way to convert an MPEG2 movie to XviD/Divx with AC3 audio, and still be able to cut out commercials within the original video. So in the end the final video file would have AC3 audio, Dvix/Xvid video, and no commericals at all.
What I do now is:
1: open MPEG video in DGIndex and save it's project
2: Then I use this script
LoadPlugin("C:\Custom\Programs\Audio\AviSynth 2.5.5\plugins\DGDecode.dll")
LoadPlugin("C:\Custom\Programs\Audio\AviSynth 2.5.5\plugins\Decomb521.dll")
#LoadPlugin("C:\Custom\Programs\Audio\AviSynth 2.5.5\plugins\Xlogo.dll")
MPEG2Source("test.d2v",cpu=4,iPP=true,idct=4)
Telecide(order=1,guide=0)
Decimate()
Crop(8, 56, -8, -60).BicubicResize(624, 352)
#Xlogo("scifi_0.bmp",X=508,Y=310,ALPHA=0,NOISE=2)
3: I open that script in VDMod, then save it as XviD.
4: Then I combine the audio (I convert it to ac3) into the xvid video
But that only works well if there is no commercial, because I use VDMod, and if I add the audio before I save to XviD (so that it would all be done at once) then the audio becomes out of sync. I think it is because of the decomb's decimate() which changes the fame rate. So in effect, when I tell the video to crop at frame 1300, the audio would crop there too when it is actually later time because of the removed frames. It's hard to explain. I wish that DGIndex allowed me to just crop out the commercials.
Didée
24th January 2005, 12:06
edit: uh, much additional info's, while I was typing.
original post:
You won't need to re-write the video stream, but you'll need to re-write the audio stream.
When creating the d2v with DGindex, set its audio mode to demux or to decode.
You then get the d2v index file, plus an audio file with the delay time in the name.
Then you use an avisynth script like
v = mpeg2source( "video.d2v" )
a = WavSource( "audio.d2v" )
v.audiodub( a )
DelayAudio( 0.036 ) # value according to indicated delay value
trim(a,b) + trim(c,d) + trim()....load this in Vdub, save the audio stream to WAV, and then encode that one.
If it's mpeg audio, I think you could "demux" in DGindex, and load the audio with MpaSource (external plugin) through the script.
When dealing with AC3 audio, you better let DGindex "decode", as the AC3source plugin has its little quirks (I don't even get it to work at all, for whatever reason. Well, it's MarcFD ...)
edit:
In that case of cutting & using the original AC3 stream directly, you ... better ask someone who works with all those neat tools that run only on systems with .NET installed, which I still refuse.
You *could* save the raw AC3 from DGindex, and then create & re-glue audio-pieces together by means of BeSweet and/or headAC3he ... but that's cumbersome. Cuttermaran or ProjectX should make that more easy, but I don't run either of them.
TMLewiss2
24th January 2005, 12:26
Cool thanks, hey I am all of the sudden haveing a problem where the videos I save in DGIndex, the colors are all off. Like Red is far to the left, Green Far to the right, Blue in the bottom. Weird... I am guessing it's a codec problem, I am going to reinstall the newest Divx, Xvid, and FFDShow
Update: it was the XviD codec.
Update: Was your post supposed to say audio.d2v, because I can only get DGIndex to demux/decode to mpa, and then I can't open mpa in avisynth.
Wilbert
24th January 2005, 13:01
because I can only get DGIndex to demux/decode to mpa, and then I can't open mpa in avisynth.
That means your mpeg2 file doesn't have AC3. IF you want to load your mpa audio file in AviSynth you should use MPASource (of course you can also convert it with Besweet instead).
TMLewiss2
25th January 2005, 02:22
Thats what I did, I was converting to ac3. Anyways, last question, does anyone know of a good player for ac3, is there even such a thing?
Cyberia
25th January 2005, 02:45
AC3Filter
TMLewiss2
25th January 2005, 02:47
I have AC3 Filter, but isn't that just the codec, I want a player so that I can hear the sound without dubing it into videos
Wilbert
25th January 2005, 09:56
I have AC3 Filter, but isn't that just the codec
It's a decoder. So, you can use it to play AC3 in WMP.
I want a player so that I can hear the sound without dubing it into videos
I don't think that's possible.
Didée
25th January 2005, 10:14
Playing the AC3 alone isn't a problem: if AC3filter is installed, then just drop it into any media player, and it'll play ...
Playing seperate elementary video & audio streams together as *if* they *were* muxed is not quite as easy, especially for synch'ing reasons. ZoomPlayer can do it :) (but seeking should be avoided, when doing so.)
TMLewiss2
25th January 2005, 10:53
Yeah you were right, I am dumb. Anyways, then I can't explain this. I have Test.avi and Test.ac3, I am muxing them togather in VirtualDub Mod (useing streams), but when I do there is no sound at all. On the other hand, If I play the ac3 in WinAmp, it sounds fine... anyone know whats going on?
TMLewiss2
26th January 2005, 11:48
please someone answer me!
Didée
26th January 2005, 12:01
What happens when you drop your muxed file in GraphEdit?
(If you don't have it, get it from e.g. from Doom9's download section.)
BTW, VirtualDub itself can *only mux* the streams. *Playback* with AC3 sound isn't possible in Vdub, only in DirectShow Players.
TMLewiss2
26th January 2005, 13:37
IM getting GraphEdit right now, Ill get back to you on that, I know that VDM can't play it, I am saveing the video with the stream muxed in, then playing it in WMP and no sound, but I know AC3 works fine in WMP because my other videos work that have AC3.
TMLewiss2
26th January 2005, 16:02
Update: when I drag the ac3 file into GraphEdit it says:
test.ac3 (output)-->(input) MPEG 1 Stream Splitter (audio)-->(xform in) MPEG Layer 3 Decoder (XForm Out)-->(Audio Input Pin Rendered) Default Direct Sound Device "there is a little clock symbol next to the word Device"
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.