Avisynth and VirtualDub

The old Video Software Help forum, left visible as an archive.

Avisynth and VirtualDub

Postby Leo21 » Fri Aug 18, 2006 9:48 pm

I got all these DVD rips right, but when I try to use VD with Lagarith, or VD at all it doesn't let me. AS in, it doesn't let me open the video. It shoudl be an avi file and it's an mpeg3 audio.

Further, the error said the following:

"Couldn't locate decompressor for format wmv3 (unknown)

Virtual dub requires a VFW codec to decompress videos. DirectShow Codecs, are not suitable."

BTW. I can watch the video through VLC, Winamp, Media player, etc.

What's wrong? How can I fix it? I need the Hack Sign clips badly >.<

I'm using Sony Vegas by the way >.<
Leo21
 
Joined: 05 Dec 2004

Postby Kariudo » Fri Aug 18, 2006 11:12 pm

post your script please.

are you using avisource, directShowSource or ssomething else.
IIRC, avisource has a tendency to mess things up and in such cases directShowSource is reccomended.

...never heard of .wmv3 files (probably the same as/related to .wmv), but in any case they are not avi files if they don't end in .avi (which might explain why you can't open the avs script in vdub).

could you also list codecs/codec packs that you have?
ImageImage
Image
User avatar
Kariudo
Twilight prince
 
Joined: 15 Jul 2005
Location: Los taquitos unidos
Status: 1924 bots banned and counting!

Postby Leo21 » Sat Aug 19, 2006 12:51 am

Kariudo wrote:post your script please.

are you using avisource, directShowSource or ssomething else.
IIRC, avisource has a tendency to mess things up and in such cases directShowSource is reccomended.

...never heard of .wmv3 files (probably the same as/related to .wmv), but in any case they are not avi files if they don't end in .avi (which might explain why you can't open the avs script in vdub).

could you also list codecs/codec packs that you have?

Nah I'm sure it's avi, I got it off a torrent and it said avi >_<
Leo21
 
Joined: 05 Dec 2004

Postby Willen » Sat Aug 19, 2006 4:06 am

Leo21 wrote:Nah I'm sure it's avi, I got it off a torrent and it said avi >_<


Ah, the evil WMV3 video in an AVI container.

Using AviSynth with DirectShowSource("yourvideo.avi") should work.

Another option, HIGHLY RECOMMENDED, is to get the DVDs and use those instead. It will be better quality and you avoid this whole "cannot locate a decompressor... WMV3" thing.
Having trouble playing back videos? I recommend: Image
User avatar
Willen
Now in Hi-Def!
 
Joined: 10 Jul 2005
Location: SOS-Dan HQ
Status: Melancholy

Postby Leo21 » Sat Aug 19, 2006 1:19 pm

Willen wrote:
Leo21 wrote:Nah I'm sure it's avi, I got it off a torrent and it said avi >_<


Ah, the evil WMV3 video in an AVI container.

Using AviSynth with DirectShowSource("yourvideo.avi") should work.

Another option, HIGHLY RECOMMENDED, is to get the DVDs and use those instead. It will be better quality and you avoid this whole "cannot locate a decompressor... WMV3" thing.

Lol actually I got it to work with a codec.

Yet to face another problem:

(if it is one)

I was scrypting something in AVIsynth so that the aspect ratio would be 4:3 instead of 16:9. It worked but while previewing the file, it's extremely slow. Is this normal? I need to convert it to a lossless soon 'cause i feel I'm stuck in a rut @_@
Leo21
 
Joined: 05 Dec 2004

Postby Willen » Sun Aug 20, 2006 1:53 am

Leo21 wrote:Yet to face another problem:

(if it is one)

I was scrypting something in AVIsynth so that the aspect ratio would be 4:3 instead of 16:9. It worked but while previewing the file, it's extremely slow. Is this normal? I need to convert it to a lossless soon 'cause i feel I'm stuck in a rut @_@

Depending on your system specs, it may be normal. My main computer (A64 X2 3800+, 2GB RAM) will run previewed AviSynth files in VitrualDubMod pretty slow if there is a bunch of cropping and resizing going on, unless the resize is to something very low resolution.
Having trouble playing back videos? I recommend: Image
User avatar
Willen
Now in Hi-Def!
 
Joined: 10 Jul 2005
Location: SOS-Dan HQ
Status: Melancholy

Postby Leo21 » Sun Aug 20, 2006 10:09 pm

Willen wrote:
Leo21 wrote:Yet to face another problem:

(if it is one)

I was scrypting something in AVIsynth so that the aspect ratio would be 4:3 instead of 16:9. It worked but while previewing the file, it's extremely slow. Is this normal? I need to convert it to a lossless soon 'cause i feel I'm stuck in a rut @_@

Depending on your system specs, it may be normal. My main computer (A64 X2 3800+, 2GB RAM) will run previewed AviSynth files in VitrualDubMod pretty slow if there is a bunch of cropping and resizing going on, unless the resize is to something very low resolution.

Erm, my specs are some thing like,

1.3 GH, 256 MB Ram, and Pentium 4 >_> 2 year old hard drive, 6 year old computer. Windows XP >_>
Leo21
 
Joined: 05 Dec 2004

Postby Willen » Sun Aug 20, 2006 11:31 pm

Leo21 wrote:Erm, my specs are some thing like,

1.3 GH, 256 MB Ram, and Pentium 4 >_> 2 year old hard drive, 6 year old computer. Windows XP >_>

Ouch.

I seriously recommend making lossless clips (Huffyuv AVI). You will need some patience to make the clips, but the editing should be much smoother and faster.

More RAM would help too.
Having trouble playing back videos? I recommend: Image
User avatar
Willen
Now in Hi-Def!
 
Joined: 10 Jul 2005
Location: SOS-Dan HQ
Status: Melancholy

Postby Leo21 » Mon Aug 21, 2006 11:54 am

Willen wrote:
Leo21 wrote:Erm, my specs are some thing like,

1.3 GH, 256 MB Ram, and Pentium 4 >_> 2 year old hard drive, 6 year old computer. Windows XP >_>

Ouch.

I seriously recommend making lossless clips (Huffyuv AVI). You will need some patience to make the clips, but the editing should be much smoother and faster.

More RAM would help too.

I was thinking Lagarith >.< I have huffyuv but lagarith seemed nicer.
Leo21
 
Joined: 05 Dec 2004

Postby Melanchthon » Mon Aug 21, 2006 2:56 pm

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.
User avatar
Melanchthon
 
Joined: 02 Sep 2004

Postby 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
Leo21
 
Joined: 05 Dec 2004

Postby 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
User avatar
Willen
Now in Hi-Def!
 
Joined: 10 Jul 2005
Location: SOS-Dan HQ
Status: Melancholy

Postby 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: 05 Dec 2004

Postby 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 >.<
Leo21
 
Joined: 05 Dec 2004

Postby 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.
User avatar
Melanchthon
 
Joined: 02 Sep 2004

Next

Return to Video Software Help Archive

Who is online

Users browsing this forum: No registered users and 0 guests