PDA

View Full Version : .d2v turns out green


J666RST
13th November 2003, 19:20
Hello!

not sure if this is an avisynth, dvd2avi or VirtualDubMod problem but here goes!

Ive been ripping PAL dvds for ages now but not using dvd2avi or avisynth, i normally load the vob with VirtualDubMod 1.5.4.1 build 2092 and use the filters from that.

Now ive got a NTSC dvd i wanna convert but im having some problems, ive been reading up the forums because i had no idea how to use dvd2avi or avisynth

i load the vobs into dvd2avi 1.76 keep the standard settings and save project, this is what i get:

DVD2AVIProjectFile
4
37 D:\x\VIDEO_TS\VTS_01_1.VOB
37 D:\x\VIDEO_TS\VTS_01_2.VOB
37 D:\x\VIDEO_TS\VTS_01_3.VOB
37 D:\x\VIDEO_TS\VTS_01_4.VOB

Stream_Type=1,0,0
iDCT_Algorithm=2
YUVRGB_Scale=0
Luminance=128,0
Picture_Size=0,0,0,0,0,0
Field_Operation=0
Frame_Rate=29970
Location=0,0,3,5F2D5

7 0 0 2 2 2 2 2 2 2 2 2 2 2 2 2 2
7 0 46 2 2 3 0 1 2 3 0 1 2 3 0
7 0 EF 1 2 3 0 1 2 3 0 1 2 3 0
7 0 1A6 1 2 3 0 1 2 3 0 1 2 3 0 etc....

so now i try and load the d2v in VirtualDubMod via avisynth with this script:

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEG2Dec3.dll")
mpeg2source("D:\x\VIDEO_TS\film.d2v")

heres where it goes wrong, instead of seeing the movie i see a green screen in VirtualDubMod.

the only way i can see the movie is if i add this to the script:

YV12toRGB24()
FlipVertical()

the problem is i then cant use Decomb Plugin :(

anyone got any ideas where im going wrong??

thanks in advanced

cheeRS :)

Asmodian
13th November 2003, 22:41
I first though this was a resolution problem but after thinking a bit more it looks like you are using 720x480 which should work (res needs to be mod 4 for yv12). Do you have xvid,divx, or any other vfw yv12 to RGB codec installed? Virtualdub needs one of these to display yv12 video (because displaying is always in RGB, modern video cards do the coversion in hardware but VDM doesn't use that interface). Does the script work in a direct show video player (mplayer, mplayerc, zoom player, etc...)?

As a side note you can gain speed and quality by only using filters in avisynth, keeping the yv12 color space, and doing fast recompress in virtualdubmod (as this aviods unnessary color space conversions).

J666RST
14th November 2003, 01:25
thanks for your input Asmodian, ive found the problem!

i have to drag and drop the avs file into VirtualDubMod rather than file > open video file via avisynth
simple as that!

As a side note you can gain speed and quality by only using filters in avisynth, keeping the yv12 color space, and doing fast recompress in virtualdubmod (as this aviods unnessary color space conversions).

thanks for the advice, my friend also said the same, think i`ll try and lern avisynth a bit more!

thanks again Asmodian

cheeRS :)

Asmodian
14th November 2003, 02:31
Actually the open video file via avisynth option is for opening a normal video file (or a d2v, anything avisynth can open) with avisynth using one of the default scripts from the pull down menu below the file name in the open via avisynth "browse for file" box (you can find and edit these scripts in the virtualdubmod\templates directory). Drag and drop is just like the normal "open" from the file menu.

Just so you know the avs is pretending to be an avi to any program that opens it, so anything that can play an avi should be able to play an avs (there are, of course, exceptions).

I hope you investigate avisynth further, it is much more powerful then vdm alone (and it doesn’t require vdm at all, I use it with the command line real producer with great success).:)

jggimi
14th November 2003, 15:59
Gordian Knot is a popular DivX/XviD encoding suite among forum members. It uses DVD2AVI / AviSynth / VdubMod for encoding, which is what you're doing manually, and automates the script generation, encoding, and many other processes. It's how a lot of people learn to use both AviSynth and Vdub variants. It has a lot of flexibilty -- many people use it just for script generation before manual encoding -- and because of that, it can sometimes be intimidating to new encoders. But someone who's been doing it manually should have no trouble at all. (For the "one click" crowd, Len0x recently created a "lite" version currently called GordianKnotDoItFast4U which is being discussed in the GK development forum.)