PDA

View Full Version : Avisynth with audio


hoozdapimp
3rd May 2006, 05:38
My source is an xvid @1280x720. I would like to cut out a few scenes from the video, but I am unsure how to do this with the audio. Originally I was going to just use VDubMod, but since it only lets me cut at I-Frames and parts that I want to cut are in betwen I-Frames, I don't think that's possible. How can I do this? Someone please help!

Example scripts and a mini step by step would be awesome.

Thanks in advance!
Scott

bugmenotwillyou
3rd May 2006, 05:45
AviSource/DirectShowSource("filename")
Trim(first frame, last frame)

hoozdapimp
3rd May 2006, 06:24
Yeah, that's what I had already, but how can I use this to get my final output? I was planning on using CCE, and that's all well for the video, but what about my audio (I don't want to have to re-encode the audio).

bugmenotwillyou
3rd May 2006, 07:01
Yeah, that's what I had already, but how can I use this to get my final output? I was planning on using CCE, and that's all well for the video, but what about my audio (I don't want to have to re-encode the audio).

Is it already muxed into a container with the video? If it is, what I posted is all you need. If not, what's the format? Oh and if you are using CCE you should add a ConvertToYUY2() at the end of the script.

hoozdapimp
3rd May 2006, 07:38
Yes, the audio (5.1 AC3) is muxed in the avi file....maybe I'm missing something...if I use that AVS in CCE, it outputs to an mpv file...do I just have a setting wrong in CCE? How do I get it to include my source audio in it's output?

foxyshadis
3rd May 2006, 08:41
I think the CCE forum could help you a lot more with that, you might start a thread there or ask a mod to move this one.

However, directly editing AC3 to match up with your avs edits might be a bit troublesome, given that you don't want to re-encode it all. (Understandable.) That's where audio forum could help, so the thread's getting pulled two ways. :p

hoozdapimp
4th May 2006, 00:03
I'm not quite sure this belongs in CCE...

But, my question is (I'm at work so I can't test), can I just load this AVS script into VDubMod and demux the ac3 from there (will it work right with the trim commands?)

hoozdapimp
13th May 2006, 01:39
I was successfully able to cut the ac3 stream at the frame level with mpg2schnitt