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 8th May 2023, 21:51   #21  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
mcabel,
check out Groucho2004 Avisynth Info Tool [check your avisynth installation for problems]
https://forum.doom9.org/showthread.php?t=173259
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 9th May 2023, 01:46   #22  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
I think you lack some vc++ ver, try with full ver
https://github.com/abbodi1406/vcredist
And fftw3 latest ver (faster than 3.3.5 homepage)
https://forum.doom9.org/showthread.p...37#post1965537
kedautinh12 is offline   Reply With Quote
Old 9th May 2023, 01:59   #23  |  Link
mcabel
Registered User
 
Join Date: Jan 2017
Posts: 13
Quote:
Originally Posted by DTL View Post
Try
Code:
#stab_reference= source1.crop(20,20,-20,-20).colorYUV(autogain=true).crop(est_left,est_top,-est_right,-est_bottom)

#mdata=DePanEstimate(stab_reference,trust=trust_value,dxmax=maxstabH,dymax=maxstabV)
#stab=DePanStabilize(source1,data=mdata,cutoff=cutoff_value,dxmax=maxstabH,dymax=maxstabV,method=0,mirror=15).deflicker()
stab2= source1.crop(CLeft,CTop,-CRight,-CBottom)
#stab3=DePanStabilize(source1,data=mdata,cutoff=cutoff_value,dxmax=maxstabH,dymax=maxstabV,method=0,info=true)


#WS= width(stab)
#HS= height(stab)
#stab4= stab3.addborders(10,10,10,10,$B1B1B1).Lanczos4Resize(WS,HS)
#stab5= Lanczos4Resize(stab2,W,H).sharpen(0.5)
Thanks, I commented this(and a few other things) and finally made it run! (noticeably sharper as well!)


The author, Fred, seems to have several results for comparison, so I'm not sure how to send one out for encoding purposes.

Also about this, I don't see a prefetch() in the script, do I have to add one (where?)

Quote:
After source load and before final Prefetch().
Code:
Current AVS working example is like
GeneralConvolution(0, "
-1 -2 -2 -2 -1
-2 -2 -3 -2 -2
-2 -3 70 -3 -2
-2 -2 -3 -2 -2
-1 -2 -2 -2 -1", auto=true, luma=true, chroma=false)

Screenshot of megui (gui/encoder for avisynth) and the script renamed to .txt
https://ibb.co/gVyV90b
Attached Files
File Type: txt 01_A_Film_Restoring_Frame_Interpolation - Copy.txt (11.7 KB, 17 views)
mcabel is offline   Reply With Quote
Old 9th May 2023, 04:12   #24  |  Link
TDS
Formally known as .......
 
TDS's Avatar
 
Join Date: Sep 2021
Location: Down Under.
Posts: 965
Quote:
Originally Posted by mcabel View Post

Screenshot of megui (gui/encoder for avisynth) and the script renamed to .txt
https://ibb.co/gVyV90b
This is a noobie mistake, attaching "attachments" like this can take forever, if ever, to be approved, so no one gets to see them.

You need to use a site like "Imgur" or similar to do this.
__________________
Long term RipBot264 user.

RipBot264 modded builds..
TDS is offline   Reply With Quote
Old 9th May 2023, 05:06   #25  |  Link
mcabel
Registered User
 
Join Date: Jan 2017
Posts: 13
Quote:
Originally Posted by TDS View Post
This is a noobie mistake, attaching "attachments" like this can take forever, if ever, to be approved, so no one gets to see them.

You need to use a site like "Imgur" or similar to do this.
Ah I see, thanks letting me know!

Ill use paste bin for the code and imgur for the image:

https://pastebin.com/t1FwjUtP

https://imgur.com/a/uQ9rW13

PD: after my previous comment I read that to send a video for encode I can use "return result" at the end of the file, so I did.

The only thing I'm missing (I think) is where to add Prefetch() (what does that do? ) so I can do the GeneralConvolution.
mcabel is offline   Reply With Quote
Old 9th May 2023, 06:06   #26  |  Link
TDS
Formally known as .......
 
TDS's Avatar
 
Join Date: Sep 2021
Location: Down Under.
Posts: 965
Quote:
Originally Posted by mcabel View Post
Ah I see, thanks letting me know!

Ill use paste bin for the code and imgur for the image:

https://pastebin.com/t1FwjUtP

https://imgur.com/a/uQ9rW13

PD: after my previous comment I read that to send a video for encode I can use "return result" at the end of the file, so I did.

The only thing I'm missing (I think) is where to add Prefetch() (what does that do? ) so I can do the GeneralConvolution.
I have to admit, I don't & won't use either MeGUI or AvsPmod !!!

I think that Prefetch() may have to be early in the script...

http://avisynth.nl/index.php/AviSynth%2B#Example

Google might be your best friend.

Good luck.

Just out of curiosity, could you upload a sample of the clip you're trying to "clean up" ??? (MediaFire or similar)
__________________
Long term RipBot264 user.

RipBot264 modded builds..

Last edited by TDS; 9th May 2023 at 06:09.
TDS is offline   Reply With Quote
Old 9th May 2023, 11:27   #27  |  Link
DTL
Registered User
 
Join Date: Jul 2018
Posts: 1,041
"megui (gui/encoder for avisynth) and the script renamed to .txt"

You can not use any gui - you can write scripts in any text editor (free windows Notepad) and run encoding with x26x command line (.bat file also designed in notepad) with .avs input and monitor script output in VirtualDub (x32 and x64 versions for different running environments). Also FAR file manager have text editor and some AVS script highlignt if required.

So typical full working script example is about

Code:
LoadPlugin("ffms2.dll")

FFmpegSource2("myfile.mp4")

GeneralConvolution(0, "
-1 -2 -2 -2 -1
-2 -2 -3 -2 -2
-2 -3 70 -3 -2
-2 -2 -3 -2 -2
-1 -2 -2 -2 -1", auto=true, luma=true, chroma=false)

Prefetch(N) # N is your threads number for best performance - typically number of real cores of CPU
DTL is offline   Reply With Quote
Old 9th May 2023, 13:52   #28  |  Link
videoFred
Registered User
 
videoFred's Avatar
 
Join Date: Dec 2004
Location: Terneuzen, Zeeland, the Netherlands, Europe, Earth, Milky Way,Universe
Posts: 689
Quote:
Originally Posted by mcabel View Post
The author, Fred, seems to have several results for comparison, so I'm not sure how to send one out for encoding purposes.
It is all explained in the included helpfile: you must change the variable "result" like this:

Code:
result="result1"
Or result2, result3 and so on.

Fred.
__________________
About 8mm film:
http://www.super-8.be
Film Transfer Tutorial and example clips:
https://www.youtube.com/watch?v=W4QBsWXKuV8
More Example clips:
http://www.vimeo.com/user678523/videos/sort:newest
videoFred is offline   Reply With Quote
Old 9th May 2023, 14:00   #29  |  Link
videoFred
Registered User
 
videoFred's Avatar
 
Join Date: Dec 2004
Location: Terneuzen, Zeeland, the Netherlands, Europe, Earth, Milky Way,Universe
Posts: 689
Quote:
Originally Posted by mcabel View Post
The only thing I'm missing (I think) is where to add Prefetch() (what does that do? ) so I can do the GeneralConvolution.
Prefetch works only in Avisynth+, it speeds up a script.

Set this at the begin of the script:
Code:
 SetFilterMTMode("DEFAULT_MT_MODE", 2)
And set this at the end of the script:
Code:
Prefetch(2)
But sometimes I get "out of memory" messages when loading this in VirtualDub so I do not use it any more.

Fred.
__________________
About 8mm film:
http://www.super-8.be
Film Transfer Tutorial and example clips:
https://www.youtube.com/watch?v=W4QBsWXKuV8
More Example clips:
http://www.vimeo.com/user678523/videos/sort:newest
videoFred is offline   Reply With Quote
Reply

Tags
avisynth, avspmod, restoration, upscaling

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 19:14.


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