View Full Version : Dealing with Episode That has Interlaced Credits
Staz
15th October 2005, 02:23
Hey there
I am backing up one of my TV episode DVD's to XviD and when previewing the episode inside Gordian I notice that only the credits are interlaced and everything else is just fine.
How do I encode a show so that I ONLY deinterlace the credits and nothing else?
Thanks very Much :D
manono
15th October 2005, 09:01
Encode them separately and join them to the episode when both are done? Make sure they both have the same framerate and resolution.
Depending on the deinterlacer used, you can have it kick in only when interlacing is present:
FieldDeinterlace(Full=False)
or:
TDeint(Full=False)
Staz
15th October 2005, 11:35
|hanks a million manono!! How accurate is the full=false ? It wont have a negative effect on the majority of video? (the progressive part) I have also heard of an avs filter called "applyrange". Could this somehow be used in conjunction with one of the deinterlacing filters so that only a small range of frames are deinterlaced?? Thanks again!
manono
15th October 2005, 13:46
Yes, actually ApplyRange would be the way to go, but I didn't mention it as it's a bit tricky to set up. You have to list all the arguments, and I've only had success using it with easy-to-set-up filters. But maybe that's just me.
As for whether or not the deinterlacer chosen might deinterlace frames you don't want it to, yes, that's always a possibility with FieldDeinterlace. You'd have to tweak it carefully before encoding. Plus, it'll slow down the encoding for the vast majority of the movie that's already film. Also, did you ForceFilm it? So the credits are going to play jerky whatever you do? So maybe you don't care about that. Wait, I just thought of another way, which will work similarly to ApplyRange. Say you want to use the deinterlacer from frame 100000 until the end:
A=Trim(0,99999)
B=Trim(100000,0).FieldDeinterlace()
A+B
Staz
18th October 2005, 04:54
Thanks Manono!
I tried your trim idea as follows:
# Created with Gordian Knot
#
# http://gknot.doom9.org
# PLUGINS
LoadPlugin("E:\PROGRA~1\GORDIA~1\DGMPGDec\DGDecode.dll")
#LoadPlugin("E:\PROGRA~1\GORDIA~1\AviSynthPlugins\decomb.dll")
#LoadPlugin("E:\PROGRA~1\GORDIA~1\AviSynthPlugins\KernelDeInt.dll")
LoadPlugin("E:\PROGRA~1\GORDIA~1\AviSynthPlugins\UnDot.dll")
#LoadPlugin("E:\PROGRA~1\GORDIA~1\AviSynthPlugins\dgbob.dll")
#LoadPlugin("E:\PROGRA~1\GORDIA~1\AviSynthPlugins\Convolution3d.dll")
#LoadPlugin("E:\PROGRA~1\GORDIA~1\AviSynthPlugins\FluxSmooth.dll")
LoadPlugin("E:\PROGRA~1\GORDIA~1\AviSynthPlugins\TomsMoComp.dll")
#LoadPlugin("E:\PROGRA~1\GORDIA~1\AviSynthPlugins\VSFilter.dll")
#LoadPlugin("E:\PROGRA~1\GORDIA~1\AviSynthPlugins\SimpleResize.dll")
# SOURCE
mpeg2source("E:\DVD\Projects\BroTown_VTS_01_PGC2\BroTown.d2v")
A=Trim(0,31879)
B=Trim(31880,0).TomsMoComp(1,5,1)
A+B
# 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)
# 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()
# CROPPING
crop(0,0,718,572)
# SUBTITLES
#VobSub("FileName")
# RESIZING
LanczosResize(576,432)
# DENOISING: choose one combination (or none)
Undot()
# 1) little noise
#Temporalsoften(2,3,3,mode=2,scenechange=6)
#mergechroma(blur(1.3))
#FluxSmoothST(5,7)
# 2) medium noise
#Temporalsoften(3,5,5,mode=2,scenechange=10)
#Convolution3d("moviehq")
#FluxSmoothST(7,7)
# 3) heavy noise
#Temporalsoften(4,8,8,mode=2,scenechange=10)
#Convolution3d("movielq")
#FluxSmoothST(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)
When previewing it things looked just great (credits were deinterlaced)
However when I encoded it. The first pass appears to go fine, but then the 2nd pass kicks in and it stays at a really low average bitrate of only 300. In the end I got a much smaller size than I was aiming for (175 megs).
Any ideas what went wrong? :D
Thanks heaps.
manono
18th October 2005, 08:04
Hi-
No, no idea, except that it appears to be a different issue than you deinterlacing the end credits. Did you perhaps set up the Zones for giving the end credits a higher quantizer or lower weight, but give the whole movie a lower quality by mistake? You can find the Zones in the main XviD Configuration window, the one where you write in the desired file size or bitrate (which may also be filled in wrongly).
Staz
19th October 2005, 19:28
After reverting back to default XviD settings my encodes are working again.
The resulting filesize and bitrate is fine and the files are getting deinterlaced perfectly! :D
One problem though although I set the resolution at 576 x 432 , when I preview the .avs file The resolution is always 720 x 576 and this is also the case in the resulting encodes.
# Created with Gordian Knot
#
# http://gknot.doom9.org
# PLUGINS
LoadPlugin("E:\PROGRA~1\GORDIA~1\DGMPGDec\DGDecode.dll")
#LoadPlugin("E:\PROGRA~1\GORDIA~1\AviSynthPlugins\decomb.dll")
#LoadPlugin("E:\PROGRA~1\GORDIA~1\AviSynthPlugins\KernelDeInt.dll")
LoadPlugin("E:\PROGRA~1\GORDIA~1\AviSynthPlugins\UnDot.dll")
#LoadPlugin("E:\PROGRA~1\GORDIA~1\AviSynthPlugins\dgbob.dll")
#LoadPlugin("E:\PROGRA~1\GORDIA~1\AviSynthPlugins\Convolution3d.dll")
#LoadPlugin("E:\PROGRA~1\GORDIA~1\AviSynthPlugins\FluxSmooth.dll")
LoadPlugin("E:\PROGRA~1\GORDIA~1\AviSynthPlugins\TomsMoComp.dll")
#LoadPlugin("E:\PROGRA~1\GORDIA~1\AviSynthPlugins\VSFilter.dll")
#LoadPlugin("E:\PROGRA~1\GORDIA~1\AviSynthPlugins\SimpleResize.dll")
# SOURCE
mpeg2source("E:\DVD\Projects\TEST_PGC3\trial.d2v")
A=Trim(0,31803)
B=Trim(31804,0).TomsMoComp(1,5,1)
return A+B
# 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)
# 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()
# CROPPING
crop(0,6,718,564)
# SUBTITLES
#VobSub("FileName")
# RESIZING
LanczosResize(576,432)
# DENOISING: choose one combination (or none)
Undot()
# 1) little noise
#Temporalsoften(2,3,3,mode=2,scenechange=6)
#mergechroma(blur(1.3))
#FluxSmoothST(5,7)
# 2) medium noise
#Temporalsoften(3,5,5,mode=2,scenechange=10)
#Convolution3d("moviehq")
#FluxSmoothST(7,7)
# 3) heavy noise
#Temporalsoften(4,8,8,mode=2,scenechange=10)
#Convolution3d("movielq")
#FluxSmoothST(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)
LanczosResize(576,432) should be changing the resolution right??
I am right to resize after deinterlacing?
If I remove the trim and deinterlace part of the script, the resolution does reduce to 576 x 432
UPDATE : I changed the trim section of the script to
A=Trim(0,31803)
B=Trim(31804,0)
return A+B
and I still get the resolution error (720 x 576) , so the problem appears to originate from trimming the video rather than deinterlacing.
Thanks Again!
manono
20th October 2005, 01:07
Who said anything about Return A+B? Nothing will happen after you put Return. None of the filters will do anything. Either do it the way I said, or put the Return line last.
And since you're right that the deinterlace should be done before the resize, then you'd better do it the way I said.
Staz
20th October 2005, 04:14
Who said anything about Return A+B? Nothing will happen after you put Return. None of the filters will do anything. Either do it the way I said, or put the Return line last.
And since you're right that the deinterlace should be done before the resize, then you'd better do it the way I said.
Thank you so much Manono for clearing that up.
I didn't realise that the script basically finishes at "Return".
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.