esojmc
17th May 2005, 03:18
I didn't know where alse to post this so I'm posting it here because I used AGK to compress the video. I used AGK to create a xvid avi file but I'm seeing a flash right after scene changes. It doesn't happen throughout the whole video. It starts about 34 minutes into the video and stops after a while. Source video is from my hacked DirecTivo that I fed into AGK.
Here is a sample (http://home.comcast.net/~martincjose/test1.avi)
Any ideas what could be causing it? Thanks.
Guest
17th May 2005, 06:04
Can you post the Avisynth script?
It reminds me of how combed scene changes might look with the map option of the deinterlacer enabled.
esojmc
17th May 2005, 12:26
Sure, here it is...
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\ColorMatrix.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrain.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\kerneldeint.dll")
movie = mpeg2source("C:\tmp\DTivo\agk_tmp\The Space Shuttle- Return to Flight.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 = 1.33333333333333
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
out_width = 480
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)
ColorMatrix("Rec.709->Rec.601",mmx=false,hints=false)
Guest
17th May 2005, 13:00
My guess is that KernelDeint() does not perform well on scene changes that occur between the fields of a frame. Try a different deinterlacer that interpolates the whole field in such cases, such as FieldDeinterlace(). Just include decomb.dll and then replace the KernelDeint() line with FieldDeinterlace(). Default parameters will be adequate for testing.
You might also try sharp=false with KernelDeint().
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.