Log in

View Full Version : Can I use AlignedSplice and still extract audio correctly?


brett
10th January 2004, 08:08
This should be a fairly common situation, but searching didn't turn up anything.

I'm capturing some shows (and some old VHS stuff) and running them though DVD2SVCD. I would really like to be able to fill up a large drive capturing in huffy. The problem is that I need to do some cropping, take out commercials, etc, and I don't have the space to do a 100MB capture then copy the whole thing to a new file to edit.

So, simple enough, I can find the splice frames in VDub and use AlignedSplice to remove the commercials in my Avisynth script. I get what I want without having to have twice the disk space. My script looks like:


# CAPTURE IN 704x416 (704x480, cropped 30 top, 34 bottom)
AVISource("F:\capture.avi")
ConvertToYUY2(interlaced=true)
Trim(858,133451) #for trimming VHS
# AlignedSplice(Trim(1000,-500),Trim(2000,-500)) #for cutting commercials
SeparateFields()
clip = last.LanczosResize(352,208,0,0,704,208)
even = SelectEven(clip).Convolution3d(0, 32, 128, 16, 64, 10, 0)
odd = SelectOdd(clip).Convolution3d(0, 32, 128, 16, 64, 10, 0)
interleave(even,odd).weave()
AddBorders(0,32,0,32)


I can just take this script (minus the AVISource statement) and use it as my script on the Frameserver tab in DVD2SVCD. The problem is that I still have to point to the original AVI file on the
The problem Conversion tab. My video comes out great, but the audio is screwed up -- it doesn't get extracted right.

Any ideas?

p.s. Also, is there any benefit to LanczosResize when I'm just cutting the H res in half (from 704x480 to 352x480)?

Mac Sidewinder
16th January 2004, 07:02
I'm basically trying to do the same thing. An hour and a half cap using huffy yields a 50gb or so file and all I want to do is edit the commercials without having to resave the edited file. I've tried the crop command in the avs script with the same problem you have, the audio is not edited. I know the audio is extracted prior to video processing, but is there a way to include editing the audio.

Mac

brett
16th January 2004, 07:25
Yeah, I still never figured this one out.

I also ran into an additional problem, though. Even without editing, my audio was not being fully extracted. I would only get the first few minutes. To fix this problem, I had to load the capture up in VDub and do a direct stream copy to fix it.

So, even if I got DVD2SVCD working with AlignedSplice, it still probably wouldn't get all the audio, so I guess I'll just have to save room to make a full copy of my capture.

Mac Sidewinder
17th January 2004, 06:38
I don't mind the space used on the hd to resave it (i have 400gb available space), but I have having to wait and hour or so while vdub does a 60gb direct stream copy.

Mac

DDogg
19th January 2004, 03:25
At the bottom of this post (http://forum.doom9.org/showthread.php?s=&threadid=51096) I put some stuff about doing this with VDub and then how to frameserve it to dvd2svcd. I do it all the time and it works real well. The trick is to make absolutely sure makeavis, link2, VFAPI, etc use the wrap/include/raw audio option so that the audio is combined with the signpost in pure PCM.

Actually what I normally do is set my cut-points in VDub, save the processing settings (make sure you check "include selection and edit list" in the file save dialog). Then use this neat tool from bb (http://forum.doom9.org/showthread.php?s=&threadid=30587). It will make a script with all the cut points from VDub converted into trim statements (sometime you need to delete the very last trim statement from the script). So, just open this script in MakeAVIS, VFAPI or link2 and use the PCM audio option. A2S should take and process this file just as it it was a regular AVI. Let me know how it goes.

Mac Sidewinder
24th January 2004, 07:15
I can do it this way but another problem I have is that for some reason the audio that is captured is exactly (all the time) 150ms behind the video. This only occurs when I cap (from playback mode) from my sat receiver/recorder. If I cap from live tv (or sat receiver in live mode) I don't get the lag in audio. How would you handle this. What I have been doing is to adjust the interleaving in vdub and set it at -150ms then extracting the audio with the save wave command. Then I fileserve the video into cce with avisynth, finally converting the audio to ac3 and authoring the dvd with scenarist. I was really wanting to feed the whole thing into avi2dvd but you can't edit the delay on the audio and you also can't pick an alternate audio source (thought that I could feed it the corrected audio). Any suggestions?

Mac