Log in

View Full Version : Aaaah! Help me before I pull out my hair!


lump1
26th May 2003, 19:33
I guess I have a basic problem with frameserving, and I've now spent several fruitless hours trying to fix it.

I've used DVD2AVI to make a .d2v file from 5 VOB's. That file got made correctly. It happily opens in Media Player Classic and plays perfectly.

I'm trying to encode it using VirtualDub, so I tried many different ways of making an .avs file that refers to the .d2v. Gordian Knot will auto-generate one, but VirtualDub refuses to open it. It's not a problem with VirtualDub, though. When I try opening the file in the Media Player, it reads that there is an error on line n, where n says:

AVISource("E:\DVD\video.d2v")

So here is how much I've learned from troubleshooting: My AviSynth appears to be installed correctly. When I play a script with only the line 'Version()' in MPC, the "video" it plays is:

AviSynth 2.51 Beta (avisynth.org) ...

Also, I noticed that when I try to call an ordinary .avi video with "AVISource" it plays fine. So, for example a script called test.avs with this line:

AVISource("E:\DVD\test1.avi")

will just play back the video test1.avi. But as soon as I try to call a .d2v file with the AVISource() line, it tells me there is an error on that line. Remember that this is a d2v which by itself plays just fine in Media Player Classic.

And I've even tried various other ways of generating .avs files just in case I was making some dumb mistake. But every single one of the generated .avs's had the line 'AVISource("E:\DVD\video.d2v")' which returned an error.

So does anyone have any idea what's broken?

I'm using XPsp1/AthlonXP.

TelemachusMH
27th May 2003, 00:07
The AviSource command can only be used on avi file, and other avs files. You are trying to frameserve a .d2v file. To do this you need to use the mpeg2dec command, or if you are wanting YV12 colorspace you need a special .dll file and you would use the mpeg2dec3 command. (Don't worry about YV12 colorspace if you don't understand what that is. It isn't crutial to know about though, but it will give you a little better results and it will be quicker then the other colorspaces.)

Good luck,
TelemachusMH

lump1
27th May 2003, 05:33
I have mpeg2dec3.dll in my DVD2AVI directory. You say that to frameseve the .d2v file I need to use the mpeg2dec command.

I've tried the obvious 'mpeg2dec("E:\DVD\video.d2v")' but that line retuns an error, and the media player reads:

"Script error: there is no function named 'mpeg2dec'" --

So it appears there is a bit more to it. I'd be happy if you could elaborate your answer and maybe give me some advice for what to try. It's strange that you can't frameserve a .d2v with the AVISource function, because that's what all the .avs autogenerators try to do. I think there is something else wrong with my system, but I just can't figure out what. Grr...

TelemachusMH
27th May 2003, 06:11
If the mpeg2dec3.dll is not in the AviSynth plugin folder you will have to tell AviSynth where it is with the LoadPlugin command. The default plugin folder is "C:\Program Files\AviSynth 2.5\plugins". Either put mpeg2dec(3).dll there, (which is what I think you should do) or load the plugin. Here's an example of how to load the plugin:
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mpeg2dec3.dll")
mpeg2dec3("c:\video\video.d2v")
I should also note that mpeg2dec3.dll gives you the mpeg2dec3 command (aka YV12 colorspace) and the mpeg2dec.dll gives you the mpeg2dec command. If you load only one (which you only want one) match the command to the .dll.

Also, what .avs autogenerators are you using? GordianKnot it probably the most famous, but it defaults to the mpeg2dec command for .d2v files. (This can be changed in the options though.)

RB
27th May 2003, 07:18
Originally posted by TelemachusMH
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mpeg2dec3.dll")
mpeg2dec3("c:\video\video.d2v")

Well, the command to load the D2V is mpeg2source in any case, no matter wether you are using mpeg2dec.dll or mpeg2dec3.dll.