PDA

View Full Version : Long Encoding Time


PrinceAli0
11th October 2002, 19:59
Hey all,

I'm encoding an anime dvd I have into xvid but the encoding time is ~2 1/2 hrs for the first and another ~2 1/2 hrs for the second pass. When encoding the fps is between 0-4fps, is this acceptable or am I doing something wrong. I'm using the guide on Doom9 and I've included the faster IVTC method described in that guide. I am also using neuron2's msharpen filter and I'm calling a Sub Station Alpha file for the subtitles in the avs file, other than that everything is generic. I don't know why its taking so long. The actual video length is only ~26 mins. Please help.

Thanks
PrinceAli0


Here is the avs file I'm using with VDub to encode.

#
# Created with Gordian Knot
#
# http://thewef.nav.to
#
# PLUGINS
# get them from http://users.win.be/dividee
LoadPlugin("C:\PROGRA~1\GORDIA~1\mpeg2dec.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\InverseTelecine.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\Avisynth_Spatial.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\GreedyHMA.dll")
#LoadPlugin("C:\WINDOWS\System32\vobsub.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\decomb.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\MSharpen.dll")
#
# SOURCE
mpeg2source("F:\DVD Rip\LOVE_HINA_VOL_1\lhvol1.d2v")
LoadPlugin("C:\PROGRA~1\GORDIA~1\textsub.vdf")
Textsub("F:\DVD Rip\LOVE_HINA_VOL_1\lhvol1.ssa")
MSharpen(threshold=5,strength=50, highq=false)
#
# TRIM
trim(0,38917)
#
# IVTC
#InverseTelecine(40,10,15)
# or use
#GreedyHMA(1,0,4,0,0,0,0,0)
Telecide()
Decimate(cycle=5)
#
# CROPPING
crop(2,0,716,478)
#
# DEINTERLACING
#SmartDeinterlace(2,15,true,true,true)
# or use
#VerticalReduceBy2
# or maybe
#GreedyHMA(1,0,0,0,0,0,0,0)
#
# SUBTITLES
#VobSub("FileName")
#
# RESIZING
BicubicResize(576,432,0,0.5)
#
# DENOISING: choose one combination (or none)
# 1) little noise (fast)
#TemporalSmoother(2,1)
#
# 2) medium noise (slow)
#SpatialSoftenMMX(1,4,6,false,false,4,4,6,8)
#TemporalSmoother(2)
#
# 3) heavy noise (very slow, you have been warned)
#SpatialSoftenMMX(2,4,6,false,false,4,4,6,8)
#TemporalSmoother(3)
#SpatialSoftenMMX(1,4,6,false,false,4,4,6,8)
#
# BORDERS
#AddBorders(left,top,right,bottom)
#
# COMPRESSIBILITY CHECK
# !Snip Size has to be 13 for use in GKnot!
#SelectRangeEvery(260,13)
#
# FOOL CCEnc
#ResampleAudio(44100)

DJ Bobo
11th October 2002, 20:11
Because your machine has probably a weak processor (something in the 600MHz range?!)

Because you're using msharpen (get rid of that one)

Because you're using decomb which is slower than IVTC (at least on my p3 - use 44,11,95 instead of 40,10,15 if you wanna use it)

Because you're using bicubicresize instead of bilinearresize (but you can't replace it with bilinear if you want sharper image though)

Because the resolution is very high (here again, nothing you can do about it if you absolutely want that high resolution)

PrinceAli0
11th October 2002, 20:37
Because your machine has probably a weak processor (something in the 600MHz range?!)

My systems is an Athlon 1700+ with 512 MB Ram so this can't be it.

Because you're using msharpen (get rid of that one)

I thought msharpen was a fast filter and very effective, I guess I was wrong, I'll remove and see how it improves.

Because you're using decomb which is slower than IVTC (at least on my p3 - use 44,11,95 instead of 40,10,15 if you wanna use it)

So you're saying to use the native IVTC that is provided in the GKnot avs I created ?? Or is there some other plug in that can do it faster. Also if I do use IVTC how would I format that in the avs line.

Because you're using bicubicresize instead of bilinearresize (but you can't replace it with bilinear if you want sharper image though)

I'll fool with this and see how the sharpness is affected, I want a nice sharp.

Thanks very very much for the info.

Kyo
12th October 2002, 06:37
Mmmm, I think that the MSharpen will be put BEFORE the ivtc part, or I think that the ivtc will be less efective(?).

Ranma-kun
12th October 2002, 11:03
If you are using Decomb 4.0 try Avisynth 2.06 with SetMemoryMax(64) at the beginning of the script.
Well, and I think Msharphen would do better job if you place it after Decimate.

Sorry for my bad English.

DJ Bobo
12th October 2002, 16:18
@ Ali
GKnot has version 2.1 of the IVTC filter. Better replace with version 2.2 provided on the download page of Doom9.
Disable the telecide/decimate lines with # and add the following lines:
loadplugin("...\ivtc.dll")
ivtc(44,11,95)

IVTC must come *directly* after the mpeg2source line!! all filters must come *after* IVTC, no matter what!

Kyo
12th October 2002, 19:29
LOL!

I always got the same problem with my english class, BEFORE mean "antes" and AFTER mean "despues". I always relate After with Antes. So like DJ say all filters must come AFTER the IVTC, sorry my English mistake :o

SILICON
12th October 2002, 21:57
try it:

LoadPlugin("C:\PROGRA~1\GORDIA~1\mpeg2dec3.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\decomb.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\MSharpen.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\textsub.vdf")
mpeg2source("F:\DVD Rip\LOVE_HINA_VOL_1\lhvol1.d2v", IDCT=2, FAST=true)

trim(0,38917)
Textsub("F:\DVD Rip\LOVE_HINA_VOL_1\lhvol1.ssa")
crop(2,0,716,478)
Telecide()
BicubicResize(576,432,0,0.5)
Decimate(cycle=5)
MSharpen(threshold=5,strength=50, highq=false)


If you make before the crop, you process less pixels.
If you make before the resize, you process less pixels.

less pixels process, speed up.

The mpeg2dec3.dll (by Mack FD) is faster the the old MPEG2DEC.DLL

DJ Bobo
13th October 2002, 13:57
@ SILICON
Your AVS is all weird!
*NEVER* put any filter before (or between!) the IVTC lines (or the Decomb lines).
IVTC must come *directly* after the mpeg2source (and the trim line if there is one).
crop, resize, smoothing filters, *ALL OF THEM* after that!
And the subtitle line comes *THE LAST*!

SILICON
13th October 2002, 20:58
@DJ Bobo
thanks, I use PAL, and do not use IVTC. Is it right?


LoadPlugin("C:\PROGRA~1\GORDIA~1\mpeg2dec3.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\decomb.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\MSharpen.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\textsub.vdf")
mpeg2source("F:\DVD Rip\LOVE_HINA_VOL_1\lhvol1.d2v", IDCT=2, FAST=true)

Telecide()
Decimate(cycle=5)
trim(0,38917)
crop(2,0,716,478)
BicubicResize(576,432,0,0.5)
MSharpen(threshold=5,strength=50, highq=false)
Textsub("F:\DVD Rip\LOVE_HINA_VOL_1\lhvol1.ssa")

Kyo
14th October 2002, 01:50
thanks, I use PAL, and do not use IVTC. Is it right?

Yes, but if the DVD is NOT interlaced, so If the Anime is LoveHina I bet is a Film-Ntsc content so you must use IVTC.