Log in

View Full Version : Almost There - Need to make .avs file


lbeck
27th October 2004, 21:41
I'm using DGMPGDec. I'm at the point (cut and pasted from the instructions):

But you can't just execute DGDecode directly! It has to be done through Avisynth. We'll make a script file called myvob.avs using a text editor. Later in this document I'll show you how to configure DGIndex to make the script automatically, but for now, you need to know the old-fashioned way. So put this text into a new text file you make called 'myvob.avs':

loadplugin("...\DGDecode.dll")
mpeg2source("myvob.d2v")

Replace the path '...' in the first line with the path to the location where you placed DGDecode.dll
Can you tell me exactly what is going on?

loadplugin("...\DGDecode.dll")
mpeg2source("myvob.d2v")

Look like lines of code or something. Do I execute these in a DOS window or what?

Wilbert
27th October 2004, 22:40
1) Install AviSynth. (Perhaps this is already installed. It is if you are using GKnot or DVD2SVCD.)

2) You should put those lines in a text-file (with notepad for example), and save it as myvob.avs.

lbeck
28th October 2004, 13:39
Wilbert

Thanks for the response.

I know I must appear dense at the moment, but having never done this before, I'm having trouble conceptualizing it. I can easily do verbatum what you say. The instructions say to make a 2-line text file that says:

loadplugin("...\DGDecode.dll")
mpeg2source("myvob.d2v")

First question - Do I use any of the parenthesis or quotes? I assumed neither and developed a 2-line text file that reads (cut and pasted, so it reads exactly):

loadplugin D:\LLB Folder\DGMPGDec\DGDecode.dll
mpeg2source PetersonVOB.d2v

and saved it as PetersonVOB.avs

SEcond question - What do I do with these 2 lines? following the instructions explicitly, I would place the 2-line text file, saved as PetersonVOB.avs in the folder DGMPGDec which is where DGDecode.dll resides.

When I open VirtualDub, go to File/Open and double-click on PetersonVOB.avs, VirtualDub returns the following error:

http://beckda46.freeservers.com/llbpages/Computer Stuff/virdub_error.jpg

I'm probably making a minor error in one of the steps, but until I get it right once, I don't know where. The actual VOB file (>900 MB) is named "VTS_01_2.VOB", which was the default name given to it by my editing program (I think). Should I rename this to PetersonVOB.VOB?

Can you help? Keep in mind that the explaination that I'm needing should be very explicit since I've never done this before.

Thanks

Wilbert
28th October 2004, 16:18
loadplugin D:\LLB Folder\DGMPGDec\DGDecode.dll
mpeg2source PetersonVOB.d2v
You should put the quotes, () and correct paths in it. Thus something like
loadplugin("D:\LLB Folder\DGMPGDec\DGDecode.dll")
mpeg2source("C:\PetersonVOB.d2v")

If you open the avs in VDub you should see the clip (provided you installed a YV12 codec like XviD/DivX).

Should I rename this to PetersonVOB.VOB?
Nope.

lbeck
28th October 2004, 17:42
Wilbert,

I think I'm getting closer. I made the suggested modificaions. My AVS file now reads:

loadplugin ("D:\LLB Folder\DGMPGDec\DGDecode.dll")
mpeg2source ("PetersonVOB.d2v")

I also tried adding the full path, as:

loadplugin ("D:\LLB Folder\DGMPGDec\DGDecode.dll")
mpeg2source ("D:\LLB Folder\PetersonVOB.d2v")

In each case, I now get the error:

http://beckda46.freeservers.com/llbpages/Computer Stuff/virdub_error-1.jpg

How I Generated the VOB

First, I copied the VOB file to my HDD using drag/drop from the DVD-RW where it resides. Then I used DGindex.exe from DGMPGDec to make the D2V file, named it PetersonVOB.d2v, and kept it in the folder titled "D:\LLB Folder."

Do I need to use a different codec or use a different VOB file?

Note that my machine uses PowerDVD to read the VOB file. Does this make a difference?

http://beckda46.freeservers.com/llbpages/Computer Stuff/Explorer_view.jpg

Thanks for holding my hand through all this. As I said, once I do it once I think I'll be okay.

Cyberia
28th October 2004, 18:54
You're getting closer. What version of VirtualDub are you using?

Also, take out the spaces after loadplugin, mpeg2source.

loadplugin ("D:\LLB Folder\DGMPGDec\DGDecode.dll")
mpeg2source ("PetersonVOB.d2v")

becomes...

loadplugin("D:\LLB Folder\DGMPGDec\DGDecode.dll")
mpeg2source("PetersonVOB.d2v")


When you created the d2v project, could you see the movie in the display window? Normally, drag-and-drop does not work for vob files.

lbeck
28th October 2004, 19:51
What version of VirtualDub are you using?VirtualDub 1.5.10

Also, I cut/pasted your file and saved it as my PetersonVOB.avs.

I don't remember if I saw the movie in the display window. Also, I'm not really sure if I dragged and dropped it or if I opened it using the menu. However, if I click on the VOB file in the "LLB /folder" it does open the default PowerDVD program and plays.

Unless you (or someone else) sees something obvious or has some additional advice, I'm thinking that my best course at this point may be to 1.) start from scratch using a different VOB file 2.) using what I've learned from this thread.

I've made so many changes, cuts and pastes, that I may have unknowingly introduced an error somewhere. Sometimes using a fresh file and a fresh brain helps.

Wilbert
28th October 2004, 21:10
You need to install a YV12 codec like XviD. See YV12 faq - Q13 (AviSynth forum) for more details.

If you installed XviD/DivX and you still got that YV12 decompressor message, you need to do that registry tweak (as in Q13).