Log in

View Full Version : Creating an AviSynth Video Enhancement Script


Pages : 1 2 3 4 [5]

ingoldie
9th October 2025, 15:47
Maybe you would like to see another sample.

Original(512x384)

https://www.mediafire.com/file/0tz5dlhjtbid6y2/Sample_4.avi/file


Result(1024x768)

https://www.mediafire.com/file/86bsq4xd1808v0c/Result42.avi/file

ingoldie
14th October 2025, 12:56
it gives pretty good results


W=1440
H=1080

orig=LWLibavVideoSource()

edi0=nnedi3_rpow2(orig,rfactor=2, cshift="spline64resize")

edi=nnedi3_rpow2(orig,rfactor=2, cshift="spline64resize")

sr1=SR(orig)

sr1=ConvertToYUY2(sr1)

yuy2=ConvertToYUY2(orig)

sr2=SR(yuy2)

rev=Reverse(orig)

sr1r=SR(rev)

sr1r=Reverse(sr1r)

sr1r=ConvertToYUY2(sr1r)

yuy2rev=ConvertToYUY2(rev)

sr2r=SR(yuy2rev)

sr2r=Reverse(sr2r)

s64=Spline64Resize(orig,width(sr2r),height(sr2r))

s64=ConvertToYUY2(s64)

edi=ConvertToYUY2(edi0)

sr=Average(sr1,0.25,sr2,0.25,sr1r,0.25,sr2r,0.25)

q1=QTGMC(edi,Preset="draft",Edimode="EEDI2",InputType=3,TR0=1,TR1=1,ProgSADMask=0,Blocksize=8)

q2=QTGMC(edi,Preset="draft", Edimode="EEDI2",TR0=1,TR1=1,Blocksize=8)

q2=SelectEven(q2)

edi=Median(edi,q1,q2)

edi=ConvertToRGB24(edi)

s64=ConvertToRGB24(s64)

sr=ConvertToRGB24(sr)

sr=Average(sr,2,s64,-2,edi,1)

sr=ConvertToRGB24(sr)

edicd=ConvertToYUY2(edi0)

edicd=ConvertToYV12(edicd)

edicd=ConvertToRGB24(edicd)

edi0=ConvertToRGB24(edi0)

Average(sr,1,edi0,1,edicd,-1)

nnedi3_rpow2(rfactor=2, cshift="spline64resize")

Spline64Resize(W,H)

Can you provide those pretty good results with their originals?

Can you copy this provided script and see if you like those pretty good results?

Nothing impressive. Not even denoising.

Original2(512x384)

https://www.mediafire.com/file/4as22g8dfb6z973/Original_Sample_2.avi/file

Result(1440x1080)

https://www.mediafire.com/file/u8953m2n3vd5tp9/Result43.avi/file

Selur
14th October 2025, 15:50
https://www.mediafire.com/file/yblaftkdf0gvi8o/filtered.mkv/file too strong?

ingoldie
27th February 2026, 15:28
Much better natural/realistic results.

Original(512x384)

https://www.mediafire.com/file/lj4ga7pja7vkqd4/Sample_2.avi/file

Result(1024x768)

https://www.mediafire.com/file/1h2f2f2gk314lhq/Result44.avi/file


Original2(512x384)

https://www.mediafire.com/file/4n4hfa32m3f2x5h/Sample.avi/file

Result(1024x768)

https://www.mediafire.com/file/xbpms4f8e65qjlu/Result45.avi/file


Original3(512x384)

https://www.mediafire.com/file/gxxrc0w5yp5tgy6/Sample_3.avi/file

Result(1024x768)

https://www.mediafire.com/file/wi8fph7vj78ccik/Result46.avi/file

Previous Results

https://forum.doom9.org/showthread.php?p=2023157#post2023157

ingoldie
7th March 2026, 14:13
Much better dehaloing and denoising without detail loss. Looks so natural/realistic.

Original(512x384)

https://www.mediafire.com/file/0tz5dlhjtbid6y2/Sample_4.avi/file


Result(1024x768)

https://www.mediafire.com/file/yppohu9rdy354ps/Result47.avi/file


Previous Result

https://forum.doom9.org/showthread.php?p=2023452#post2023452

ingoldie
8th March 2026, 15:44
My PC doesn't meet requirements for Topaz Enhance last version.

Could you please post the enhanced results using that or any other software?

I still don't know if there's any software that will provide better results than mine.

Selur
17th March 2026, 17:54
"or any other software" => Sample_4 (https://www.mediafire.com/file/p7s12dhefzzy2jv/Sample_4_1024x.mkv/file) and Sample_4_1024x_with_noise

ingoldie
24th March 2026, 16:27
It looks very unnatural and amorphous. What software did you use?

Selur
24th March 2026, 16:30
just something I had lying around
(doesn't really seem more unnatural than your last results)

ingoldie
24th March 2026, 16:32
(doesn't really seem more unnatural than your last results)

Are you serious?

ingoldie
24th March 2026, 16:43
If you can help me earn money in some way, I can release the codes.

Selur
24th March 2026, 19:36
Can you explain how "Result47.avi" (139 frames) has more frames than "Sample 4.avi" (137 frames) ?
Doesn't seem like your sources match your restored versions,...

wonkey_monkey
26th March 2026, 01:13
If you can help me earn money in some way, I can release the codes.

It seems you've spent 10 or so years to achieve a passable but broadly replicable* result on a low-bitrate pirated XVID of a 40-year-old TV show (which has, in the intervening time, been remastered in HD). That just isn't something anyone's going to pay for.

* Left: mine (took a few minutes of messing around with filters), right: yours (https://i.ibb.co/QjhPgQYY/image.png)

VoodooFX
26th March 2026, 20:31
@wonkey_monkey
How much is your script? :D

wonkey_monkey
27th March 2026, 11:14
For you Voodoo, call it a fiver.

ingoldie
29th March 2026, 14:47
Can you explain how "Result47.avi" (139 frames) has more frames than "Sample 4.avi" (137 frames) ?
Doesn't seem like your sources match your restored versions,...

I used SolveigMM Video Splitter to extract Sample 4.avi from the full video. It might have gotten rid of 2 frames.
But I used AviSynth trim() function for Result47.avi.

ingoldie
29th March 2026, 16:10
* Left: mine (took a few minutes of messing around with filters), right: yours (https://i.ibb.co/QjhPgQYY/image.png)

Can you provide the video?

VideoMilk78
2nd April 2026, 02:10
I still don't know if there's any software that will provide better results than mine.

I think there's plenty lol

ingoldie
3rd April 2026, 13:59
I think there's plenty lol

There are many answers, but no proof.

Can you name a software and provide an enhanced result?

Selur
3rd April 2026, 15:12
It might have gotten rid of 2 frames.
.. and might have reencoded parts of it since you didn't cut on key frames and thus lowered the quality of the source you present others as source, when it is not the source,...
Who knows what you did?
In my opinion, you should redo your tests and make sure your result is based on the source that you represented here, otherwise all your results do not really seem trustworthy.
side note: your results seem oversampled, at least on a larger screen I prefer a smoother variant https://www.mediafire.com/file/fmruyoezyc2l563/not_so_oversharpend.mp4/file, sharper (https://www.mediafire.com/file/6x77ec90xj46eav/sharp.mp4/file) still not as oversharpened as your result.

ingoldie
9th May 2026, 15:26
What do you think about YouTube's Super Resolution feature for video enhancement?

ingoldie
10th May 2026, 13:59
YouTube Super Resolution (1080p)

https://www.youtube.com/watch?v=63nfV47oDhU&list=RD63nfV47oDhU&start_radio=1

Original (1080p)

https://www.youtube.com/watch?v=ZfQndu0y1hQ&list=RDZfQndu0y1hQ&start_radio=1

johnmeyer
10th May 2026, 18:34
Even by the standards of this guy, this is pretty strange. A still image with music???

wonkey_monkey
10th May 2026, 23:28
I suppose it demonstrates YouTube's super resolution as well as any other random clip. But we have no idea what resolution the upsampled one was, originally. Was it just 480p (the highest non-super resolution available) or was it higher? Who knows.

And the same with the "native" 1080p one. It's not from the same image as colour and geometry is different.

So, in short... we can't really tell anything from that.

ingoldie
12th May 2026, 14:52
Another Example

https://www.youtube.com/watch?v=pO1HC8pHZw0&list=RDpO1HC8pHZw0&start_radio=1

ingoldie
13th May 2026, 14:26
I examined it closely and I think this is what I'm looking for.
Is there an equivalent AviSynth script or any other software?

ingoldie
8th June 2026, 17:17
Better Results

Original(512x384)

https://www.mediafire.com/file/lj4ga7pja7vkqd4/Sample_2.avi/file

Result(1024x768)

https://www.mediafire.com/file/g6qct3k0v3ujojk/Result48.avi/file


Original(512x384)

https://www.mediafire.com/file/4n4hfa32m3f2x5h/Sample.avi/file

Result(1024x768)

https://www.mediafire.com/file/42qphoazngith5h/Result49.avi/file


Original(512x384)

https://www.mediafire.com/file/gxxrc0w5yp5tgy6/Sample_3.avi/file

Result(1024x768)

https://www.mediafire.com/file/gt3arbnk4bup0ls/Result50.avi/file

Previous Results

https://forum.doom9.org/showthread.php?p=2028745#post2028745


Original(512x384)

https://www.mediafire.com/file/0tz5dlhjtbid6y2/Sample_4.avi/file

Result(1024x768)

https://www.mediafire.com/file/pey2m24pj5o9nmw/Result51.avi/file


Previous Result

https://forum.doom9.org/showthread.php?p=2029042#post2029042

ingoldie
9th June 2026, 17:50
I think I've completed my video enhancement script.

Does anyone know of any companies that need video enhancement service?

ingoldie
11th June 2026, 14:49
A new sample

https://www.mediafire.com/file/antxve1u3r4nwx7/Video_Enhancement_Script11.avi/file

Original

https://forum.videohelp.com/threads/358043-A-comparison-of-AVIsynth-denoise-filters#post2283228

ingoldie
12th June 2026, 14:36
If you can somehow help me earn just $1000 a month, or give an AviSynth script that produces better video enhancement results than mine, I'll release the code.

wonkey_monkey
12th June 2026, 20:33
There's zero market for Avisynth scripts in general, let alone one that someone has spent years on yet can be broadly matched or bettered in five minutes with modern tools.

Not to mention all your examples seem to be enacted on sources of low quality and dubious legality.

ingoldie
13th June 2026, 14:22
let alone one that someone has spent years on yet can be broadly matched or bettered in five minutes with modern tools.

For example?

wonkey_monkey
13th June 2026, 14:28
I already showed you an example that I spent 5 minutes on and was pretty much indistinguishable from your result. And your latest one is barely differentiable from a bilinear upscale with a bit of (too much, in fact) noise reduction.

ingoldie
13th June 2026, 16:36
I already showed you an example that I spent 5 minutes on and was pretty much indistinguishable from your result. And your latest one is barely differentiable from a bilinear upscale with a bit of (too much, in fact) noise reduction.

I think you're talking about

* Left: mine (took a few minutes of messing around with filters), right: yours (https://i.ibb.co/QjhPgQYY/image.png)

Can you provide the video?

I still don't know if there's any software that will provide better results than mine.

I think there's plenty lol

There are many answers, but no proof.

Can you name a software and provide an enhanced result?

The answers are not convincing.

Columbo
13th June 2026, 18:01
For that specific case I think the ingoldie result looks better. Less auras. E.g., look at the red arrow in the top left and the word WANTED. JMHO

ingoldie
14th June 2026, 13:30
Also looks more natural.

VideoMilk78
18th June 2026, 18:22
For that specific case I think the ingoldie result looks better. Less auras. E.g., look at the red arrow in the top left and the word WANTED. JMHO

This could probably be matched with either something like temporal degrain 2 or maybe even just a little blur

ingoldie
20th June 2026, 16:54
I think I've completed my video enhancement script.

I was wrong.

I am using 2 different denoisers and one of them is fft3dfilter.

I realized it causes an annatural result.

Better Results

Original(512x384)

https://www.mediafire.com/file/lj4ga7pja7vkqd4/Sample_2.avi/file

Result(1024x768)

https://www.mediafire.com/file/g6qct3k0v3ujojk/Result48.avi/file


Original(512x384)

https://www.mediafire.com/file/4n4hfa32m3f2x5h/Sample.avi/file

Result(1024x768)

https://www.mediafire.com/file/42qphoazngith5h/Result49.avi/file




Results without fft3dfilter (look natural but still noisy)

https://www.mediafire.com/file/c7b9fof8nma3tn4/Result52.avi/file


https://www.mediafire.com/file/anx59swt22a6uh4/Result53.avi/file


Can you help me get rid of the noise by using a denoiser instead of fft3dfilter preserving the naturalness?

johnmeyer
20th June 2026, 19:59
fft3dfilter is not a great choice for a denoiser, although it still can be used as a prefilter in some circumstances.

ingoldie
21st June 2026, 13:55
fft3dfilter is not a great choice for a denoiser

Can someone please recommend me a great choice for a denoiser preserving the naturalness.




Results without fft3dfilter (look natural but still noisy)

https://www.mediafire.com/file/c7b9fof8nma3tn4/Result52.avi/file


https://www.mediafire.com/file/anx59swt22a6uh4/Result53.avi/file

VideoMilk78
22nd June 2026, 17:07
Can someone please recommend me a great choice for a denoiser preserving the naturalness.

Can I recommend you give up? Nobody is going to pay anything for an Avisynth script much less $1000 a month. :)