View Full Version : Creating an AviSynth Video Enhancement Script
ingoldie
12th July 2023, 13:02
Please help!
I've been working on creating an AviSynth Video Enhancement Script for years.
So I don't have any time to work and I need financial support.
Originals/Final Results
Original(512x384)
https://mediafire.com/file/ldfiyrscrrv85gz/Original1.avi/file
Result(1024x768)
https://mediafire.com/file/o8py80dvmvefe50/Result20.avi/file
Original2(512x384)
https://mediafire.com/file/24uvlc89yzx6atx/Original2.avi/file
Result2(1024x768)
https://mediafire.com/file/kj713jqysd9tm6i/Result21.avi/file
I can give the scripts to improve and get better result in return for financial support.
Previous Results
https://forum.doom9.org/showthread.php?p=1889042#post1889042
VoodooFX
12th July 2023, 15:32
I can give the scripts to improve and get better result in return for financial support.
Let's refresh memory:
By the way, I don't plan on creating a software to sell.
I'm trying to create a Freeware.
Setsugen no ao
12th July 2023, 17:25
so i don't have any time to work and i need financial support.
...
I can give the scripts to improve and get better result in return for financial support.
💀💀💀💀💀
johnmeyer
12th July 2023, 18:15
Hard to believe it's been six years since you posted those same clips:
AviSynth equivalent of the Super-Resolution technique in Adobe Photoshop? (https://forum.doom9.org/showthread.php?p=1889042#post1889042)
I sincerely hope that you are able to finish the project some day.
As for getting money for your scripts, here's a link to the post VoodoFX referenced:
I'm trying to create a Freeware (https://forum.doom9.org/showthread.php?p=1901566#post1901566)
Those who are new to this might want to start reading that thread at the point linked to, and skim through the next two pages.
goorawin
13th July 2023, 06:40
Unless it is as good or better than this output, I would give the idea away.
https://u.pcloud.link/publink/show?code=XZjYGIVZNPlz5soEUpjbes659XpJWjwwBovy
ingoldie
13th July 2023, 11:55
Unless it is as good or better than this output, I would give the idea away.
https://u.pcloud.link/publink/show?code=XZjYGIVZNPlz5soEUpjbes659XpJWjwwBovy
It is very unnatural. I can get a better unnatural result with AviSynth. My goal is to get a natural result anyway.
ingoldie
13th July 2023, 12:30
For example I can get a better result about denoising. But without loss of detail, I can get a result like this at most.
And one of my goals is to get a better result about denoising without loss of detail.
anton_foy
13th July 2023, 12:38
For example I can get a better result about denoising. But without loss of detail, I can get a result like this at most.
And one of my goals is to get a better result about denoising without loss of detail.
But you have not yet showed it. Goorawin did but yours still has "wobbly/creeping" artifacts. No script, no help. This is "AviSynth Usage" and requires a script to tweak somewhere.
To the next question, please specify what you find unnatural. I find your result unnatural with the wobbly sky after denoising but you maybe have another concept of "unnatural" than others here.
ingoldie
13th July 2023, 12:49
To the next question, please specify what you find unnatural.
The result is like painting. It doesn't seem realistic.
Selur
20th July 2023, 18:34
justForFun: video (https://drive.google.com/file/d/1bQciZoI3quboXa74vrQE2EukWUaMTaOD/view?usp=drive_link), script (https://pastebin.com/7sYfx8DV) using Vapoursynth
ingoldie
27th July 2023, 13:32
Does anybody have any advice on removing noise without loss of detail?
Result(1024x768)
https://www.mediafire.com/file/o8py80dvmvefe50/Result20.avi/file
Result2(1024x768)
https://www.mediafire.com/file/kj713jqysd9tm6i/Result21.avi/file
kedautinh12
27th July 2023, 13:53
Try TemporalDegrain2 or SMDegrain
ingoldie
27th July 2023, 14:29
Try TemporalDegrain2 or SMDegrain
Of course I tried but both didn't work on removing noise without loss of detail?
Any other advice?
anton_foy
27th July 2023, 15:10
Of course I tried but both didn't work on removing noise without loss of detail?
Any other advice?
Clay you can try.
ingoldie
27th July 2023, 15:36
By the way, AviSynth noise removal plugin is already used for the results.
But it's not enough unless the details are lost.
kedautinh12
27th July 2023, 15:57
Of course I tried but both didn't work on removing noise without loss of detail?
Any other advice?
Try with postFFT=4 or 5 in TemporalDegrain2. You need try edit parameters in SMDegrain, don't use default settings
ingoldie
27th July 2023, 16:01
Try with postFFT=4 or 5 in TemporalDegrain2. You need try edit parameters in SMDegrain, don't use default settings
Can you edit all parameters in both TemporalDegrain2 and SMDegrain?
ingoldie
27th July 2023, 16:13
Clay you can try.
This script belongs to you, so you know best how to use it.
Can you edit all parameters in Clay for the results?
anton_foy
28th July 2023, 00:55
This script belongs to you, so you know best how to use it.
Can you edit all parameters in Clay for the results?
Sure go ahead and tweak all you want.
ingoldie
21st September 2023, 13:47
I tried many AviSynth denoisers but can't get a result without loss of detail.
Can I see your effort please?
Result(1024x768)
https://www.mediafire.com/file/o8py80dvmvefe50/Result20.avi/file
Result2(1024x768)
https://www.mediafire.com/file/kj713jqysd9tm6i/Result21.avi/file
kedautinh12
23rd September 2023, 03:05
I tried many AviSynth denoisers but can't get a result without loss of detail.
Can I see your effort please?
Result(1024x768)
https://www.mediafire.com/file/o8py80dvmvefe50/Result20.avi/file
Result2(1024x768)
https://www.mediafire.com/file/kj713jqysd9tm6i/Result21.avi/file
try
SMDegrain(6, 400, prefilter=6, ContraSharp=true, RefineMotion=true, plane=4, limits=false, DCTFlicker=false)
or
TemporalDegrain2(postFFT=4, fftThreads=2)
ingoldie
24th September 2023, 15:31
By the way, the results without denoise filter I use
Result without denoising
https://www.mediafire.com/file/voxhxk97qd7qk2d/Result_without_denoising.avi/file
Result without denoising 2
https://www.mediafire.com/file/dda1us9i0bqn5vw/Result_without_denoising_2.avi/file
ingoldie
25th September 2023, 14:25
What do you think about denoising effort of the results?
Result without denoising
https://www.mediafire.com/file/voxhxk97qd7qk2d/Result_without_denoising.avi/file
Result without denoising 2
https://www.mediafire.com/file/dda1us9i0bqn5vw/Result_without_denoising_2.avi/file
Final Results
Result(1024x768)
https://mediafire.com/file/o8py80dvmvefe50/Result20.avi/file
Result2(1024x768)
https://mediafire.com/file/kj713jqysd9tm6i/Result21.avi/file
EHarlen
26th September 2023, 14:00
What about the results of
SMDegrain(6, 400, prefilter=6, ContraSharp=true, RefineMotion=true, plane=4, limits=false, DCTFlicker=false)
and
TemporalDegrain2(postFFT=4, fftThreads=2)
kedautinh12
26th September 2023, 15:55
With
SMDegrain(6, 400, prefilter=6, ContraSharp=true, RefineMotion=true, plane=4, limits=false, DCTFlicker=false)
clip: https://drive.google.com/file/d/1IGge9etzio2yOvhntGZxB9wRIDiIQGXR/view?usp=drive_link
clip2: https://drive.google.com/file/d/1f6spszp_41yss6K8pMgjWxxVZAHUU3Ha/view?usp=drive_link
With
TemporalDegrain2(postFFT=4, fftThreads=2)
clip: https://drive.google.com/file/d/1q8F6gSwnpn_T1SZsyEn-yDYC6ZWqtjV-/view?usp=drive_link
clip2: https://drive.google.com/file/d/1_BDPVTSKbL6TzyURVnVZO47-K5mOk6V7/view?usp=drive_link
kedautinh12
26th September 2023, 15:58
I wonder why both of you don't try and test. I'm lazy and just suggestions. You need to try before ask someone result :D
ingoldie
29th September 2023, 14:38
With
SMDegrain(6, 400, prefilter=6, ContraSharp=true, RefineMotion=true, plane=4, limits=false, DCTFlicker=false)
clip: https://drive.google.com/file/d/1IGge9etzio2yOvhntGZxB9wRIDiIQGXR/view?usp=drive_link
clip2: https://drive.google.com/file/d/1f6spszp_41yss6K8pMgjWxxVZAHUU3Ha/view?usp=drive_link
With
TemporalDegrain2(postFFT=4, fftThreads=2)
clip: https://drive.google.com/file/d/1q8F6gSwnpn_T1SZsyEn-yDYC6ZWqtjV-/view?usp=drive_link
clip2: https://drive.google.com/file/d/1_BDPVTSKbL6TzyURVnVZO47-K5mOk6V7/view?usp=drive_link
Both are very bad. Detail loss, multiple deformities, etc.
kedautinh12
29th September 2023, 15:52
Both are very bad. Detail loss, multiple deformities, etc.
Can you screenshot where detail lost between original and denoised video? And deformities relate interlaced not noised. Denoised script can't fix interlaced, you need use Deinterlaced script to fix that
ingoldie
30th September 2023, 12:42
Open two files via the same AvsPmod and view them sequentially to see all the difference between "Results without denoising" and denoised results ("SMDegrain Result", "TemporalDegrain2 Result 2")
SMDegrain Result
https://i.ibb.co/b2gwZMc/SMDegrain-Result.png (https://ibb.co/qWMqf3T)
TemporalDegrain2 Result 2
https://i.ibb.co/47tF76S/Temporal-Degrain2-Result-2.png (https://ibb.co/DtW1txM)
There is also a general loss of detail.
kedautinh12
30th September 2023, 12:50
Can you compared with original video???
ingoldie
30th September 2023, 13:23
Here is the Original upscaled(lanczos4resize(1024,768)) to compare with SMDegrain Result
Original (1024,768)
https://www.mediafire.com/file/dvv6knum3wpvh6o/Original_%25281024%252C768%2529.avi/file
SMDegrain Result
https://drive.google.com/file/d/1IGge9etzio2yOvhntGZxB9wRIDiIQGXR/view
As I told open two files via the same AvsPmod and view them sequentially to see all the difference.
kedautinh12
30th September 2023, 13:36
By the way, the results without denoise filter I use
Result without denoising
https://www.mediafire.com/file/voxhxk97qd7qk2d/Result_without_denoising.avi/file
Result without denoising 2
https://www.mediafire.com/file/dda1us9i0bqn5vw/Result_without_denoising_2.avi/file
Compare here, this is sample you share me not sample above
kedautinh12
30th September 2023, 13:51
And can you share me sample before upscale?? I think you need Deinterlaced before upscale to get progressive frame
ingoldie
30th September 2023, 13:56
Do you mean the following files in the first post?
Original(512x384)
https://mediafire.com/file/ldfiyrscrrv85gz/Original1.avi/file
Original2(512x384)
https://mediafire.com/file/24uvlc89yzx6atx/Original2.avi/file
ingoldie
30th September 2023, 13:56
By the way, when I play the following video, deformities occur in the places I marked.
SMDegrain Result
https://drive.google.com/file/d/1IGge9etzio2yOvhntGZxB9wRIDiIQGXR/view
SMDegrain Result
https://i.ibb.co/b2gwZMc/SMDegrain-Result.png (https://ibb.co/qWMqf3T)
ingoldie
30th September 2023, 14:24
When I upscale(lanczos4resize(1024,768)) or zoom 200% the following Original(512x384) files in the second AvsPmod and compare them with the Results without denoising, I can't see any problem except noises.
Original(512x384)
https://mediafire.com/file/ldfiyrscrrv85gz/Original1.avi/file
Original2(512x384)
https://mediafire.com/file/24uvlc89yzx6atx/Original2.avi/file
By the way, the results without denoise filter I use
Result without denoising
https://www.mediafire.com/file/voxhxk97qd7qk2d/Result_without_denoising.avi/file
Result without denoising 2
https://www.mediafire.com/file/dda1us9i0bqn5vw/Result_without_denoising_2.avi/file
If you pay attention, the results look very natural and I don't know how I can remove the noises without loosing this naturalness.
ingoldie
30th September 2023, 15:04
I mean I don't know how I can get a better result compared to the following results.
Result(1024x768)
https://mediafire.com/file/o8py80dvmvefe50/Result20.avi/file
Result2(1024x768)
https://mediafire.com/file/kj713jqysd9tm6i/Result21.avi/file
kedautinh12
30th September 2023, 15:52
By the way, the results without denoise filter I use
Result without denoising
https://www.mediafire.com/file/voxhxk97qd7qk2d/Result_without_denoising.avi/file
Result without denoising 2
https://www.mediafire.com/file/dda1us9i0bqn5vw/Result_without_denoising_2.avi/file
I don't see the difference between your sample without denoised and my script. Your samples were lost details and you blame denoised as the reason for lost detail?? check here:
https://i.imgur.com/4p7fdTY.png
ingoldie
30th September 2023, 16:01
Does the denoised frame belong to result of
SMDegrain(6, 400, prefilter=6, ContraSharp=true, RefineMotion=true, plane=4, limits=false, DCTFlicker=false)
or
TemporalDegrain2(postFFT=4, fftThreads=2)
kedautinh12
30th September 2023, 16:11
SMDegrain(6, 400, prefilter=6, ContraSharp=true, RefineMotion=true, plane=4, limits=false, DCTFlicker=false)
ingoldie
30th September 2023, 16:15
Can you send both frames?
kedautinh12
30th September 2023, 16:29
Do you mean the following files in the first post?
You don't need to denoised if you use a deinterlaced filter before upscale
Scripts I used with original sample before upscale
tfm(cthresh=10)
lanczos4resize(1024,768)
https://i.imgur.com/auRoFSw.png
kedautinh12
30th September 2023, 16:31
Can you send both frames?
I compare between frame 2 for the image
ingoldie
30th September 2023, 16:34
Have you tried to open two files via the same AvsPmod and view them sequentially(one by one, not side by side but on top of each other) to see all the difference between "Results without denoising" and denoised results ("SMDegrain Result", "TemporalDegrain2 Result 2")
kedautinh12
30th September 2023, 16:51
Have you tried to open two files via the same AvsPmod and view them sequentially(one by one, not side by side but on top of each other) to see all the difference between "Results without denoising" and denoised results ("SMDegrain Result", "TemporalDegrain2 Result 2")
As I told deformities cause video to be interlaced, you need to use deinterlaced filters before upscaling. Use my scripts with original video to fix that:
tfm(cthresh=10) # deinterlaced before upscale
lanczos4resize(1024,768)
ex_unsharp(0.3,Fc=width()/1.5,safe=true) # Remove some of the dreamy look
ex_unsharp(1.0,Fc=width()*2.0,safe=true) # Extra fine sharpness
kedautinh12
30th September 2023, 17:20
I think we need to denoise before sharpening so I think this script is better for original1:
converttoyuv420
tfm(cthresh=10) # deinterlaced before upscale
lanczos4resize(1024,768)
TemporalDegrain2(postFFT=4, ppSCD1=1, thSCD2=20, fftThreads=2) # denoised
ex_unsharp(0.3,Fc=width()/1.5,safe=true) # Remove some of the dreamy look
ex_unsharp(1.0,Fc=width()*2.0,safe=true) # Extra fine sharpness
Video: https://drive.google.com/file/d/1c3t4IRnCBe_ZVsnTWronbAVBknnZBskZ/view?usp=drive_link
kedautinh12
30th September 2023, 17:44
With original2, I think we can use this script for a good result:
converttoyuv420
tfm(cthresh=10) # deinterlaced before upscale
lanczos4resize(1024,768)
YAHR3() # dehaloing
TemporalDegrain2(postFFT=4, fftThreads=2) # denoised
ex_unsharp(0.3,Fc=width()/1.5,safe=true) # Remove some of the dreamy look
ex_unsharp(1.0,Fc=width()*2.0,safe=true) # Extra fine sharpness
Video: https://drive.google.com/file/d/19v88z3Q5wHUm-BQKU_3dirDDvhwx-twy/view?usp=sharing
anton_foy
1st October 2023, 01:14
With original2, I think we can use this script for a good result:
tfm(cthresh=10) # deinterlaced before upscale
lanczos4resize(1024,768)
YAHR3() # dehaloing
TemporalDegrain2(postFFT=4, fftThreads=2) # denoised
ex_unsharp(0.3,Fc=width()/1.5,safe=true) # Remove some of the dreamy look
ex_unsharp(1.0,Fc=width()*2.0,safe=true) # Extra fine sharpness
Video: https://drive.google.com/file/d/19v88z3Q5wHUm-BQKU_3dirDDvhwx-twy/view?usp=sharing
Looking very fresh! Good job!
kedautinh12
1st October 2023, 06:05
I mean I don't know how I can get a better result compared to the following results.
After comparing, your result is dirty than my script but the details look the same
https://i.imgur.com/SmWhCvP.png
EHarlen
1st October 2023, 12:18
I can't find YAHR3 and ex_unsharp
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.