View Full Version : Flickering video using SetMtMode(), any solution for that?
Arshad07
21st May 2009, 10:59
After using setmode for my bluray rip, the output was flickering ( i dunno if its the right word ) all the way through. A sample to know what i'm talking about :-
http://www.sendspace.com/file/s1q5m1
Is there any way for it not to occur ?
Here's my script if it helps:
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\SSE2Tools.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\MT.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\mvtools2.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\mt_masktools2.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\RemoveGrainSSE3.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\RemoveGrainSSE2.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\RemoveGrain.dll")
setmtmode(5)
AVCSource("C:\Users\Arshad07\Desktop\hjniu.dga")
setmtmode(2)
Degrainmedian(mode=3)
Tweak(hue=-3.0, sat=1.2, bright=0, cont=1.0, coring=true, sse=false)
MT("
LimitedSharpenFaster(ss_x=1.5, ss_y=1.5, dest_x=last.width, dest_y=last.height, Smode=3, strength=80, radius=2, Lmode=1, wide=false, overshoot=1, edgemode=0, special=false, exborder=0)
",4)
MT("spline64resize(1280, last.height)",4)
MT("spline64resize(last.width, 528)",4, splitvertical=true)
Degrainmedian(mode=2)
BigDid
21st May 2009, 18:06
.....
BigDid
21st May 2009, 18:17
After using setmode for my bluray rip, the output was flickering ( i dunno if its the right word ) all the way through...
Is there any way for it not to occur ?
Hi,
From your clip it seems to be separation lines resulting from mt() use
see: http://forum.doom9.org/showthread.php?p=1285258#post1285258
I haven't tried this tip yet, so up to you to experiment.
You are using 2 commands with mt(): degrainmedian() and spline64resize(). I never had problems with mt/degrainmedian() so I suppose it comes from mt/spline64resize()
spline64resize() is a fast command so there no or nearly no time penalty using setmtmode(1,0) instead of mt
Some comments on your script if I may, cause the result sample doesn't seems as crisp at it could be.
The basic filterchain is
- deinterlace
- denoise
- sharpen
* also some post sharpen if needed like dehaloing or debanding
It can have exceptions but doing it that way makes it easier for tuning, denoiser first: just enough not too much; and after sharpening: also not too much cause of haloing..
You use 1 average to strong degrainmedian(mode=3) at the beginning which is fine but also one strong mode(2) at the end, which is ... strange
If your goal is to soften the effect of limitedsharpen() there is a specific parameter inside LSF for it: "soft"
If you really need so strong degraining mode2+mode3 you may want to try degrainmedian(mode=1 or 0) with limiters or another strong denoiser like Mdegrain2 or 3 from Mvtools2...
One last thing, it is considered courteous/polite to come back on comments given after a query. If you don't, the poster will not be inclined to comment in the future and if a query comes from a moderator not answering it may be considered as a breach for rule 16 and striked (eventually). In case you don't know, any poster having the same doom9 logo on the left in the sig is a moderator.
Did
Arshad07
21st May 2009, 22:18
Thanks for the suggestion. Will try it and let u know asap.
Arshad07
31st May 2009, 11:20
@BigDid
It aint working mate, same flickering thing :(
shoopdabloop
31st May 2009, 12:00
I thought Spline64Resize didn't exist in MT Avisynth.....
Gavino
31st May 2009, 13:45
It doesn't exist in the 'official' MT version, which is based on Avisynth 2.5.7. It does exist in the 'unofficial' version based on 2.5.8.
BigDid
31st May 2009, 17:59
Hi,
Could you post your new script?
And a sample from the SOURCE to reproduce the problem and/or try some alternatives?
Thanks.
Did
Arshad07
31st May 2009, 18:54
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\SSE2Tools.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\MT.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\mvtools2.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\mt_masktools2.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\RemoveGrainSSE3.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\RemoveGrainSSE2.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\RemoveGrain.dll")
Load_Stdcall_Plugin("C:\Program Files (x86)\megui\tools\yadif\yadif.dll")
setmtmode(5)
AVCSource("x.dga")
setmtmode(2)
MT("""super = MSuper()
backward_vec2 = MAnalyse(super, isb = true, delta = 2, overlap=2)
forward_vec2 = MAnalyse(super, isb = false, delta = 2, overlap=2)
MDegrain1( super, backward_vec2,forward_vec2,thSAD=400)""",4)
MT("""Levels(15, 1.100, 245, 0, 255, coring=true)""",4)
MT("""Tweak(hue=0, sat=1.02, bright=0, cont=.96, coring=true, sse=false)""",4)
MT("""LimitedSharpenFaster(ss_x=1.5, ss_y=1.5, dest_x=last.width, dest_y=last.height, Smode=3, strength=80, radius=2, Lmode=1, wide=false, overshoot=1,edgemode=0, special=false, exborder=0)""",2)
Spline36Resize(1280,544) # Spline36 (Neutral)
I dont know how to cut a h264 file
onesloth
31st May 2009, 18:54
After using setmode for my bluray rip, the output was flickering ( i dunno if its the right word ) all the way through.
First of all, are you using AVCSource from DGAVCDecNV? That doesn't like SetMTMode. Also, you don't need to load the plugins because they are all in the plugins directory.
Assuming AVCSource() with SetMtMode() isn't your problem, and that you don't want to change the order of the filters, and that all the other filters work with SetMTMode(2) you might try something like this:
setmtmode(5)
AVCSource("C:\Users\Arshad07\Desktop\hjniu.dga")
setmtmode(2)
Degrainmedian(mode=3)
Tweak(hue=-3.0, sat=1.2, bright=0, cont=1.0, coring=true, sse=false)
LimitedSharpenFaster(ss_x=1.5, ss_y=1.5, dest_x=last.width, dest_y=last.height, Smode=3, \
strength=80, radius=2, Lmode=1, wide=false, overshoot=1, edgemode=0, special=false, exborder=0)
spline64resize(1280, 528)
Degrainmedian(mode=2)
You don't need to MT() filters that work under SetMTMode.
BigDid
31st May 2009, 19:40
I dont know how to cut a h264 file
Hi again, see below:
http://forum.doom9.org/showthread.php?t=123968
http://www.softpedia.com/get/Multimedia/Video/Video-Editors/H264TS-Cutter.shtml
http://www.008soft.com/how-to-split/h.264-splitter.htm
... google search?
Seems avidemux does a good job :cool:
Did
Arshad07
31st May 2009, 19:49
First of all, are you using AVCSource from DGAVCDecNV? That doesn't like SetMTMode. Also, you don't need to load the plugins because they are all in the plugins directory.
Assuming AVCSource() with SetMtMode() isn't your problem, and that you don't want to change the order of the filters, and that all the other filters work with SetMTMode(2) you might try something like this:
setmtmode(5)
AVCSource("C:\Users\Arshad07\Desktop\hjniu.dga")
setmtmode(2)
Degrainmedian(mode=3)
Tweak(hue=-3.0, sat=1.2, bright=0, cont=1.0, coring=true, sse=false)
LimitedSharpenFaster(ss_x=1.5, ss_y=1.5, dest_x=last.width, dest_y=last.height, Smode=3, \
strength=80, radius=2, Lmode=1, wide=false, overshoot=1, edgemode=0, special=false, exborder=0)
spline64resize(1280, 528)
Degrainmedian(mode=2)
You don't need to MT() filters that work under SetMTMode.
No, i'm using DGAVCIndex.
When i encode with setmtmode only, i face the same problems. But with only MT on the filters, it doesnt produse these artifacts in the sample BUT it doesnt increase the speed
onesloth
31st May 2009, 19:55
When i encode with setmtmode only, i face the same problems.
Did you try using modes besides SetMTMode(2) with each of the filters? One may not work properly under mode 2. Start by running the whole script with SetMTMode(5) (without any MT() calls) and see if you still get the problems.
Arshad07
31st May 2009, 21:48
30s sample (http://www.sendspace.com/file/jcqwwc)
BigDid
31st May 2009, 23:36
30s sample (http://www.sendspace.com/file/jcqwwc)
But not the same movie :eek:
This link is FF/tokyo drift not (I suppose) "He's Just Not That Into You"? with Jennifer Aniston and Ben Affleck...
Did
Arshad07
1st June 2009, 00:14
I think it wont matter on what movie sample i provide here, cos it happens on all sources. What matters here is the filter chain, which i'm confused :confused:
tedkunich
1st June 2009, 18:01
After using setmode for my bluray rip, the output was flickering ( i dunno if its the right word ) all the way through. A sample to know what i'm talking about :-
http://www.sendspace.com/file/s1q5m1
Is there any way for it not to occur ?
Here's my script if it helps:
Lose the MT() calls as you are already using the SetMTMode(x). Do a search in the MT thread - there has been plenty of discussions about mixing the two.
Chiba
1st June 2009, 18:35
Lose the MT() calls as you are already using the SetMTMode(x). Do a search in the MT thread - there has been plenty of discussions about mixing the two.
I'm using just MT("filter") and i have exactly the same problem :x
http://forum.doom9.org/showthread.php?t=147425
my script :
SetMemoryMax(1280)
MPEG2SOURCE("FULL.d2v",cpu=0,idct=6,info=3)
TIVTC24P2()
//the upper part has no problem
MT("mvnettoiemt(type = 3,thsad = 200,blksize = 8)",threads=2,overlap=8)
grainy=last.MT(filter="GradFunkMirror(1.4)",threads=2,overlap=8)MT(filter=".GNoise(Sigma=0.1,Seed=1,Color=False,Temporal=False)",threads=2,overlap=8)
clean=MT(filter="KenKunNR(180,2,10)",threads=2,overlap=8)
grainoptimizer(grainy,clean,tdist=9999)
Histogram("luma")
BigDid
1st June 2009, 19:30
I think it wont matter on what movie sample i provide here, cos it happens on all sources. What matters here is the filter chain, which i'm confused :confused:
Hi,
I can understand your frustration, avisynth can be really hard at times, must we both be frustrated?
I may have an answer, please provide the related source as your script doesn't seem adapted to TokyoDrift. Thank you.
Did
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.