PDA

View Full Version : AviSynth won't read d2v file created by DVD2AVIdg


numlock
14th March 2004, 00:56
I used DVD2AVIdg to convert PAL DVD to NTSC. Basically I did everything I used to do when I was using DVD2AVI.

I saved it to dvd.dv2 file. Now I wrote the following AVS script

AVS script:

LoadPlugin("d:\avisynth plugins\MPEG2DEC3dg.dll")
MPEG2Source("d:\DVD.d2v")

Problem is AviSDynth will absolutely not open it.

numlock
14th March 2004, 02:19
Basically AviSynth won't accept my .d2v file created by DVD2AVIdg.
When I use the older version od DVD2AVI and Mpeg2Dec then there is no problem.

Abond
14th March 2004, 16:40
How do you know it doesn't accept it?

numlock
14th March 2004, 16:52
The followng script will not open in TNPGEnc or in any other program.

LoadPlugin("d:\avisynth plugins\MPEG2DEC3dg.dll")
MPEG2Source("d:\DVD.d2v")

I discovered that if I choose save it as 1.76 and then use older MPEg2Dec dll then the followng script will open just fine

LoadPlugin("d:\avisynth plugins\MPEG2DEC.dll")
MPEG2Source("d:\DVD.d2v")

However according to the author it's not a good idea to mix DVD2AVIdg
with the older dll.

I'm suprised that nobody has reported this problem in this forum

Abond
14th March 2004, 17:45
Well, I think with this lack of information nobody will help you. If you really want to deal with it answer following questions please:
1. Did TMPG throw an error? If yes post the error..
2. Did you try to open the script with VDubMod? What error message you have from it? If you didn't try it is strongly recomended to try.
3. Which other programs you try to open the script? What errors you have, or their behavior - crash, dissapear, etc.
4. Which version of AviSynth do you have?
Edit:typo

RB
16th March 2004, 10:57
You need to addConvertToYUY2(Interlaced=True) at the end.

Abond
16th March 2004, 14:07
Originally posted by RB
You need to addConvertToYUY2(Interlaced=True) at the end.
Why this? I am using decodefix with TMPG without any problems and without any convertions. I think the man has an old Avisynth version (2.0) and therefore has errors. But he must post the info.

RB
16th March 2004, 14:50
Since numlock was referring to DVD2AVIdg I figured he must be using AVISynth 2.5 and Mpeg2Dec3dg. In this case the script he posted will output YV12 data which is not directly readable by any encoder I'm aware of, you need to convert to YUY2. The fact that it works on your system without the conversion tells me that you have some codec (ffvfw, XviD?) installed that decodes YV12 into RGB. In any event this is not optimal, my advice is to always add ConvertToYUY2().

Abond
16th March 2004, 16:08
Well, exactly decodefix (=DVD2AVIdg+Mpeg2Dec3dg) cause the errors he have. Therefore he hasn't Avisynth 2.5. With Mpeg2Dec (Avisynth 2.0) it works.
About the convertion, with older versions of TMPG I had to add ConverttoRGB24() at the end. With the newest it works without this line :confused:

numlock
16th March 2004, 16:54
OK, I just added the followiong to the script and now it works.

ConvertToYUY2(Interlaced=True)

Just FYI I was using the latest AViSynth 2.5.4 and DVD2AVIdg+Mpeg2Dec3dg

thanks for the help

Abond
16th March 2004, 16:59
Good that it works.
Anyway, thanks for the info:)

trbarry
4th April 2004, 15:37
The fact that it works on your system without the conversion tells me that you have some codec (ffvfw, XviD?) installed that decodes YV12 into RGB. In any event this is not optimal, my advice is to always add ConvertToYUY2().

Those encoders actually accept YV12 without conversion since they encode in 4:2:0 format anyway. When using VirtualDub(mod) in fast compress mode this means the data can be passed through much faster. And any color space conversions can introduce errors. Also, if you are deinterlacing there are slight speed and chroma accuracy advantages to working with the original YV12 format, before any conversions.

But it is true you will have to eventually convert to YUY2/RGB if your encoder requires it.

- Tom

YaoMing11
8th April 2004, 06:48
Am I able to add both parameters? converToYV12 AND ConvertToYUY2?