Log in

View Full Version : Green screen during Preview of .avs in GK


mateo4x4
12th August 2004, 23:06
I have an AVI film. I write the following AvisynthScript:
AVISource("D:\film.avi")
After that I load this script to GK 0.32. When I pusch Save&Encode and Preview I see just green screen on my Windows Media Player Classic. I also tried to check it in a different way:
I wrote one script (named Script.avs on my drive D)
AVISource("D:\film.avi") and next simple script avisource("D:\Script.avs") I tried to open this second one using Windows Media and I saw the same green screen. I have noticed many people have this problem and nobody knows what is the reason.
Thank You for all advices.

jggimi
13th August 2004, 14:15
It's an unresolved AviSynth bug that has been reported.

AviSynth does not support nested scripts (an .avs script that opens an .avs script) with video in YV12 colorspace.

There is an easy circumvention. AddConvertToYUY2() to your first script. YUY2 will work with nested scripts.

mateo4x4
13th August 2004, 15:58
Thank You Jggimi for your answer ! I've just written such a script [with ConvertToYUY2()]and it works now. There is just one problem. When I want to use a Deen.dll filter I see a red-coloured annoucement after I start a Preview in Windows Media Player:
deen need YV12 input. So now I don't know if it is any solution to use this filter in such case.

niamh
14th August 2004, 14:20
Well you'd only need YUY2 to preview the avs, you don't need it to actually encode, it'll encode normally. As for previewing it with deen, it's a bit of a catch 22 :D. Tried previewing the avisource in vdubmod instead of GK? (GK chokes on avisource xvid :()

mateo4x4
14th August 2004, 15:43
I'm not sure if YUY2 is needed to preview only. I have already tried to encode without this "ConvertToYUY2()" line in my first script and after encoding I found no film - just this green screen and subtitles, like it was during the preview. I also tried previewing the avisource in my VDMod - the same problem: no "ConvertToYUY2()" in the script no preview (green).

niamh
14th August 2004, 16:15
I've got that from the YV12 FAQ, it seems it may apply to you :

originally posted by Wilbert:
13. I installed AviSynth v2.5 and DivX5 (or one of the latest Xvid builds of Koepi), all I got is a black screen when opening my avs in Virtualdub/VirtualdubMod/CCE/TMPGEnc ?


Ok, apperently your video is not decompressed by DivX 5.02 (or Xvid). Go to your windows-dir and rename a file called MSYUV.DLL, or add the following to your registry file:

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32]
"VIDC.YV12"="divx.dll"

Replace "divx.dll" by "xvid.dll" for xvid v0.9 or "xvidvfw.dll" for xvid v1.0.

edit: Other than that it's usually a non-mod4 crop problem, but you've no crop involved in your script...... (it's a problem with avisynth)

mateo4x4
14th August 2004, 16:36
don't hit me if it doesn't
:D :D
Thank You very much for Your posts Niamh.

I've got that from the YV12 FAQ, it seems it may apply to you
I shall be glad to try this.

mateo4x4
14th August 2004, 17:36
I've just changed my registry file and tried to open scripts without ConvertToYUY2() and there is no problem now, no green screen in preview. So, it works good :) It is just one change. I always had something like a preview window after loading my .avs or .d2v file to GK. Now there is just an empty window, so it's quite difficult to set a resolution and cropping. The only way is to make settings, push Save&Encode and then push Preview to see if the settings of resolution and cropping are satisfactory :confused:

niamh
14th August 2004, 18:57
Damn but you're a bundle of problems :D. Have you tried rebooting? I have no idea why it shouldn't show in GK, it does here ....
I've had a few avs showing blank before myself, again, no idea why, are you sure everything shows blank? tried reloading it?

mateo4x4
15th August 2004, 14:42
I tried rebooting and also loading many different scrips. Only avs with avisource show blank window after loading. D2v pojects do not show blank. But after changes in my registry the preview and encoding are ok.
Btw - I've noticed that people who have never had any problems with a preview (green or black screen) don't have VIDC.YV12 line in their scripts at all.