Had to dowload the newest app again

This forum is for questions and discussion of all the aspects of handling your footage. If you have questions about capturing/ripping footage, AviSynth, or compression/encoding/converting, look here.

Had to dowload the newest app again

Postby OzzieAlThor79 » Tue Feb 16, 2010 9:09 pm

I just upgraded to the newest app and it doesn't seem to come with FastLineDarken.

All the online liks for it seem to be dead. Any equivalent filters I could use (or know where the original can be found)?
Laggan Trek (New!)
What Really happened.
I am always looking to improve if you show me where I can..
User avatar
OzzieAlThor79
 
Joined: 20 Aug 2004
Location: Saint Paul, Minnesota U.S.A.

Re: Had to dowload the newest app again

Postby mirkosp » Tue Feb 16, 2010 10:08 pm

Use FastLineDarkenMOD instead.
Save the code as an .avsi in the plugins folder of avisynth... but perhaps you already know the drill. :P
Image
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: Had to dowload the newest app again

Postby OzzieAlThor79 » Sat Feb 20, 2010 8:01 pm

No clue how to do so. Do I save the script using notepad and then do something?

Any help would be great...
Laggan Trek (New!)
What Really happened.
I am always looking to improve if you show me where I can..
User avatar
OzzieAlThor79
 
Joined: 20 Aug 2004
Location: Saint Paul, Minnesota U.S.A.

Re: Had to dowload the newest app again

Postby Enigma » Sat Feb 20, 2010 8:12 pm

OzzieAlThor79 wrote:No clue how to do so. Do I save the script using notepad and then do something?

Any help would be great...


Save it as a .avsi file (in notepad/AvsP) then save the file in your plugins folder.
User avatar
Enigma
That jolly ol' bastid
 
Joined: 07 Mar 2009
Location: California
Status: Free

Re: Had to dowload the newest app again

Postby OzzieAlThor79 » Sat Feb 20, 2010 10:18 pm

Meaning as a script in AVSP or in notepad then "save as" an AVSI? Because the notepad idea isn't working...
Laggan Trek (New!)
What Really happened.
I am always looking to improve if you show me where I can..
User avatar
OzzieAlThor79
 
Joined: 20 Aug 2004
Location: Saint Paul, Minnesota U.S.A.

Re: Had to dowload the newest app again

Postby Qyot27 » Sat Feb 20, 2010 10:36 pm

Copy what's in the code box:
Code: Select all
#############################
# FastLineDarken 1.3 MT MOD #
#############################
#
# Written by Vectrangle, last update 12 Sept 04
#
#  * requires masktools 1.5.1 -- http://jourdan.madism.org/~manao/
#  * requires yv12 input
#
# Usage is FastLineDarken(strength, luma_cap, threshold, thinning),
#   named parameters are supported eg FastLineDarken(thinning=0)
#
# Note that you must import this avs into your script using import("...\FastLineDarken.avs")
#
# Parameters are:
#  strength (integer)  - Line darkening amount, 0-256. Default 48. Represents the _maximum_ amount
#                        that the luma will be reduced by, weaker lines will be reduced by
#                        proportionately less.
#  luma_cap (integer)  - value from 0 (black) to 255 (white), used to stop the darkening
#                        determination from being 'blinded' by bright pixels, and to stop grey
#                        lines on white backgrounds being darkened. Any pixels brighter than
#                        luma_cap are treated as only being as bright as luma_cap. Lowering
#                        luma_cap tends to reduce line darkening. 255 disables capping. Default 191.
#  threshold (integer) - any pixels that were going to be darkened by an amount less than
#                        threshold will not be touched. setting this to 0 will disable it, setting
#                        it to 4 (default) is recommended, since often a lot of random pixels are
#                        marked for very slight darkening and a threshold of about 4 should fix
#                        them. Note if you set threshold too high, some lines will not be darkened
#  thinning (integer)  - optional line thinning amount, 0-256. Setting this to 0 will disable it,
#                        which is gives a _big_ speed increase. Note that thinning the lines will
#                        inherently darken the remaining pixels in each line a little. Default 24.
#
# Changelog:
#  1.3  - added ability to thin lines, now runs much slower unless thinning=0. Changed the defaults (again)
#  1.2  - huge speed increase using yv12lutxy =)
#       - weird darkening issues gone (they were caused by yv12layer)
#       - show option no longer available due to optimizations. Use subtract() instead
#  1.1  - added luma_cap option
#  1.0  - initial release
#


function FastLineDarkenMOD( clip c, int "strength", int "luma_cap", int "threshold", int "thinning")
{
## parameters ##
str    = string(default(strength, 48) /128.)
lum    = string(default(luma_cap, 191))
thr    = string(default(threshold, 4))
thinning = default(thinning,24)
thn    = string(thinning /16.)

## filtering ##
exin   = c.mt_expand().mt_inpand()
diff    = mt_lutxy(c,exin,yexpr="y "+lum+" < y "+lum+" ? x "+thr+" + > x y "+lum+" < y "+lum+" ? - 0 ? 127 +",uexpr="x",vexpr="x",u=2, v=2)
linemask= mt_lut(diff.mt_inpand(),"x 127 - "+thn+" * 255 +").mt_convolution("1 1 1","1 1 1",y=3,u=0,v=0)
thick    = mt_lutxy(c, exin, yexpr="y "+lum+" < y "+lum+" ? x "+thr+" + > x y "+lum+" < y "+lum+" ? - 0 ? "+str+" * x +",uexpr="x",vexpr="x",u=2, v=2)
thin    = mt_lutxy(c.mt_expand(U=2,V=2),diff,yexpr="x y 127 - "+str+" 1 + * +",u=2, v=2)

return (thinning == 0) ? thick : mt_merge(thin,thick,linemask,y=3,u=2,v=2)
}

Paste it into Notepad, and when you go to save it, select All Files and append .avsi to the end of the filename instead of .txt. There's no reason why that shouldn't work; just make sure you copy the entire contents of the code box, from the very first # sign to the last }.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog
User avatar
Qyot27
Surreptitious fluffy bunny
 
Joined: 30 Aug 2002
Location: St. Pete, FL
Status: Creepin' between the bullfrogs

Re: Had to dowload the newest app again

Postby mirkosp » Sun Feb 21, 2010 3:10 am

Qyot27 wrote:Paste it into Notepad, and when you go to save it, select All Files and append .avsi to the end of the filename instead of .txt. There's no reason why that shouldn't work; just make sure you copy the entire contents of the code box, from the very first # sign to the last }.

Actually there is one reason that should not work: he should also make sure to pick "All the files (*.*)" instead of "Text document (*.txt)" in the save as pulldown menu of notepad's save window. Otherwise, even if he saves as .avs, I think that windows will save the file as .avsi.txt which wouldn't work. :P
Image
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: Had to dowload the newest app again

Postby OzzieAlThor79 » Sun Feb 21, 2010 9:22 am

Ok, I think i know my problem, I don't show the file extension when I look at files. You know, I can't see if something is a .jpeg, .gif, .exe, .avsi (etc) if I just look at the file. I assume I will need that up to do this. How would I adjust my settings to see this long enough to make the change?
Laggan Trek (New!)
What Really happened.
I am always looking to improve if you show me where I can..
User avatar
OzzieAlThor79
 
Joined: 20 Aug 2004
Location: Saint Paul, Minnesota U.S.A.

Re: Had to dowload the newest app again

Postby Scintilla » Sun Feb 21, 2010 4:37 pm

OzzieAlThor79 wrote:Ok, I think i know my problem, I don't show the file extension when I look at files. You know, I can't see if something is a .jpeg, .gif, .exe, .avsi (etc) if I just look at the file. I assume I will need that up to do this. How would I adjust my settings to see this long enough to make the change?

From Windows Explorer, Tools --> Folder Options... and then on the View tab, uncheck "Hide file extensions for known file types".

mirkosp wrote:
Qyot27 wrote:Paste it into Notepad, and when you go to save it, select All Files and append .avsi to the end of the filename instead of .txt. There's no reason why that shouldn't work; just make sure you copy the entire contents of the code box, from the very first # sign to the last }.

Actually there is one reason that should not work: he should also make sure to pick "All the files (*.*)" instead of "Text document (*.txt)" in the save as pulldown menu of notepad's save window. Otherwise, even if he saves as .avs, I think that windows will save the file as .avsi.txt which wouldn't work. :P

Actually, it won't tack on the ".txt" extension if you put the desired filename in quotation marks -- even if you DO have "Text document (*.txt)" selected.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:
User avatar
Scintilla
(for EXTREME)
 
Joined: 31 Mar 2003
Location: New Jersey
Status: Quo

Re: Had to dowload the newest app again

Postby OzzieAlThor79 » Sun Feb 21, 2010 5:42 pm

Yep, that was my issue there.

Here's my script using AVSP:

DirectShowSource("C:\AJBackup\Jim\Converting folder\Gurren Laggan\VTS_06_1.VOB")
Telecide(order=1,guide=0)
Decimate(cycle=5, mode=2)
FastLineDarken(150,100,4,0)
Tweak(bright=3)

It still says: Script error: there is no function named "FastLineDarken" (gl3.avs, line 4)

Now, this is good since I used to get a flat out error box saying there was no "FastLineDarken". where I would normally preview my video in AvsP is where the error is.

I have double checked that I have both my script and file named spelled correctly.
Laggan Trek (New!)
What Really happened.
I am always looking to improve if you show me where I can..
User avatar
OzzieAlThor79
 
Joined: 20 Aug 2004
Location: Saint Paul, Minnesota U.S.A.

Re: Had to dowload the newest app again

Postby Enigma » Sun Feb 21, 2010 6:29 pm

You might wanna change DirectShow Source to MPeg2source if you are working with DVD footage......
User avatar
Enigma
That jolly ol' bastid
 
Joined: 07 Mar 2009
Location: California
Status: Free

Re: Had to dowload the newest app again

Postby Scintilla » Sun Feb 21, 2010 7:44 pm

OzzieAlThor79 wrote:DirectShowSource("C:\AJBackup\Jim\Converting folder\Gurren Laggan\VTS_06_1.VOB")
Telecide(order=1,guide=0)
Decimate(cycle=5, mode=2)
FastLineDarken(150,100,4,0)
Tweak(bright=3)

It still says: Script error: there is no function named "FastLineDarken" (gl3.avs, line 4)

Now, this is good since I used to get a flat out error box saying there was no "FastLineDarken". where I would normally preview my video in AvsP is where the error is.

It's called FastLineDarkenMod now (see the code). Fix that and it ought to work.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:
User avatar
Scintilla
(for EXTREME)
 
Joined: 31 Mar 2003
Location: New Jersey
Status: Quo

Re: Had to dowload the newest app again

Postby Qyot27 » Sun Feb 21, 2010 8:18 pm

mirkosp wrote:
Qyot27 wrote:Paste it into Notepad, and when you go to save it, select All Files and append .avsi to the end of the filename instead of .txt. There's no reason why that shouldn't work; just make sure you copy the entire contents of the code box, from the very first # sign to the last }.

Actually there is one reason that should not work: he should also make sure to pick "All the files (*.*)" instead of "Text document (*.txt)" in the save as pulldown menu of notepad's save window. Otherwise, even if he saves as .avs, I think that windows will save the file as .avsi.txt which wouldn't work. :P

I did say to switch to All Files.

In any case, changing the extension through Windows Explorer would still work if something did go wrong, so long as it's set to show file extensions in the first place. AVS and AVSI are just plain text files anyway (speaking from a mime-type standpoint). The only formatting problem that might arise is if Windows is automatically saving text files in UTF-8 instead of ANSI - AviSynth doesn't support UTF-8. XP doesn't do that, and I don't think Vista does either, but I've not worked with Win7 to know for certain if it does or not.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog
User avatar
Qyot27
Surreptitious fluffy bunny
 
Joined: 30 Aug 2002
Location: St. Pete, FL
Status: Creepin' between the bullfrogs

Re: Had to dowload the newest app again

Postby OzzieAlThor79 » Sun Feb 21, 2010 10:16 pm

Worked. Would converting to YV12 possibly mess up any interlacing I have done? Certain clips I made before didn't have interlacing and those same ones, when I run it through VDM and AvsP, see to have an issue.

Also, When I run things through VDM, now I get a slight rewind-skipping of the footage. Like once every few minutes it will jump backwards a few hundred frames just for a second and then hop back to where it's supposed to be. Is this common with this FastLine thing?

Or is it because AvsP seems to be defaulting to DirectShowSource instead of the mpeg2source that I was using on my previous computer?
Laggan Trek (New!)
What Really happened.
I am always looking to improve if you show me where I can..
User avatar
OzzieAlThor79
 
Joined: 20 Aug 2004
Location: Saint Paul, Minnesota U.S.A.

Re: Had to dowload the newest app again

Postby Qyot27 » Mon Feb 22, 2010 12:20 am

OzzieAlThor79 wrote:Worked. Would converting to YV12 possibly mess up any interlacing I have done? Certain clips I made before didn't have interlacing and those same ones, when I run it through VDM and AvsP, see to have an issue.

Also, When I run things through VDM, now I get a slight rewind-skipping of the footage. Like once every few minutes it will jump backwards a few hundred frames just for a second and then hop back to where it's supposed to be. Is this common with this FastLine thing?

Or is it because AvsP seems to be defaulting to DirectShowSource instead of the mpeg2source that I was using on my previous computer?

DVD footage is already YV12. You were doing inverse telecine, which removes it, not adds it. The problem may have simply been that Telecide/Decimate has been outdated for several years and the recommendation is to use TFM/TDecimate instead.

The very first step you should take when working with VOB files is to open them in DGIndex and save the index file and script (to output the script you need to set up DGIndex's template function*). Then open that script in VDubMod or AvsP to continue editing.

*To do this, create a script in DGIndex's folder and name it template.avs. Open this script in notepad and paste the following into it exactly as it appears below:
MPEG2Source("__vid__", ipp=true, cpu=4)
deint = TDeint(mode=2, mtnmode=3, blim=100)
TFM(order=-1,mode=5,PP=7,field=-1,slow=2, clip2=deint)
TDecimate(mode=1)
AssumeFPS(24)

(the only absolutely necessary part of that is the MPEG2Source line, but it's easier to put the rest in there too instead of typing all that out or copy/pasting it for every single script you make; if it's wrong, then change it later)

Now, in DGIndex, go to Options->AVS Template. Click 'Change Template File' and select the template.avs you just saved. That's it. Now, whenever you index a VOB with DGIndex, it will automatically create a script in the same directory as the .d2v file that has the IVTC operation and AssumeFPS(24) already there.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog
User avatar
Qyot27
Surreptitious fluffy bunny
 
Joined: 30 Aug 2002
Location: St. Pete, FL
Status: Creepin' between the bullfrogs

Next

Return to Footage Help

Who is online

Users browsing this forum: No registered users and 0 guests