Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 3rd December 2023, 16:16   #2781  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,351
Strange, no prob here. Using ffms2_r1387 and AVS+ r4003
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 3rd December 2023, 16:35   #2782  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,127
I test latest ver from Pinterf and got no error, i think it's from Asd-g's avs + compilie. Sr for disturb

Last edited by kedautinh12; 9th December 2023 at 12:02.
kedautinh12 is offline   Reply With Quote
Old 4th December 2023, 19:08   #2783  |  Link
madey83
Registered User
 
Join Date: Sep 2021
Posts: 136
hello,

can i ask for help with clearing out this clip:
https://mega.nz/file/sZZh2bpI#zK7jGm...pqB6eIUaHFhupk

thank you in advance for any help
madey83 is offline   Reply With Quote
Old 5th December 2023, 03:53   #2784  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,127
Result with RealESRGAN_x4plus_anime_6B


Script:
Code:
z_ConvertFormat(pixel_type="rgbps", colorspace_op="709:709:709:l=>rgb:709:709:f")
mlrt_ncnn(network_path="C:/Program Files (x86)/AviSynth+/plugins64+/models/RealESRGAN/RealESRGAN_x4plus_anime_6B.onnx", builtin=false, fp16=true, tilesize_w=width/4, tilesize_h=height/4)
propSet("_FieldBased",0)
deep_resize(1280,720,edge="SSIM2") 
z_ConvertFormat(pixel_type="yuv420p8", colorspace_op="rgb:709:709:f=>709:709:709:l")

Last edited by kedautinh12; 5th December 2023 at 06:01.
kedautinh12 is offline   Reply With Quote
Old 5th December 2023, 06:01   #2785  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,127
I tried with DPIR +UniScale CartoonRestore-lite + AnimeJanai and got this result:


Script:
Code:
z_ConvertFormat(pixel_type="rgbps", colorspace_op="709:709:709:l=>rgb:709:709:f")
mlrt_DPIR(model=1, strength=6, tiles=2) # Denoise
mlrt_ncnn(network_path="C:/Program Files (x86)/AviSynth+/plugins64+/models/UniScale/2x_UniScale_CartoonRestore-lite.onnx", builtin=false, fp16=true, tilesize_w=width/4, tilesize_h=height/4) # Restoration
propSet("_FieldBased",0)
deep_resize(1280,720,edge="SSIM2") 
mlrt_ncnn(network_path="C:/Program Files (x86)/AviSynth+/plugins64+/models/Compact/2x_AnimeJaNai_Standard_V1_Compact_net_g_120000.onnx", builtin=false, fp16=true) # Sharpen
deep_resize(1280,720,edge="SSIM2")  #target 1280x720
z_ConvertFormat(pixel_type="yuv420p8", colorspace_op="rgb:709:709:f=>709:709:709:l")

Last edited by kedautinh12; 5th December 2023 at 09:01.
kedautinh12 is offline   Reply With Quote
Old 5th December 2023, 08:30   #2786  |  Link
madey83
Registered User
 
Join Date: Sep 2021
Posts: 136
hello kedautinh12,

thank you for your feedback...

Could you please tell me where i can find these "onnx" files because i was able to find only e.g. something like that
https://openmodeldb.info/models/4x-r...4plus-anime-6b

is there any special opening method to those models in AVSPmod app?
i have got this:
https://imgur.com/txIHjv9
madey83 is offline   Reply With Quote
Old 5th December 2023, 08:32   #2787  |  Link
madey83
Registered User
 
Join Date: Sep 2021
Posts: 136
Quote:
Originally Posted by kedautinh12 View Post
I tried with DPIR +UniScale CartoonRestore-lite + AnimeJanai and got this result:


Script:
Code:
z_ConvertFormat(pixel_type="rgbps", colorspace_op="709:709:709:l=>rgb:709:709:f")
mlrt_DPIR(model=1, strength=6, tiles=2) # Denoise
mlrt_ncnn(network_path="C:/Program Files (x86)/AviSynth+/plugins64+/models/UniScale/2x_UniScale_CartoonRestore-lite.onnx", builtin=false, fp16=true, tilesize_w=width/4, tilesize_h=height/4) # Restore
propSet("_FieldBased",0)
deep_resize(1280,720,edge="SSIM2") 
mlrt_ncnn(network_path="C:/Program Files (x86)/AviSynth+/plugins64+/models/Compact/2x_AnimeJaNai_Standard_V1_Compact_net_g_120000.onnx", builtin=false, fp16=true) # Upscales
deep_resize(1280,720,edge="SSIM2")  #target 1280x720
z_ConvertFormat(pixel_type="yuv420p8", colorspace_op="rgb:709:709:f=>709:709:709:l")
this RealESRGAN_x4plus_anime_6B looks cleaner to my eyes...
madey83 is offline   Reply With Quote
Old 5th December 2023, 08:37   #2788  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,127
Choose what you like. For personal, i prefer DPIR +UniScale CartoonRestore-lite + AnimeJanai's result
kedautinh12 is offline   Reply With Quote
Old 5th December 2023, 08:49   #2789  |  Link
madey83
Registered User
 
Join Date: Sep 2021
Posts: 136
Quote:
Originally Posted by madey83 View Post
hello kedautinh12,

thank you for your feedback...

Could you please tell me where i can find these "onnx" files because i was able to find only e.g. something like that
https://openmodeldb.info/models/4x-r...4plus-anime-6b

is there any special opening method to those models in AVSPmod app?
i have got this:
https://imgur.com/txIHjv9

could you please advice...
madey83 is offline   Reply With Quote
Old 5th December 2023, 08:56   #2790  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,127
You need .dll filters and models from here:
https://github.com/Asd-g/avs-mlrt/releases
Additional scripts:
https://github.com/Asd-g/avs-mlrt/blob/main/mlrt.avsi

More models you can get from here:
https://github.com/styler00dollar/VS...ses/tag/models
kedautinh12 is offline   Reply With Quote
Old 5th December 2023, 09:08   #2791  |  Link
madey83
Registered User
 
Join Date: Sep 2021
Posts: 136
Quote:
Originally Posted by kedautinh12 View Post
You need .dll filters and models from here:
https://github.com/Asd-g/avs-mlrt/releases
Additional scripts:
https://github.com/Asd-g/avs-mlrt/blob/main/mlrt.avsi

More models you can get from here:
https://github.com/styler00dollar/VS...ses/tag/models
thank you
madey83 is offline   Reply With Quote
Old 5th December 2023, 09:27   #2792  |  Link
madey83
Registered User
 
Join Date: Sep 2021
Posts: 136
Quote:
Originally Posted by kedautinh12 View Post
You need .dll filters and models from here:
https://github.com/Asd-g/avs-mlrt/releases
Additional scripts:
https://github.com/Asd-g/avs-mlrt/blob/main/mlrt.avsi

More models you can get from here:
https://github.com/styler00dollar/VS...ses/tag/models
Could you please give another help?

this is my avspmod app call and it crush:

tcFile = "E:\timestamps.txt" # timestamps file path
Exist(tcFile) ? FFVideoSource("E:\source.mkv", cachefile="E:\temp.ffindex", timecodes=tcFile) : FFVideoSource("E:\source.mkv", cachefile="e:\temp.ffindex")

Crop(160, 0, -160, -0)
import("E:\4k_Encode\Avisynth-Scripts-master\MIX mods\GradFun3plus.avsi")
import("E:\4k_Encode\Avisynth-Scripts-master\ExTools.avsi")
import("E:\4k_Encode\Avisynth-Scripts-master\SMDegrain\SMDegrain.avsi")
Import("E:\4k_Encode\Avisynth-Scripts-master\ResizersPack.avsi")
Import("E:\4k_Encode\Avisynth-Scripts-master\MIX mods\LSFplus.avsi")
Import("E:\4k_Encode\Avisynth-Scripts-master\MIX mods\SharpenersPack.avsi")
Import("E:\4k_Encode\Avisynth-Scripts-master\GradePack.avsi")
Import("E:\4k_Encode\Avisynth-Scripts-master\ScenesPack.avsi")
Import("E:\4k_Encode\Avisynth-Scripts-master\MasksPack.avsi")
Import("E:\4k_Encode\Avisynth-Scripts-master\MIX mods\Spresso.avsi")
import("E:\4k_Encode\Avisynth-Scripts-master\EX mods\DeblockPack.avsi")
import("E:\4k_Encode\Avisynth-Scripts-master\TransformsPack - Main.avsi")
import("E:\4k_Encode\Avisynth-Scripts-master\TransformsPack - Models.avsi")
import("E:\4k_Encode\Avisynth-Scripts-master\TransformsPack - Transfers.avsi")
loadplugin("E:\4k_Encode\BM3DCUDA_AVS-test10-cuda118\x64\BM3DCPU_AVS.dll")
loadplugin("E:\4k_Encode\BM3DCUDA_AVS-test10-cuda118\x64\BM3DCUDA_AVS.dll")
loadplugin("E:\4k_Encode\BM3DCUDA_AVS-test10-cuda118\x64\BM3D_VAggregate_AVS.dll")
loadplugin("E:\4k_encode\dgdecnv_248\DGDecodeNV.dll")
loadplugin("E:\4k_encode\vsTCanny-1.1.8\x64\Release\vsTCanny.dll")
loadplugin("E:\4k_Encode\neo_FFT3D_r11\x64\neo-fft3d.dll")
loadplugin("E:\4k_Encode\fmtconv-r30\win64\fmtconv.dll")
loadplugin("E:\4k_Encode\avs_libplacebo-1.2.0\x64\Release\avs_libplacebo.dll")
loadplugin("E:\4k_Encode\ClipClop_x86_x64_dll_v1-27_20210727\Avisynth+_x64\ClipClop_x64.dll")
loadplugin("E:\4k_Encode\DGHDRtoSDR_1.15\DGHDRtoSDR.dll")
loadplugin("E:\4k_Encode\NNEDI3CL-1.0.8\x64\Release\NNEDI3CL.dll")

loadplugin("E:\4k_Encode\____models\mlrt_ncnn-1.0.1\x64\Release\mlrt_ncnn.dll")
import("E:\4k_Encode\____models\mlrt_ncnn-1.0.1\mlrt.avsi")

z_ConvertFormat(pixel_type="rgbps", colorspace_op="709:709:709:l=>rgb:709:709:f")
mlrt_ncnn(network_path="E:\4k_Encode\____models\RealESRGAN_x4plus_anime_6B.onnx", builtin=false, fp16=true, tilesize_w=width/4, tilesize_h=height/4)
propSet("_FieldBased",0)
deep_resize(1280,720,edge="SSIM2")
z_ConvertFormat(pixel_type="yuv420p8", colorspace_op="rgb:709:709:f=>709:709:709:l")

Last edited by madey83; 5th December 2023 at 10:14.
madey83 is offline   Reply With Quote
Old 5th December 2023, 10:19   #2793  |  Link
madey83
Registered User
 
Join Date: Sep 2021
Posts: 136
Quote:
Originally Posted by madey83 View Post
Could you please give another help?

this is my avspmod app call and it crush:

tcFile = "E:\timestamps.txt" # timestamps file path
Exist(tcFile) ? FFVideoSource("E:\source.mkv", cachefile="E:\temp.ffindex", timecodes=tcFile) : FFVideoSource("E:\source.mkv", cachefile="e:\temp.ffindex")

Crop(160, 0, -160, -0)
import("E:\4k_Encode\Avisynth-Scripts-master\MIX mods\GradFun3plus.avsi")
import("E:\4k_Encode\Avisynth-Scripts-master\ExTools.avsi")
import("E:\4k_Encode\Avisynth-Scripts-master\SMDegrain\SMDegrain.avsi")
Import("E:\4k_Encode\Avisynth-Scripts-master\ResizersPack.avsi")
Import("E:\4k_Encode\Avisynth-Scripts-master\MIX mods\LSFplus.avsi")
Import("E:\4k_Encode\Avisynth-Scripts-master\MIX mods\SharpenersPack.avsi")
Import("E:\4k_Encode\Avisynth-Scripts-master\GradePack.avsi")
Import("E:\4k_Encode\Avisynth-Scripts-master\ScenesPack.avsi")
Import("E:\4k_Encode\Avisynth-Scripts-master\MasksPack.avsi")
Import("E:\4k_Encode\Avisynth-Scripts-master\MIX mods\Spresso.avsi")
import("E:\4k_Encode\Avisynth-Scripts-master\EX mods\DeblockPack.avsi")
import("E:\4k_Encode\Avisynth-Scripts-master\TransformsPack - Main.avsi")
import("E:\4k_Encode\Avisynth-Scripts-master\TransformsPack - Models.avsi")
import("E:\4k_Encode\Avisynth-Scripts-master\TransformsPack - Transfers.avsi")
loadplugin("E:\4k_Encode\BM3DCUDA_AVS-test10-cuda118\x64\BM3DCPU_AVS.dll")
loadplugin("E:\4k_Encode\BM3DCUDA_AVS-test10-cuda118\x64\BM3DCUDA_AVS.dll")
loadplugin("E:\4k_Encode\BM3DCUDA_AVS-test10-cuda118\x64\BM3D_VAggregate_AVS.dll")
loadplugin("E:\4k_encode\dgdecnv_248\DGDecodeNV.dll")
loadplugin("E:\4k_encode\vsTCanny-1.1.8\x64\Release\vsTCanny.dll")
loadplugin("E:\4k_Encode\neo_FFT3D_r11\x64\neo-fft3d.dll")
loadplugin("E:\4k_Encode\fmtconv-r30\win64\fmtconv.dll")
loadplugin("E:\4k_Encode\avs_libplacebo-1.2.0\x64\Release\avs_libplacebo.dll")
loadplugin("E:\4k_Encode\ClipClop_x86_x64_dll_v1-27_20210727\Avisynth+_x64\ClipClop_x64.dll")
loadplugin("E:\4k_Encode\DGHDRtoSDR_1.15\DGHDRtoSDR.dll")
loadplugin("E:\4k_Encode\NNEDI3CL-1.0.8\x64\Release\NNEDI3CL.dll")

loadplugin("E:\4k_Encode\____models\mlrt_ncnn-1.0.1\x64\Release\mlrt_ncnn.dll")
import("E:\4k_Encode\____models\mlrt_ncnn-1.0.1\mlrt.avsi")

z_ConvertFormat(pixel_type="rgbps", colorspace_op="709:709:709:l=>rgb:709:709:f")
mlrt_ncnn(network_path="E:\4k_Encode\____models\RealESRGAN_x4plus_anime_6B.onnx", builtin=false, fp16=true, tilesize_w=width/4, tilesize_h=height/4)
propSet("_FieldBased",0)
deep_resize(1280,720,edge="SSIM2")
z_ConvertFormat(pixel_type="yuv420p8", colorspace_op="rgb:709:709:f=>709:709:709:l")
i have fixed...
madey83 is offline   Reply With Quote
Old 5th December 2023, 10:43   #2794  |  Link
madey83
Registered User
 
Join Date: Sep 2021
Posts: 136
@kedautinh12

have you got any sugestion what is wrong with below that gives me error?

SetFilterMTMode("DEFAULT_MT_MODE", 2)
LoadPlugin("E:\4k_Encode\models\mlrt_ncnn-1.0.1\x64\Release\mlrt_ncnn.dll")
Import("E:\4k_Encode\models\mlrt.avsi")
import("E:\4k_Encode\models\mlrt_ncnn-1.0.1\mlrt.avsi")
Import("E:\4k_Encode\SSIM_downsample.avsi")

z_ConvertFormat(pixel_type="rgbps", colorspace_op="709:709:709:l=>rgb:709:709:f")
mlrt_ncnn(network_path="C:\Program Files (x86)\AviSynth+\plugins64+\models\RealESRGAN\RealESRGAN_x4plus_anime_6B.onnx", builtin=false, fp16=true, tilesize_w=width/4, tilesize_h=height/4)
propSet("_FieldBased",0)
deep_resize(1440,1080,edge="SSIM2")
z_ConvertFormat(pixel_type="yuv420p8", colorspace_op="rgb:709:709:f=>709:709:709:l")
Prefetch(8,12)

avs+ [INFO]: using external Avisynth library from: "E:\4k_Encode\apps\StaxRip-v2.29.0-x64\Apps\FrameServer\AviSynth\AviSynth.dll"
avs+ [INFO]: AviSynth+ 3.7.3 (r4029, 3.7, x86_64)
[0 NVIDIA GeForce RTX 2060] queueC=2[8] queueG=0[16] queueT=1[2]
[0 NVIDIA GeForce RTX 2060] bugsbn1=0 bugbilz=0 bugcopc=0 bugihfa=0
[0 NVIDIA GeForce RTX 2060] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1
[0 NVIDIA GeForce RTX 2060] subgroup=32 basic=1 vote=1 ballot=1 shuffle=1
[1 Intel(R) UHD Graphics] queueC=0[1] queueG=0[1] queueT=0[1]
[1 Intel(R) UHD Graphics] bugsbn1=0 bugbilz=0 bugcopc=0 bugihfa=0
[1 Intel(R) UHD Graphics] fp16-p/s/a=1/1/1 int8-p/s/a=1/1/1
[1 Intel(R) UHD Graphics] subgroup=32 basic=1 vote=1 ballot=1 shuffle=1
avs+ [INFO]: 1440x1080 fps 24000/1001 i420p8 frames 0 - 32560 of 32561
raw [INFO]: output file: "E:\_new_out.hevc"
x265 [INFO]: HEVC encoder version 3.5+147+17-e8947f740 [Mod by Patman]
x265 [INFO]: build info [Windows][MSVC 1937][64 bit] 10bit
x265 [INFO]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [INFO]: Main 10 profile, Level-4 (Main tier)
x265 [INFO]: Thread pool created using 12 threads
x265 [INFO]: Slices : 1
x265 [INFO]: frame threads / pool features : 3 / wpp(17 rows)
x265 [INFO]: Coding QT: max CU size, min CU size : 64 / 8
x265 [INFO]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [INFO]: ME / range / subpel / merge : star / 57 / 5 / 5
x265 [INFO]: Keyframe min / max / scenecut / bias : 23 / 250 / 40 / 5.00
x265 [INFO]: Lookahead / bframes / badapt : 80 / 16 / 2
x265 [INFO]: b-pyramid / weightp / weightb : 1 / 1 / 0
x265 [INFO]: References / ref-limit cu / depth : 3 / on / on
x265 [INFO]: AQ: mode / str / qg-size / cu-tree : 3 / 1.0 / 32 / 1
x265 [INFO]: Rate Control / qCompress : CRF-28.0 / 0.60
x265 [INFO]: tools: rd=3 psy-rd=2.00 early-skip rskip mode=2
x265 [INFO]: tools: rskip-edge-threshold=0.02 signhide tmvp b-intra lslices=6
x265 [INFO]: tools: deblock sao
vkAllocateMemory failed -2
vkWaitForFences failed -4
vkAllocateMemory failed -2
vkAllocateMemory failed -2
avs+ [FLAW]: mlrt_ncnn: inference failed occurred while reading frame 0
vkAllocateMemory failed -2
vkQueueSubmit failed -4vkAllocateMemory failed -2
vkQueueSubmit failed -4
vkAllocateMemory failed -2
vkAllocateMemory failed -2
vkQueueSubmit failed -4
vkQueueSubmit failed -4
vkAllocateMemory failed -2
vkAllocateMemory failed -2
vkAllocateMemory failed -2
vkAllocateMemory failed -2
vkQueueSubmit failed -4
encoded 0 frames
madey83 is offline   Reply With Quote
Old 5th December 2023, 11:01   #2795  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,127
Did you update GPU driver to latest ver??
kedautinh12 is offline   Reply With Quote
Old 5th December 2023, 11:05   #2796  |  Link
madey83
Registered User
 
Join Date: Sep 2021
Posts: 136
Quote:
Originally Posted by kedautinh12 View Post
Did you update GPU driver to latest ver??
my current driver for RTX is 545.84


edit:... updated to 546.29 - latest

Last edited by madey83; 5th December 2023 at 11:20.
madey83 is offline   Reply With Quote
Old 5th December 2023, 11:14   #2797  |  Link
madey83
Registered User
 
Join Date: Sep 2021
Posts: 136
i have done test with and without "Prefetch(8,12)"

with staxrip crush, without works but super slow.... CPU utilization is around 4% on each core....


results of the script looks fantastic, but encode with 0,0140 fps is....
madey83 is offline   Reply With Quote
Old 5th December 2023, 11:42   #2798  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,127
Prefetch only affect to CPU, for GPU you need waiting Asd-g port from Vapoursynth ver, it has Cuda and MDL support with better speed
https://github.com/AmusementClub/vs-...ases/tag/v13.2

Last edited by kedautinh12; 6th December 2023 at 09:04.
kedautinh12 is offline   Reply With Quote
Old 5th December 2023, 11:45   #2799  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,127
For Intel CPU or GPU you can try with mlrt_ov
https://github.com/Asd-g/avs-mlrt/bl...n/README_ov.md

Or try with larger num_streams parameters in mlrt_ncnn

Last edited by kedautinh12; 5th December 2023 at 11:49.
kedautinh12 is offline   Reply With Quote
Old 5th December 2023, 11:49   #2800  |  Link
madey83
Registered User
 
Join Date: Sep 2021
Posts: 136
Quote:
Originally Posted by kedautinh12 View Post
Prefetch only affect to CPU, for GPU you need waiting Asd-g port from Vapoursynth ver, it have Cuda and MDL support with better speed
https://github.com/AmusementClub/vs-...ases/tag/v13.2
ok. thx for that.

is there any avisynth related solution to clean this video up that i could use....
madey83 is offline   Reply With Quote
Reply

Tags
avisynth, dogway, filters, hbd, packs

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 17:16.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.