Skip to content

Commit 8fc7136

Browse files
committed
Updated the demo scripts.
1 parent 119bfa6 commit 8fc7136

File tree

3 files changed

+24
-17
lines changed

3 files changed

+24
-17
lines changed

OKEGui/OKEGui/demo.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"Encoder" : "x265-10b.exe",
66
"EncoderParam" : "-D 10 --deblock -1:-1 --preset slower --limit-tu 4 --no-strong-intra-smoothing --ctu 32 --crf 16 --qg-size 8 --pbratio 1.2 --cbqpoffs -2 --crqpoffs -2 --no-sao --me 3 --subme 5 --merange 38 --b-intra --no-amp --ref 4 --weightb --keyint 360 --min-keyint 1 --bframes 6 --aq-mode 1 --aq-strength 0.7 --rd 5 --psy-rd 1.5 --psy-rdoq 0.8 --rdoq-level 2 --no-open-gop --rc-lookahead 80 --scenecut 40 --qcomp 0.65 --vbv-bufsize 40000 --vbv-maxrate 30000 --colormatrix bt709 --range limited",
77
"ContainerFormat" : "mkv",
8-
"VideoFormat" : "hevc",
98
"AudioTracks" : [{
109
"TrackId" : 0,
1110
"OutputCodec" : "flac"

OKEGui/OKEGui/demo_720p.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"Version" : 2,
33
"ProjectName" : "Demo - 720p",
4-
"EncoderType" : "x265",
5-
"Encoder" : "x265-10b.exe",
6-
"EncoderParam" : "-D 10 --preset slower --limit-tu 4 --ctu 32 --crf 18 --pbratio 1.2 --cbqpoffs -2 --crqpoffs -2 --no-sao --qg-size 8 --me 3 --subme 4 --merange 25 --b-intra --no-amp --ref 4 --weightb --keyint 360 --min-keyint 1 --bframes 6 --aq-mode 3 --aq-strength 0.7 --rd 5 --psy-rd 1.6 --psy-rdoq 0.8 --rdoq-level 2 --no-open-gop --vbv-bufsize 30000 --vbv-maxrate 28000 --rc-lookahead 80 --scenecut 40 --qcomp 0.65 --no-strong-intra-smoothing --colormatrix bt709 --range limited",
4+
"EncoderType" : "x264",
5+
"Encoder" : "x264_64_tMod-8bit-420.exe",
6+
"EncoderParam" : "--preset veryslow --tune animation --crf 19.0 --deblock 0:0 --keyint 360 --min-keyint 1 --bframes 8 --ref 9 --pbratio 1.25 --qcomp 0.7 --rc-lookahead 70 --aq-strength 0.9 --merange 24 --psy-rd 0.00:0.20 --no-dct-decimate --no-fast-pskip --colormatrix bt709 --fgo 1",
77
"ContainerFormat" : "mp4",
8-
"VideoFormat" : "hevc",
98
"AudioTracks" : [{
109
"TrackId" : 0,
1110
"OutputCodec" : "aac",

OKEGui/OKEGui/demo_720p.vpy

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,32 @@ import sys
33
import havsfunc as haf
44
import mvsfunc as mvf
55

6-
core = vs.get_core(threads=8)
6+
core = vs.get_core(threads=12)
77

8-
core.max_cache_size = 4000
8+
core.max_cache_size = 9000
99

1010
#OKE:INPUTFILE
11-
a="00000.m2ts"
11+
a="00001.m2ts"
1212
src8 = core.lsmas.LWLibavSource(a)
1313
src16 = core.fmtc.bitdepth(src8,bits=16)
1414

15-
down = core.fmtc.resample(src16, 1280, 720)
16-
res = down
15+
gray = core.std.ShufflePlanes(src16, 0, colorfamily=vs.GRAY)
16+
gray = core.fmtc.transfer(gray,transs="709",transd="linear")
17+
gray = core.fmtc.resample(gray,1280,720)
18+
gray = core.fmtc.transfer(gray,transs="linear",transd="709")
19+
UV = core.fmtc.resample(src16,1280,720)
20+
down = core.std.ShufflePlanes([gray,UV],[0,1,2], vs.YUV)
1721

18-
#OKE:DEBUG
19-
Debug = 1
20-
if Debug:
21-
res=core.std.Interleave([down, res])
22-
res=mvf.ToRGB(res,full=False,depth=8)
23-
else: res = core.fmtc.bitdepth(res,bits=10)
22+
nr16 = core.knlm.KNLMeansCL(down,device_type="GPU",h=0.6,s=3,d=1,a=2,channels="Y")
23+
noise16 = core.std.MakeDiff(down,nr16,0)
24+
dbed = core.f3kdb.Deband(nr16, 8,48,48,48,0,0,output_depth=16)
25+
dbed = core.f3kdb.Deband(dbed,16,32,32,32,0,0,output_depth=16)
26+
dbed = mvf.LimitFilter(dbed,nr16,thr=0.5,thrc=0.4,elast=1.5)
27+
dbed = core.std.MergeDiff(dbed,noise16,0)
2428

25-
res.set_output()
29+
30+
bright = mvf.Depth(dbed,8,dither=1)
31+
dark = mvf.Depth(dbed,8,dither=0,ampo=1.5)
32+
res = core.std.MaskedMerge(dark, bright, core.std.Binarize(bright, 128, planes=0), first_plane=True)
33+
34+
res.set_output(0)

0 commit comments

Comments
 (0)