Quantcast Coming Soon: lordsmurf's Avisynth processing guides! - Page 2 - digitalFAQ Forum
Go Back    Forum > Featured > General Discussion

Reply
 
LinkBack Thread Tools
  #21  
04-21-2016, 02:11 AM
latreche34 latreche34 is offline
Free Member
 
Join Date: Dec 2015
Location: USA
Posts: 2,307
Thanked 396 Times in 365 Posts
Quote:
Originally Posted by lordsmurf View Post
I didn't want to do this yet, as it's not tested, and my install guide isn't done.

Attached are (most of) my current plugins from "C:\Program Files (x86)\AviSynth\plugins" on my main system. You need to install Avisynth 2.6 official, and then unzip my plugins into that folder. Yes, overwrite anything if asked.

In theory, anything I say to do will guaranteed work, including anything in my MultiScript.
Thanks for sharing, Pretty handy. And thanks Sanlyn for the help. I will start a separate thread if any problems arise.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #22  
04-22-2016, 09:22 PM
bilbofett bilbofett is offline
Free Member
 
Join Date: Mar 2016
Posts: 58
Thanked 0 Times in 0 Posts
Thanks for the share Lordsmurf!
It's very generous of you!
P.S. Didn't like my Big Mac joke?
brothers Msgohan and especially sanlyn have been doing the heavy lifting for me, very helpful!
Reply With Quote
  #23  
04-22-2016, 10:09 PM
lordsmurf's Avatar
lordsmurf lordsmurf is offline
Site Staff | Video
 
Join Date: Dec 2002
Posts: 11,920
Thanked 2,170 Times in 1,870 Posts
I don't recall a Big Mac joke.

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
  #24  
04-22-2016, 10:46 PM
bilbofett bilbofett is offline
Free Member
 
Join Date: Mar 2016
Posts: 58
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by lordsmurf View Post
I don't recall a Big Mac joke.
Check post #38 in this thread here: Need sage advice: capture cards, TBC, VCRs, pulling hair out!
Reply With Quote
  #25  
04-23-2016, 01:31 AM
lordsmurf's Avatar
lordsmurf lordsmurf is offline
Site Staff | Video
 
Join Date: Dec 2002
Posts: 11,920
Thanked 2,170 Times in 1,870 Posts
Quote:
Originally Posted by bilbofett View Post
Check post #38 in this thread here:
Replied: Need sage advice: capture cards, TBC, VCRs, pulling hair out!

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
  #26  
03-06-2018, 09:15 PM
billct97 billct97 is offline
Premium Member
 
Join Date: Jan 2018
Posts: 40
Thanked 3 Times in 3 Posts
Quote:
Originally Posted by lordsmurf View Post
From now on, I'll be handling the video guides here again. I've been inactive on this front for far too long -- even before my medical episode from 2012 that grounded me for 18+ months (too much work, not enough hobby).

Coming first are my Avisynth processing guides, which I'm working on now.

The primary thing being worked on now is what I called the "MultiScript". It contains the most commonly needed filtering tasks for restoring videotapes and restoring VCDs. This coincides with several personal project, so it'll be perfect. I'm going to consolidate years worth of script into a single script to help others.

And unlike most Avisynth users, who are purists, I only use Avisynth when needed. Some tasks are inferior done in Avisynth, and I'll be pointing those out as well. I don't use multiple programs because I like to -- I use multiple program because I HAVE to! Sometimes VirtualDub, Adobe Premiere Pro and even TMPGEnc Plus 2.5 (shocking, I know!) are better choices -- color corrections, especially.

I'm nowhere near done EDIT -- Now much farther along.

If you want to take a quick peak, here's where I'm at so far:

Code:
### Avisynth MultiScript from lordsmurf @ digitalFAQ.com - see site for usage guides

### Load a file
# SetMemoryMax(512) # multithreaded Avisynth only - before source loaded p1
# SetMTMode(3) # multithreaded Avisynth only - before source loaded p2
# AVISource("c:\.avi")
# ffvideosource("c:\.m2v")
# DirectShowSource("c:\.wmv")
# ImageSource("c:\.jpg") 
# SetMTMode(2)  # multithreaded Avisynth only - after source loaded

### / Load ----------------------------------------------------------------------------------------

ConvertToYUY2 # script below this line requires YUY2
# ConvertToYUY2(interlaced=true) # alternative that specifies interlacing

### Remove chroma errors
# Cnr2("xoo",4,2,64) # remove chroma banding noise, wide UV setting
# ChromaShift(C=2, L=-8) # align chroma over luma

### YUY2 color corrections
# ColorYUV(autowhite=true) # auto white balance

### Remove VHS magnetic dropouts (bad heads, "comets")
# DePulse(h=100, l=0, d=15, debug=false) # white -min
# DePulse(h=100, l=0, d=10, debug=false) # white
# DePulse(h=70, l=0, d=15, debug=false) # white -max
# DePulse(h=0, l=255, d=5, debug=false) # black

### / YUY2 ----------------------------------------------------------------------------------------

ConvertToYV12 # script below this line requires YV12

### YV12 color corrections
# MergeChroma(aWarpSharp(depth=10), aWarpSharp(depth=20)) # better white balance than ColorYUV(autowhite), use with overlay line below
# Overlay(last, ColorYUV(off_y=-8, off_u=9, off_v=-2), 0, 0, GreyScale(last).ColorYUV(cont_y=30)) # use with mergechroma line above

### Framerates 
# AssumeFPS(25) # change NTSC to PAL

### VHS stabilizer
# StabMod() # lordsmurf PRE-deinterlace VHS jitter stab() alternative

### Deinterlacers
# ---- method 1 ----
# AssumeTFF() # optional, BFF for DV source
# QTGMC(Preset="Slower", SourceMatch=3, Lossless=2, MatchEnhance=0.75, TR2=1, Sharpness=0.1) # best but only 2fps!
# SelectEven()
# SelectOdd() # alternative
# ---- method 2 ----
# AssumeTFF() # optional, BFF for DV source
# QTGMC(Preset="Slow") # best deinterlacer - balances speed + quality
# SelectEven() # 
# SelectOdd() # alternative
# ---- method 3 ----
# yadifmod(order=1, mode=0, edeint=NNEDI2(field=1)) # faster yadif deinterlace
# ---- method 4 ----
# SeparateFields # basic drop-field deinterlace, useful for some restorations
# SelectOdd  
# SelectEven # alternative

### Stabilizers
# ---- method 1 ----
# Stab()
# ---- method 2 ----
# StabMod() # lordsmurf POST-deinterlace VHS jitter stab() alternative
# StabMod() # stackable for bad VHS!
# ---- method 3 ----
# mdata = DePanEstimate(dxmax=0) # stab() alternative
# DePanStabilize(data=mdata, cutoff=0.5, damping=0.5, mirror=15, blur=30, method=1) # must use with mdata

### Antialiasing + compensation for deinterlace
# santiag(strh=2,strv=2) # antialiasing 
# santiag(strh=4,strv=4) # antialiasing alternate for toons
# AAA(chroma=true) # antialiasing for toons - use with santiag
# AwarpSharp(depth=10)  
# Toon(strength=1.0)

### Common NR
# Deblock() # remove macroblocks
# Deen() # remove edge noise

### Semi-common NR
# DeGrainMedian(limitY=15,limitUV=7,mode=0, norow=true)
# TTempSmooth(maxr=4, strength=4, lthresh=5, cthresh=25, lmdiff=10, cmdiff=15)
# TTempSmooth(maxr=6, strength=4, lthresh=20, cthresh=25, lmdiff=10, cmdiff=15) # jagabo harsh NR
# TTempSmooth(maxr=5, strength=4, lthresh=16, cthresh=4) # further remove anime/toon ghosting post-TMPGEnc

### Less common NR
# RemoveGrain(mode=2, modeU=2, modeV=2) 
# DFTTest() 
# LSFMod(strength=50)
# FFT3DFilter(sigma=4, bt=3, plane=3) 
# SRestore(FRate=29.97) # remove frame blending
# chubbyrain2(th=1, radius=15) # remove moire rainbows
# MosquitoNR(strength=16, restore=64, radius=2) # remove MPEG compression noise from toons

### Sharpeners
# Sharpen(0.5)

### YV12 Color correction
# ColorYUV(levels="PC->TV") # undo overly contrasted values
# ColorYUV(off_y=6, gain_y=-12) # lighten gamma
# ColorYUV(cont_u=-60, cont_v=-160) # increase saturation
# Levels(0,1.000,250,2,255,true) 

### / YV12 ----------------------------------------------------------------------------------------

### Final resizers for destination format
# spline36resize(640,480) # resize to 4:3 video
# spline36resize(720,480) # resize to 4:3 DVD
# spline36resize(352,480) # resize to 4:3 Half D1 DVD

### Typical VHS overscan crop
# Crop(8,8,-22,-10) # use both lines
# AddBorders(15, 9, 15, 9) # use both lines

### Less common crop/pad with final resize from non-VHS (VCD,etc)
# spline36resize(640,480) 
# Crop(4,4,632,472) # remove 4 overscan pixels
### Crop(16,16,-34,-16)
# spline36resize(720,480)
# AddBorders(16, 12, 16, 12) # add 4x3 overscan borders to cropped VCD
# spline36resize(720,480)

ConvertToYUY2 # assumes VirtualDub or MPEG encoder is next in video workflow chain
# SetMTMode(1) # multithreaded Avisynth only - end of script p1
# GetMTMode(false) > 0 ? distributor() : last # multithreaded Avisynth only - end of script p2

### /end MultiScript
____________

I'll be explaining what everything means, in a series of guides. Feel free to play with it now. And if you have questions, I'll answer them if easy.

Note: Everything is commented out. Uncomment what's needed.

I know a lot of people here are waiting for my help with various issues, and I'm getting to them as quickly as I can. Other site staff are busy on other things right now (hosting topics, new site features, in addition to our customers), so it's mostly just me for now. And I'm going to have some fun with the video topics this year!
LS, is this still your day to day working script or have there been updates you would be willing to share?
Reply With Quote
  #27  
03-08-2018, 11:26 PM
lordsmurf's Avatar
lordsmurf lordsmurf is offline
Site Staff | Video
 
Join Date: Dec 2002
Posts: 11,920
Thanked 2,170 Times in 1,870 Posts
My day-to-day script got complicated when I threw Avisynth+ x64 into the mix.

There are updates, quite a few actually, but I'm not willing to share those just yet. All it'd do is confuse you, and create more questions. Long-term, I'd spend more time answering those questions than just spending it working on the scripts (and FAQ/guide, glossary entries, etc). Plus I think laying it out in a guide would be better, as it'll be sequential. That matters more than most people realize.

I'll do that in April/May.

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
The following users thank lordsmurf for this useful post: dinkleberg (03-12-2018)
  #28  
03-27-2018, 12:35 PM
RockandRoller70 RockandRoller70 is offline
Free Member
 
Join Date: Feb 2018
Posts: 24
Thanked 3 Times in 2 Posts
Whenever I try to use Stab() or StabMod() I get the following error:

"there is no function named 'Repair'"

I am using the plugins provided by lordsmurf and even added in repair.dll after doing some research but to no avail.

SetMTMode is also not being accepted.

Hmmm... wonder where I'm going wrong.

Last edited by RockandRoller70; 03-27-2018 at 12:47 PM.
Reply With Quote
  #29  
03-27-2018, 04:05 PM
RockandRoller70 RockandRoller70 is offline
Free Member
 
Join Date: Feb 2018
Posts: 24
Thanked 3 Times in 2 Posts
Nevermind, I think I have things working now. Love the great resources on this site!
Reply With Quote
  #30  
04-17-2018, 11:43 AM
MelnickStudios MelnickStudios is offline
Free Member
 
Join Date: Mar 2017
Posts: 6
Thanked 0 Times in 0 Posts
Please if you can help me I'd appreciate it. To date I've been using Vdub 32 & avisynth MT 32 and am trying to update to 64-bit MT.

I'm trying to deinterlace using QTGMC, Virtualdub2 64-bit & Avisynth+ MT 64-bit.


I'm not sure what the issue is with my script or if it's my install - or both!

I just installed:
Virtualdub2 41585
Avisynth+ r2664


I put libfftw3f-3.dll & libfftw3f-3.lll renamed as FFTW3.dll in C:\Windows\System32


Plugins Directory:
C:\Program Files (x86)\AviSynth+\plugins64+

Plugins: (all latest updated versions)
AddGrainC.dll
AnimeIVTCmod_v2.20.avsi
colors_rgb.avsi
colors_rgb.txt
ConvertStacked.dll
DePan.dll
DePanEstimate.dll
dfttest.dll (this is from the avx2 folder)
DirectShow5ource.dll
EEDI2.dll
eedi3.dll
fft3dfilter.dll
lmageSeq.dll
KNLMeansCL.dll
masktools2.dll
mvtools2.dll
nnedi3.dll
PlanarTools.dll
QTGMC.avsi
RgTools.dll
Shibatch.dll
SMDegrain_v3.l.2.93s.avsi
TDeinterlace.dll
TimeStretch.dll
VDubFilter.dll
yadifmod2.dll
yadifmod2_avx2.dll


VirtualDub Error
Avisynth open failure:
System exception - Illegal Instruction
(C:/Program Files (x86)/Avisynth+/plugins64+/QTGMC.avsi, line 862)
(C:/Program Files (x86)/Avisynth+/plugins64+/QTGMC.avsi, line 620)
(D:\Video Transfers\File001.avs, line 6)

Script:

SetMemoryMax(1024)
SetFilterMTMode("DEFAULT_MT_MODE", 2)
AVISource("D:\Video Transfers\File001.avi")
ConvertToYV12()
AssumeTFF()
QTGMC(Preset="Slower", SourceMatch=3, Lossless=2, MatchEnhance=0.75, TR2=1, Sharpness=0.1)
ConvertToYUY2()
Prefetch(4)

Any suggestions to make this work would be greatly appreciated! Thanks!
Reply With Quote
  #31  
04-17-2018, 11:56 AM
hodgey hodgey is online now
Free Member
 
Join Date: Dec 2017
Location: Norway
Posts: 1,401
Thanked 383 Times in 324 Posts
Quote:
System exception - Illegal Instruction
What processor do you have? It loos like one of the plugins is using instructions that your processor does not support (maybe AVX2?).
From the line in the QTGMC script it stops on (if it's the same version that I have at least), it looks like it could be caused by either yadifmod or removegrain.

I'm using avs+ 64-bit with qtgmc myself, so I know it's doable.
Reply With Quote
  #32  
04-17-2018, 12:01 PM
MelnickStudios MelnickStudios is offline
Free Member
 
Join Date: Mar 2017
Posts: 6
Thanked 0 Times in 0 Posts
My processor is:
Intel Core i7-3930K @ 3.20 GHZ
The version of QTGMC is: 3.357

Is there a compatibility issue you know of?

Thanks for your help.
Reply With Quote
  #33  
04-17-2018, 12:07 PM
hodgey hodgey is online now
Free Member
 
Join Date: Dec 2017
Location: Norway
Posts: 1,401
Thanked 383 Times in 324 Posts
Ah, yeah that is an older processor so it doesn't support AVX2 (which was introduced in the next generation of intel processors).
Youl will need the non-AVX2 versions of the libraries then. (i.e delete yadifmod_avx2.dll and don't use the avx2 version of libfftw3f-3.dll. (Also I don't think they need to be renamed either.)
Reply With Quote
  #34  
04-17-2018, 02:08 PM
MelnickStudios MelnickStudios is offline
Free Member
 
Join Date: Mar 2017
Posts: 6
Thanked 0 Times in 0 Posts
I'm still getting the same error. Maybe it's my code?

Here's what I changed:
  • I switched dfttest.dll from the avx2 one to the avx one
  • I deleted yadifmod_avx2.dll

I'm not quite sure what to do about ensuring I am using the correct install procedure for FFTW3, I just followed these instructions from the QTGMC wiki page:

"Dfttest, FFT3DFilter and MVTools2 need the FFTW3 library (windows builds). On a 64-bit Windows OS, extract the 32-bit libfftw3f-3.dll. Make a copy of it and rename it as "FFTW3.dll". Place the files "libfftw3f-3.dll" and "FFTW3.dll" in the SysWow64 folder.

If you want to use the 64-bit libfftw3f-3.dll versions then extract the 64-bit libfftw3f-3.dll. Make a copy of it and rename it as "FFTW3.dll". Place the files "libfftw3f-3.dll" and "FFTW3.dll" in the System32 folder."

I used the 64 bit version of libfftw3f-3.dll and made the FFTW3.dll copy as well. Should I be using the 32 bit version? Which one is not avx2?
Reply With Quote
  #35  
04-17-2018, 02:35 PM
MelnickStudios MelnickStudios is offline
Free Member
 
Join Date: Mar 2017
Posts: 6
Thanked 0 Times in 0 Posts
The Script I used works only in Ultra Fast mode.
Reply With Quote
  #36  
04-17-2018, 03:45 PM
hodgey hodgey is online now
Free Member
 
Join Date: Dec 2017
Location: Norway
Posts: 1,401
Thanked 383 Times in 324 Posts
ah sorry I meant dfftest, not libfftw3f. That one should be fine.
If it works in ultra fast mode it's probably NNEEDI3 you have the wrong version of (as it's use is replaced with yadifmod in that preset). If you got the one linked on the avisynth wiki, there are several dlls in the download. You will want the one that's in the "Release_W7_AVX" folder (NOT AVX2). (The two other (non-AVX) versions will work as well but the AVX one will probably be the fastest one.)
Reply With Quote
  #37  
04-17-2018, 03:58 PM
MelnickStudios MelnickStudios is offline
Free Member
 
Join Date: Mar 2017
Posts: 6
Thanked 0 Times in 0 Posts
You solved my issue! I was using the avx2 version of nnedi3 instead of avx. Thank you very much! It's fine now.

As a side point, am I correct that it's no longer necessary to convert yuy2 to yv12 before QTGMC and then back to yuy2 after?

I'm basically capturing uncompressed AVI and saving to avi as PicVideo MJPEG.

Here's my current code, how does it look:

SetMemoryMax(1024)
SetFilterMTMode("DEFAULT_MT_MODE", 2)
AVISource("D:\Video Transfers\File001.avi")
#ConvertToYV12()
AssumeTFF()
QTGMC(Preset="Very Slow", SourceMatch=3, Lossless=2, MatchEnhance=0.75, TR2=1, Sharpness=0.1)
#ConvertToYUY2()
Prefetch(6)
Reply With Quote
  #38  
04-17-2018, 05:04 PM
hodgey hodgey is online now
Free Member
 
Join Date: Dec 2017
Location: Norway
Posts: 1,401
Thanked 383 Times in 324 Posts
Yeah it should work with yuy2.
Reply With Quote
  #39  
07-20-2018, 09:50 AM
Mejnour Mejnour is offline
Free Member
 
Join Date: Dec 2011
Posts: 275
Thanked 12 Times in 12 Posts
Lordsmurf is right no satisfying Avisynth guide available so far.
Greatly waiting for his version
Reply With Quote
  #40  
10-17-2018, 08:25 PM
bar72 bar72 is offline
Free Member
 
Join Date: Oct 2018
Posts: 10
Thanked 4 Times in 4 Posts
Just spent around a week trying to get my head around avisynth before I capture anything. noticing that certain calls require certain versions of .dll or I get errors so your template and plugin pack are greatly appreciated, lordsmurf
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Good VHS filter guides? (VirtualDub + Avisynth) premiumcapture Restore, Filter, Improve Quality 3 02-25-2014 11:24 AM
Blu-Ray Media review coming soon? via Email or PM Blank Media 1 04-01-2012 10:29 AM
Neat Video plugin that comes with lordsmurf's VirtualDub unclescoob Restore, Filter, Improve Quality 7 08-25-2011 01:17 AM
Make some audio processing guides/tutorials? admin Restore, Filter, Improve Quality 3 11-05-2009 06:08 PM

Thread Tools



 
All times are GMT -5. The time now is 08:38 AM