Log in

View Full Version : Help (problem with encoding)


Degenarated
27th June 2010, 01:05
Hi, I'm trying to encode video files using megui but for some peculiar and freaky reason i can only encode a video file up to 264 mb.
See x264---264 mb :P
I've also tried to enconde via .bat instead of using megui but sadly it was worthless.
Any sugestion?
I'm still a noob at this but I'm gladly available to help you solve this problem I have.

Regards

My .bat file:

x264 --level 4.1 --preset placebo --tune animation --crf 16.0 --bframes 8 --b-pyramid none --ref 12 --rc-lookahead 80 --me hex --subme 7 --output "mowgli_final.mp4" "mowgli.avs" 704x528



My avs script:

global MeGUI_darx = 4
global MeGUI_dary = 3

function mvnettoie(clip c ,int "type", int "thSAD",int "blksize", bool "pre")
{
idx = rand()
Type = default(type,2)
thSAD = Default(thSAD, 400)
blksize = Default(blksize,8)
pre = Default (pre,false)
idx_2 = pre ? idx+1 : idx

c_pre = pre ? c.FFT3DFilter(sigma=5,sigma2=3,sigma3=3,bt=5,bw=32,bh=32,ow=16,oh=16,plane=4):c

MVMulti=c_pre.MVAnalyseMulti(refframes=Type, pel = 2, blksize=blksize,overlap=blksize/2, sharp=1, idx = idx)
c.MVDegrainMulti(MVMulti, refframes=Type, thSAD=thsad, idx=idx_2)
}

DirectShowSource("C:\Users\Diogo\Desktop\mowgli\Mowgli_Ep_part1.mp4", fps=23.976, convertfps=true)




ConvertToYV12()
MCTemporalDenoise(settings="very high",sigma=3,bt=4,ncpu=2,edgeclean=true,ECmode="dfttest()",deblock=true,aa=true,useEEDI2=true,maxd=24,enhance=true,protect=true)

function RemoveDirt(clip input, int limit, bool _grey)
{
clensed=input.Clense(grey=_grey, cache=4)
alt=input.RemoveGrain(2)
return RestoreMotionBlocks(clensed,input,alternative=alt,pthreshold=6,cthreshold=8, gmthreshold=40,dist=3, dmode=2,debug=false,noise=limit,noisy=4, grey=_grey)
}

function RemoveDirtMC(clip,int limit, bool "_grey")
{
_grey=default(_grey, false)
limit = default(limit,6)
i=MSuper(clip,pel=2)
bvec = MAnalyse(i,isb=false, blksize=8, delta=1, truemotion=true)
fvec = MAnalyse(i,isb=true, blksize=8, delta=1, truemotion=true)
backw = MFlow(clip,i,bvec)
forw = MFlow(clip,i,fvec)
clp=interleave(backw,clip,forw)
clp=clp.RemoveDirt(limit,_grey)
clp=clp.SelectEvery(3,1)
return clp
}

function RemoveNoiseMC(clip,int "rdlimit", int "rgrain", int "denoise", bool "sharp", float "csharpen", bool "_grey")
{
rdlimit = default(rdlimit,11)
rgrain = default(rgrain,2)
denoise = default(denoise,8)
sharp = (rgrain<1) ? default(sharp,true) : default(sharp,false)
csharpen = (rgrain>2) ? default(csharpen,0.17) : (rgrain>1) ? default(csharpen,0.15) : default(csharpen,0.13)
csharpen = sharp ? csharpen : csharpen+0.08
_grey = default(_grey,false)
_dgr = 0.45+rgrain*0.4
dummy = clip.BlankClip(length=0)
global idx_c = idx_c+1
cbs = 8
cov = (cbs>4) ? cbs/4 : 0
ccf = cbs*cbs/64
cpn = (denoise>12) ? 50*ccf : (denoise>8) ? 58*ccf : (denoise>5) ? 66*ccf : 72*ccf
csh = sharp ? 1 : 0
bvec2 = clip.MVAnalyse(isb=false, blksize=cbs, delta=2, pel=2, sharp=csh, overlap=cov, truemotion=true, pnew=cpn, idx=idx_c)
bvec1 = clip.MVAnalyse(isb=false, blksize=cbs, delta=1, pel=2, sharp=csh, overlap=cov, truemotion=true, pnew=cpn, idx=idx_c)
fvec1 = clip.MVAnalyse(isb=true, blksize=cbs, delta=1, pel=2, sharp=csh, overlap=cov, truemotion=true, pnew=cpn, idx=idx_c)
fvec2 = clip.MVAnalyse(isb=true, blksize=cbs, delta=2, pel=2, sharp=csh, overlap=cov, truemotion=true, pnew=cpn, idx=idx_c)
backw1 = rdlimit>13 ? \
rdlimit>20 ? \
clip.MVFlow(bvec1, idx=idx_c).Deblock(quant=22, aOffset=6, bOffset=6) : \
clip.MVFlow(bvec1, idx=idx_c).Deblock(quant=16, aOffset=4, bOffset=4) : \
clip.MVFlow(bvec1, idx=idx_c)
forw1 = rdlimit>13 ? \
rdlimit>20 ? \
clip.MVFlow(fvec1, idx=idx_c).Deblock(quant=22, aOffset=6, bOffset=6) : \
clip.MVFlow(fvec1, idx=idx_c).Deblock(quant=16, aOffset=4, bOffset=4) : \
clip.MVFlow(fvec1, idx=idx_c)
clp = interleave(backw1,clip,forw1)
clp = clp.RemoveDirt(rdlimit,rgrain,_grey)
dnc = denoise==0 ? clp.RemoveTempGrain(rgrain).SelectEvery(3,1) : dummy
clp = clp.SelectEvery(3,1)
dnc = denoise==0 ? dnc : \
clp.MVDenoise(bvec2, bvec1, fvec1, fvec2, thT=denoise, thSAD=190+15*denoise, thmv=40, thSCD1=230+5*denoise)
vid_mo = dnc.VagueDenoiser(threshold=_dgr, chromaT=_dgr, nsteps=7, percent=75)
vid_mo = rgrain==1 ? vid_mo.RemoveGrain(1) : vid_mo.RemoveGrain(5)
dnc = dnc.ConditionalFilter(dnc, vid_mo, "(YDifferenceFromPrevious()+YDifferenceToNext())/AverageLuma()", "<", "0.3")
clp = clp.SeeSaw(dnc, Sstr=csharpen, Szp=12, SdampHi=20, bias=40)
return clp
}

Guest
27th June 2010, 01:12
To get your thread re-opened please send me a PM explaining where you got the source file.