Avisynth and VirtualDub

The old Video Software Help forum, left visible as an archive.
Leo21
Joined: Sun Dec 05, 2004 1:05 am
Org Profile

Post by Leo21 » Mon Aug 21, 2006 3:34 pm

Melanchthon wrote:
Leo21 wrote:I was thinking Lagarith >.< I have huffyuv but lagarith seemed nicer.
Try them both then. If neither of them give you smooth playback during editing then make mjpegs of the lossless clips and use the bait-and-switch method of editing. It's kind of fiddly, but it might be your only way of getting real-time previewing.
Lol it's not the preview in Vegas, but the preview in VirtualDub

I hope you guys understand this xD

User avatar
Willen
Now in Hi-Def!
Joined: Sun Jul 10, 2005 1:50 am
Status: Melancholy
Location: SOS-Dan HQ
Org Profile

Post by Willen » Tue Aug 22, 2006 6:51 am

Leo21 wrote:Lol it's not the preview in Vegas, but the preview in VirtualDub

I hope you guys understand this xD
I did, but by previewing, do you mean just playing it back in VirtualDub? Because even on my machine, depending on how complex the script is, VDM can crawl. Even sometimes scrubbing for the scenes I need to convert to lossless is laggy in VDM when I have all the filters enabled in my scripts.

For example, this script will not playback at real-time:

Code: Select all

mpeg2source("C:\AMV Project\Golden Boy Clips\Volume2.d2v", ipp=true, cpu=4)
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\TDeint\TDeint.dll")
TDeint(mode=0, order=1) #.BlendBob()
Deen("a3d",4)
WarpSharp()
FastLineDarken(strength=96, thinning=0)
Crop(4, 60, -12, -60) #episode 4, 6
#Crop(8, 60, -8, -60) #episode 5
LanczosResize(720, 480)
If you've watched Golden Boy, in episode 6 there is a segement where a timecode pops up that lasts for 2 seconds and 23 frames. To play that part back in VirtualDubMod with the above script takes approximately 10 seconds.

And forget about using mftoon() instead of Warpsharp() + FastLineDarken()...
Having trouble playing back videos? I recommend: Image

Leo21
Joined: Sun Dec 05, 2004 1:05 am
Org Profile

Post by Leo21 » Tue Aug 22, 2006 1:43 pm

Willen wrote:
Leo21 wrote:Lol it's not the preview in Vegas, but the preview in VirtualDub

I hope you guys understand this xD
I did, but by previewing, do you mean just playing it back in VirtualDub? Because even on my machine, depending on how complex the script is, VDM can crawl. Even sometimes scrubbing for the scenes I need to convert to lossless is laggy in VDM when I have all the filters enabled in my scripts.

For example, this script will not playback at real-time:

Code: Select all

mpeg2source("C:\AMV Project\Golden Boy Clips\Volume2.d2v", ipp=true, cpu=4)
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\TDeint\TDeint.dll")
TDeint(mode=0, order=1) #.BlendBob()
Deen("a3d",4)
WarpSharp()
FastLineDarken(strength=96, thinning=0)
Crop(4, 60, -12, -60) #episode 4, 6
#Crop(8, 60, -8, -60) #episode 5
LanczosResize(720, 480)
If you've watched Golden Boy, in episode 6 there is a segement where a timecode pops up that lasts for 2 seconds and 23 frames. To play that part back in VirtualDubMod with the above script takes approximately 10 seconds.

And forget about using mftoon() instead of Warpsharp() + FastLineDarken()...
Your script is so complext xD
mines basically load, resize aspect ratio, crop and done >_<

Leo21
Joined: Sun Dec 05, 2004 1:05 am
Org Profile

Post by Leo21 » Tue Aug 22, 2006 5:16 pm

Oh Lord...

Well I got it encoded to Huffyuv, but when looking at it in VLC its pretty slow. I think it's because of the considerable space it takes up...

I'm desperate >_< and seriosuly about to go on a huge hiatus if I don't get this to work >.<

User avatar
Melanchthon
Joined: Thu Sep 02, 2004 11:12 am
Org Profile

Post by Melanchthon » Tue Aug 22, 2006 8:01 pm

Leo21 wrote:Well I got it encoded to Huffyuv, but when looking at it in VLC its pretty slow. I think it's because of the considerable space it takes up...

I'm desperate >_< and seriosuly about to go on a huge hiatus if I don't get this to work >.<
It's not the space the file takes up, but the work the computer has to do in order to decode each frame. For instance, on my system, uncompressed RGB (~20MB/s) takes about half as much CPU power to decode as Lagarith (~3MB/s). You have a couple of options here.

1. Use uncompressed RGB. You'll need a lot of space for the resulting files.

2. Use the Huffyuvs and put up with the lag, exporting to a codec you can play in real-time when you want to preview anything.

3. Reduce the resolution of the Huffyuvs until they play back smoothly.

4. Encode the Huffyuvs to mjpeg and edit with those (link if you don't have the codec). The free version puts a watermark on the file, but that shouldn't be a problem.

The least stressful way (imo) of using bait-and-switch is to have the Huffyuvs and the mjpegs identically named but in different folders. That way, all you have to do is swap two folder names instead of pointing Vegas at the new files one by one.

Don't give up. You've done all the difficult parts.

Leo21
Joined: Sun Dec 05, 2004 1:05 am
Org Profile

Post by Leo21 » Wed Aug 23, 2006 12:06 am

[quote="Melanchthon"][quote="Leo21"]Well I got it encoded to Huffyuv, but when looking at it in VLC its pretty slow. I think it's because of the considerable space it takes up...

I'm desperate >_</quote>.<.

Lol I won't give.

Locked

Return to “Video Software Help Archive”