Log in

View Full Version : video is stretched sideways when DVD>xvid with GK


_N_
8th October 2004, 01:57
I took a DVD with a VOB,
I need to convert it into xvid so it fits onto a CD.

I believe that this error is caused by croping the picture a bit (because it had black around it, I cropped it by 2 pixels around the edge in GK)

This is what the VOB looks like:
http://onlygod.orcon.net.nz/before.jpg

http://onlygod.orcon.net.nz/before.jpg

and this is what it looks like after,
http://onlygod.orcon.net.nz/after.jpg

http://onlygod.orcon.net.nz/after.jpg


The thing is, in GK, when I went to save and encode, and then you do a final preview before letting it encode, it looked ok,
so, does anyone know what this error is?

jggimi
8th October 2004, 04:06
I'm guessing that you've violated some cropping or resizing restriction, but that's just a wild guess. To get closer to the real problem:


:logfile: :logfile: :logfile: :logfile:

and don't forget your AviSynth script (.avs file):

:script:

_N_
8th October 2004, 05:24
oops,
I don't really understand much of the avs file,
but here it is:

#
# Created with Gordian Knot
#
# http://gknot.doom9.org
#
# PLUGINS
LoadPlugin("C:\PROGRA~1\GORDIA~1\mpeg2dec3.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\undot.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\decomb.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\KernelDeInt.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\dgbob.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\Convolution3d.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\FluxSmooth.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\TomsMoComp.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\VSFilter.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\SimpleResize.dll")
#
# SOURCE
mpeg2source("H:\FD\video\fd.d2v")
#
# TRIM
#trim(startframe,endframe)
#
# IVTC
#Telecide(order=1,guide=1).Decimate()
# or use
#IVTC(44,11,95)
#GreedyHMA(1,0,4,0,0,0,0,0)
#
# CROPPING
crop(8,0,708,572)
#
# DEINTERLACING (1)
FieldDeinterlace()
#FieldDeinterlace(blend=false)
#TomsMoComp(1,5,1)
#
# DEINTERLACING (2)
#KernelDeInt(order=1,sharp=true)
# or maybe
#DGBob(order=1,mode=0)
# DEINTERLACING (3) - special requests
#GreedyHMA(1,0,0,0,0,0,0,0)
#Telecide()
#SeparateFields()
#
#
# SUBTITLES
#VobSub("FileName")
#
# RESIZING
LanczosResize(708,522)
#
Undot()
#
# DENOISING: choose one combination (or none)
# 1) little noise
#Temporalsoften(2,3,3,mode=2,scenechange=6)
#mergechroma(blur(1.3))
#FluxSmooth(5,7)
#
# 2) medium noise
#Temporalsoften(3,5,5,mode=2,scenechange=10)
#Convolution3d("moviehq")
#FluxSmooth(7,7)
#
# 3) heavy noise
#Temporalsoften(4,8,8,mode=2,scenechange=10)
#Convolution3d("movielq")
#FluxSmooth(10,15)
#
# BORDERS
#AddBorders(left,top,right,bottom)
#
# COMPRESSIBILITY CHECK
# !!!!Snip Size now has to be 14 for use in GKnot!
#SelectRangeEvery(280,14)
#
# FOOL CCEnc
#empty = BlankClip()
#AudioDub(last,empty)

niamh
8th October 2004, 07:26
LanczosResize(708,522)
AS jggimi said. Try to resize by a multiple of 16 at least.(Both aren't!) (GK is 32x16 by default, for a very good reason). I should say it should look good then :)

jggimi
8th October 2004, 14:31
708 is Mod 4, and 522 is Mod 2. YV12 colorspace (used by DVDs and by GKnot) requires Mod 4.

But you'll get better compression if you go no lower than Mod 16, due to the way MPEG-4 macroblock technology works, and some video cards need Mod 32 width, which is why Gknot's defaults (32/16) are recommended.

_N_
8th October 2004, 21:11
ok, thanks, I didn't know that,