View Full Version : 1.85b: Good preview, but green xvid output
ohhowhappy
10th January 2005, 15:21
Greetings.
I'm using AGK 1.85b to make an avi of an mpg I've capped via an Hauppauge pvr-250. The preview looks great, but encoding leads to a solid green screen. I found a couple of threads addressing this problem in some form, but the most recent was 5 months ago and dealt with green previews, so I'm not confident it would be a good guide. Here's my avs:
LoadPlugin("D:\PROGRA~1\AUTOGK~1.6\DGMPGDec\DGDecode.dll")
LoadPlugin("D:\PROGRA~1\AUTOGK~1.6\filters\autocrop.dll")
LoadPlugin("D:\PROGRA~1\AUTOGK~1.6\filters\decomb.dll")
LoadPlugin("D:\PROGRA~1\AUTOGK~1.6\filters\RemoveGrain.dll")
movie = mpeg2source("O:\Hauppauge copies\agk_tmp\C Glover.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 0.888888888888889
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
input_par = input_par > 1.4 ? input_par : (4.0/3.0)
out_width = 640
out_height = round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
Telecide(movie,order=1,guide=1,post=2).Decimate(mode=1,threshold=1.63)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
Thanks for your assistance.
len0x
11th January 2005, 12:08
You can try using IVTC ot DEINT hidden options (if your source is not that hybrid which is difficult to say without seeing the logs!)
ohhowhappy
12th January 2005, 01:43
Thanks for responding.
I'm now using the latest beta (in what started as the Auto GK 1.6 folder). I tried encoding a cut from the movie the four possible ways with the two options you suggested (without either option selected, etc) and ended up with good preview, green output in each. Here is the log file with no options chosen:
[1/11/2005 7:31:46 PM] AutoGK 1.86b
[1/11/2005 7:31:46 PM] OS: Win2000 (5.0.2195).2
[1/11/2005 7:31:46 PM] Job started.
[1/11/2005 7:31:46 PM] Input file: ceremonie cut.mpg
[1/11/2005 7:31:46 PM] Output file: O:\Hauppauge copies\ceremonie cut.avi
[1/11/2005 7:31:46 PM] Audio: Audio Stream 0
[1/11/2005 7:31:46 PM] Subtitles: none
[1/11/2005 7:31:46 PM] Codec: XviD
[1/11/2005 7:31:46 PM] Target quality: 75%
[1/11/2005 7:31:46 PM] Started encoding.
[1/11/2005 7:31:46 PM] Demuxing and indexing.
[1/11/2005 7:31:46 PM] Processing file: O:\Hauppauge copies\ceremonie cut.mpg
[1/11/2005 7:31:46 PM] Source aspect ratio: 4:3
[1/11/2005 7:31:46 PM] Source resolution: 720x480
[1/11/2005 7:31:46 PM] Found NTSC source.
[1/11/2005 7:31:46 PM] Analyzing source.
[1/11/2005 7:31:56 PM] Source has percentage of interlacing in motion areas: 77.20
[1/11/2005 7:31:56 PM] Source has percentage of telecined patterns: 2.50
[1/11/2005 7:31:56 PM] Source has percentage of progressive patterns: 5.00
[1/11/2005 7:31:56 PM] Source has percentage of interlaced patterns: 92.50
[1/11/2005 7:31:56 PM] Source is considered to be interlaced.
[1/11/2005 7:31:56 PM] Found 851 frames
[1/11/2005 7:31:56 PM] Encoding audio.
[1/11/2005 7:31:59 PM] Running single pass encoding.
[1/11/2005 7:31:59 PM] Writing the following script to O:\Hauppauge copies\agk_tmp\ceremonie cut_movie.avs
===========================================================
LoadPlugin("D:\PROGRA~1\AUTOGK~1.6\DGMPGDec\DGDecode.dll")
LoadPlugin("D:\PROGRA~1\AUTOGK~1.6\filters\autocrop.dll")
LoadPlugin("D:\PROGRA~1\AUTOGK~1.6\filters\RemoveGrain.dll")
LoadPlugin("D:\PROGRA~1\AUTOGK~1.6\filters\kerneldeint.dll")
movie = mpeg2source("O:\Hauppauge copies\agk_tmp\ceremonie cut.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 0.888888888888889
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
input_par = input_par > 1.4 ? input_par : (4.0/3.0)
out_width = 720
out_height = round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
KernelDeInt(movie,order=1,sharp=true)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
===========================================================
[1/11/2005 7:33:00 PM] Duration was: 1 minute, 0 seconds
[1/11/2005 7:33:00 PM] Speed was: 14.06 fps.
[1/11/2005 7:33:00 PM] Job finished. Total time: 1 minute, 14 seconds
len0x
12th January 2005, 11:50
Can you make a small sample of this file available for us to download?
ohhowhappy
12th January 2005, 14:05
Glad to. File (http://s91827476.onlinehome.us/ceremoniecut.mpg) It's under one meg, but has the good preview/green output problem.
len0x
12th January 2005, 14:12
I don't have any problems encoding it. What do you use for playback?
Can you open resuting AVI in vdubmod OK?
ohhowhappy
12th January 2005, 16:23
Thank you for testing.
VirtualDubMod plays the avi, though it complains about the audio bitrate.
I set up AutoGK on my laptop and there the avi output plays ok for me, too, using Windows Media Player Classic. The laptop runs xp, the desktop I use for video work runs Win 2K. Could another codec be the culprit?
Comparing the two codec sets, the only differences are that the desktop has
MS-MPEG-4 MPEG-4 Video Codec
VFAPI Reader Codec v1.05
the laptop has neither.
Could the MSMPEG-4 be the problem? When I go to remove it, Win2k tells me it's required by the system.
len0x
12th January 2005, 16:58
Get GSpot and try render the file there - its will tell you the difference (your PCs are using different decoders clearly).
ohhowhappy
12th January 2005, 19:23
Gspot, what a great tool!
But the results are not clear. On my laptop and desktop the Video path seems to be the same
(S) --> AVI Splitter --> ffdshow MPEG-4 Video Decoder --> (R)
4CC:Xvid in both
The laptop shows these codecs to be capable, including
xvid, ffdshow, divx decoder, Intervideo mpeg4 decoder
The desktop shows the same, minus Intervideo.
Hmmm. But looking at all of the vid codecs, there may be something interesting. The desktop has one for the MP43 format named "Microcrap MPEG-4 Video Decompressor," Mpg4ds32.ax. That might be from a codec pack I used before I knew better. Could that be the culprit, even though it's not showing up in the render flow?
len0x
12th January 2005, 19:27
Did you parse it via DShow? (second set of button <1> <2> with MS above them)
Anyway - make sure ffdshow versions are the same. Or try native XviD decoder (reinstall it).
ohhowhappy
12th January 2005, 20:07
Sorry, I'm not very experienced at this, and I don't know how to parse with Dshow.
The ffdshow versions appear to be the same. It's interesting that when I look at the details for ffdshow via Gspot, there are 16 additional media types that ffdshow is registered for, while Xvid only has 7. I suspect that is why ffdshow grabs the file instead of the Xvid decoder. I've installed the xvid codec very recently. Should I uninstall ffdshow in order to see if xvid will become the decoder?
len0x
12th January 2005, 20:16
I meant via DShow in GSpot. If you're using GSpot 2.52 then you have two modes of rendereing "Gspot"(internal) and "MS"(DShow).
Anyway - yes, you can try uninstalling ffdshow.
ohhowhappy
12th January 2005, 21:28
I found the Gspot beta, excellent. Removing ffdshow now allows the avi to play properly on the desktop. Gspot now shows the Intervideo decoder to be involved ---> overlay mixer2 ---> Video Renderer. Is there a way to move the xvid codec to the top of the pile?
Well, sorry for taking up your time sorting through my pile of codecs! Thank you for your help!
len0x
12th January 2005, 22:11
just reinstall XviD...
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.