PDA

View Full Version : Using Avisynth LimitedSharpen pre-processing with ffdshow for DVD playback!


Pages : 1 [2] 3 4

Socio
11-07-05, 07:38 AM
Manchild those screens look awesome, particulary the last set, looks almost like going from analog to HD. :D

Li On
11-07-05, 09:20 AM
Sorry tried your mod LS script with the 20a7 Masktools but my system still complain can't find function "mt_edge"!

regards,

Li On

tetsuo55
11-07-05, 09:30 AM
mediaplayer classic and bsplayer just crash and wont do anything

could you recap how to do a full setup for this to work, ive never done it before

using latest mpc and ffdshowbuild from 5-11

EDIT:

i downgraded to 03-11-2005, and it stopped crashing

but now i get this error

script error, expected a , or )
(ffdshow_filter_avisynth_script, line 5, column 62

Edit2:

fixed the error, it was a typo in your last script command, at the end there is a space between the 3 and the 4

but now mediaplayerclassic just hangs with 100% cpu

Edit3:

Works now, takes about a minute before it opens

not usable though due to heavy lagging

and it seems to be useless for anime, where it destroyes the image

donebetter
11-07-05, 01:26 PM
:D Melikey! Good to see this thread is still alive. Last time I tried this it brought my 3.2 P4 to it knees and will definitely be giving it another try. Except for one thing, could someone (Socio?) do an update to what exactly they are using? Socio's first post from a couple of days ago was followed by links to a revised script and other references leaving me confused. :confused: Any help would be greatly appreciated! :)

Socio
11-07-05, 02:15 PM
Sorry tried your mod LS script with the 20a7 Masktools but my system still complain can't find function "mt_edge"!

regards,

Li On


It works for me, make sure you removed any older versions of masktools in your avisynth\pugins folder.

Manchild
11-07-05, 02:21 PM
As much as I think this avisynth thingy is great, do you think it is really that much better than the other stuff out there for the cost in CPU? And there appears to be some manipulation to the colors in the latest versions of LimitedSharpen/MaskTools/ColorMatrix as you can see in the Monster's Inc. example I posted above.

I'm using the ColorMatrix call in ffdshow, but it still seems to throw things off a bit. The main thing is that I'm trying to decide if I like it more or not.

If anyone is having trouble with this setup I would highly reccomend trying the DScaler sharpen filter "FLT_Sharpness_sse2.dll". I guess it'll only work if you're SSE2, but I'm not sure. To use this check your DScaler Plugin in the list, hit the "..." to select the .dll in the ffdshow main directory and try a setting of 100. This is far less CPU intensive than the AviSynth method, but as always what will look best depends on each user...

Socio
11-07-05, 02:21 PM
tetsuo55


That space like between the 3 and he 4 happens when I cut and paste my calls sometimes don't know why and when I edit to try and fix it it looks normal but it is not.

To make is faster try 40 and 10 instead of 150 and 34 in that call.

I am also going to post a small script that works with Limitedsharpen with Animes in mind today.

Socio
11-07-05, 02:29 PM
.

I'm using the ColorMatrix call in ffdshow, but it still seems to throw things off a bit. The main thing is that I'm trying to decide if I like it more or not.


There are some bugs in my redone New Limitedsharpen that can't be fixed until the new masktools is fixed do you might try to revert back to the original new Limitedsharpen and the 1.58 version of masktools to see if that helps the color. Also try overlay as your renderer it does not need the Colormatrix call so remove that portion of the call in avisynth-ffdshow and see what that does for you.

Socio
11-07-05, 02:37 PM
:D Melikey! Good to see this thread is still alive. Last time I tried this it brought my 3.2 P4 to it knees and will definitely be giving it another try. Except for one thing, could someone (Socio?) do an update to what exactly they are using? Socio's first post from a couple of days ago was followed by links to a revised script and other references leaving me confused. :confused: Any help would be greatly appreciated! :)

I would use what is in that " first post from a couple of days ago", it is faster than the older versions, not as fast as one with the newer one with the newer version of masktools but like I said in my previous post it that newer version combo is a bit buggy.

Socio
11-07-05, 05:16 PM
Mano over at Doom9 just released a new version of masktools 2.0 that works with the last reworked Limitedsharpen I posted and fixes a couple bugs and should shorten the initializing delay.

Get it here (http://manao4.free.fr/masktools-v2.0a8.zip)

Socio
11-07-05, 05:39 PM
As promised here is a script that Anime fans might like to use in conjunction with LS and it adds no noticeable overhead that I can tell. This script was made by zambelli over at doom 9 and the call was slightly modified by me for real time use.

You can get it here (http://www.savefile.com/files/9442136) just put it in your avisynth\plugin folder, if you already have new LimitedSharpen working then you already have the needed plugin dll files for this.

This is the call:

Import("C:\Program Files\AviSynth 2.5\plugins\Anime.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")



Levels_Smooth(6,227).LimitedSharpen( ss_x=1.0, ss_y=1.0,Smode=3, strength=40, overshoot=1 )


colormatrix()

What is does is remove some of the super bright whites as well as sharpen the image and give it more detail, see what you think.

Here is a nornal pic and a pic with the call:

http://www.citizeninsomniac.com/images/Histogram-Orig.png
http://www.citizeninsomniac.com/images/Histogram-PC2TV_Smooth-LimitedSharpen.png

Socio
11-07-05, 08:01 PM
Here is a real nice performance boosting Avisynth plugin for those of us that are either running dual processors, dual core processor, or a P4 with Hyperthreading enabled.

from the readme

MT is a filter that split a frame up in smaller fragment that are processed in individual threads allowing full utilization of multiprocessor or hyperthread enabled computers.

Download it here (http://www.tsp.person.dk/MT_041.zip)

Just put the MT.dll in your Avisynth\plugin folder and backup and replace the avisynth.dll file in your Windows\system32 folder with the one that come in the plugin zip.


To use it with Limitedsharpen script you will need to alter your call to look like this:

Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")


MT("LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=40,oversho ot=7)")

colormatrix()



I tested it with that call and the new redone Limitedsharpen and newest masktools and my setup is the fastest it has ever been. I usually re-size to 1280x720 and lancozs @ 2, now I have it @ 4 which used to stutter slightly and it is smooth as ice and I probably have headroom for more. Give it a shot see if it help you and I think it will. :)

Manchild
11-07-05, 08:22 PM
Thanks Socio...the last two things have helped speed up both initialization as well as the filtering itself...

What exactly is the overshoot function for in the LimitedSharpen.avs call? I took snaps with and without it and didn't really notice much difference...what does it do?

Thanks

Socio
11-07-05, 08:43 PM
Thanks Socio...the last two things have helped speed up both initialization as well as the filtering itself...

What exactly is the overshoot function for in the LimitedSharpen.avs call? I took snaps with and without it and didn't really notice much difference...what does it do?

Thanks

I have been watching Gladiator extended edition and it looks unbelievable and super smooth! I would pit my setup against just about any external scaler on the market now and kick it"s freaking butt!

On the overshoot if you look on the previous page you will see my pic's one has overshoot @ 7 and you can see the difference it softens and smoothes the image a bit so Limitedsharpens uber sharpen does not appear so 3dish and more natural which I like but each to his own taste.

Socio
11-07-05, 11:47 PM
Originally Posted by Manchild
.

I'm using the ColorMatrix call in ffdshow, but it still seems to throw things off a bit. The main thing is that I'm trying to decide if I like it more or not.


I ran several tests and it is using VMR9 that is throwing the colors off with or without Colormatrix however Overlay is fine. So for all using limitedsharpen I would recommend forgetting Colormatrix, just delete it from your call and plugin folder and just use Overlay as your renderer. Also since you won;t be using Colormatrix in your call it should give you a very slight improvement in performance. :)

Manchild
11-08-05, 12:34 AM
Hmmm...the problem is that typically using VMR9 and the hardware of the video card produces both superior picture quality as well as less required CPU. You use far more CPU using ffdshow in overlay than in VMR9 (for me at least)...

Any idea if/when this color issue might get resolved?

tetsuo55
11-08-05, 05:15 AM
Using the new anime script i get the following errors


Script error: there is no function named "yv12lutxy"
(c\prgram files\av...\anime.avs line 4)
(ffdshow_filter_avisynth_script line 7)

emilot
11-08-05, 06:38 AM
See on page 6, message 169!!

For tetsuo55

Socio
11-08-05, 07:52 AM
Using the new anime script i get the following errors


Script error: there is no function named "yv12lutxy"
(c\prgram files\av...\anime.avs line 4)
(ffdshow_filter_avisynth_script line 7)


Ok I know what that is and I can fix it will put up a new version today!

Socio
11-08-05, 07:58 AM
For those of us using the Multithreading plugin I posted a couple posts up here is a newer version of the multithreaded avisynth.dll (http://www.avisynth.org/tsp/avisynth256MT3.zip) just replace the one in your Windows\system32 folder with it.

Once installed you can try this new call for even better performance:

Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")

SetMTmode(2)
MT("LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=40,oversho ot=7)")

Socio
11-08-05, 08:29 AM
Ok here is a new version of that Anime script addon that now works with the new redone Limitedsharpen and new masktools 2.0 alpha 8( The previous posted anime script works with the original new Limitedsharpen and masktools 1.58)

Anime.avs (http://www.savefile.com/files/2008033)

If you want to use it with the multithreaded plugin and the lastest multithreaded avisynth.dll I just posted then use this call:


Import("C:\Program Files\AviSynth 2.5\plugins\Anime.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")


SetMTmode(2)
MT("Levels_Smooth(6,227).LimitedSharpen( ss_x=1.0, ss_y=1.0,Smode=3, strength=40, overshoot=1 )")

Socio
11-08-05, 08:46 AM
Hmmm...the problem is that typically using VMR9 and the hardware of the video card produces both superior picture quality as well as less required CPU. You use far more CPU using ffdshow in overlay than in VMR9 (for me at least)...

Any idea if/when this color issue might get resolved?

I don't know I will mess with it some more to day and see if I can figure out a workaround for this color issue.

tetsuo55
11-08-05, 10:15 AM
Its working now

just had to remove the mt part from yout latest command as i have a single core cpu

Dont you think the filter adds more grain to the image?

it also seems to emphasize encoding errors? do you notice that?

it does however look alot more detailed and less washed out than the normal version

too bad about the color problems

Socio
11-08-05, 10:33 AM
Well I think I have the color problem fixed, just need to add "converttoyv12()" to the call.

So for non- dual core, non-dual processor or non- HT enabled P4 you would use a call like this:

Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")

LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=40,oversho ot=7)
converttoyv12()



For dual core, dual procesor and HT enable P4 users that are using the multithreading plugin and the latest multithreading avisynth.dll use this call ( newer version even faster)

Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")
MT("LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=40,oversho ot=7)
converttoyv12()",avisynthTS=true)



Anime script users would be:



Import("C:\Program Files\AviSynth 2.5\plugins\Anime.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")

Levels_Smooth(6,227).LimitedSharpen( ss_x=1.0, ss_y=1.0,Smode=3, strength=40, overshoot=1 )
converttoyv12()

Manchild
11-08-05, 03:19 PM
Thanks...so with the latest avisynth.dll for the multithreading we should ditch the

SetMTMode(2) thing and just go with the call you have quoted above?

Socio
11-08-05, 04:44 PM
You can try both ways, the way I put it in my last post or like this:


Import("C:\Program Files\AviSynth 2.5\plugins\Anime.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")


SetMTmode(2)
MT("Levels_Smooth(6,227).LimitedSharpen( ss_x=1.0, ss_y=1.0,Smode=3, strength=40, overshoot=7 )")
converttoyv12()




The way I have it in my last post is faster for me but do try them both and see for yourself which is best for you.

The way I tested it was to re-size to 1080p and I got some stutter but far less with the call in my previous post in fact is was almost smooth.

emilot
11-08-05, 05:30 PM
Thank you so much!!! My god unbelievable picture and as smooth as before!!

JoeFigueiredo
11-08-05, 09:10 PM
I have a question that is slightly offtopic, but is related in that I am trying to get my CPU o/c'd as much as possible to use AVISynth...

I have 2x512mb of generic, cheap value RAM in my Asus P4P mobo with a P4 2.8. In the bios I can o/c 10%, but any higher and my PC doesn't boot.

If I swap the RAM with 2x512mb of mid-level Corsair RAM (XMS version I think...) will I be able to get a higher o/c setting to boot my PC?...in theory at least.

Or does the type of RAM have no bearing on how much I can o/c my CPU?

You see, there are higher settings in the bios, but they don't work for me.

Socio
11-08-05, 10:02 PM
JoeFigueiredo,

Have you tried the redone new Limitedsharpen with the latest Masktools dll,
enabling hyperthreading on your P4 and using the multithreading plugin with the latest multithreading avisynth.dll I posted yet?

It is much faster than past versions, I have a P4 3.06 and can run limitedsharpen with denoise3d. resized 2x and it is smooth as ice and I have headroom to go higher in fact I can almost do 1080p smooth.

JoeFigueiredo
11-08-05, 11:05 PM
Haven't tried it, but going to...guess I was just wondering about if the RAM would theoretically help.

Also, with the convertoyv12() paramter, do you need to still use colourmatrix() if using VMR9?

Here's my basic setup steps, would this work?

1. Install AVISynth.
2. Copy Warpsharp, Masktools, ColourMatrix, FDecimate & LimitedSharpen.avs into AVISynth/plugins folder.
3. Click on AVISynth in FFDShow.
4. In the text area, enter the following:
Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")
MT("LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=4,strength=20)convert toyv12()")
ColorMatrix() ***for VMR9 only to fix colours
5. Put a check in the AVISynth box.
6. Enable Denoise3d 0,0,5 FAST above AVISynth
7. Enable Lanczos4 resize to 1384x760 after AVISynth with Luma @ 0.6
8. In FFDShow, ensure raw video is set to YV12 in codecs section.
9. Ensure output in FFDShow is set to YV12.
10. Ensure YV12 is checked in AVISynth screens.

Socio
11-08-05, 11:19 PM
Looks good but you don't need Colormatrix or FDecimate,

In addition you will need to download the MT plugin and the multithreading avisynth.dll, put the MT.dll in the avisynth\plugin folder and the replace the avisynth.dll in your windows\systems32 folder with the multithreading avisynth.dll

Oh and you need to download that last removegrain plugin I posted and put the removegrainsse2.dll in your avisynth\plugin folder.

Socio
11-09-05, 07:36 AM
Mano over at Doom9 released a new version of the masktools.dll that works with the new redone Limitedsharpen and shortens the start delay even more plus seems to speed the whole thing up a bit.

Get it here (http://manao4.free.fr/masktools-v2.0a9.zip)

Li On
11-09-05, 08:52 AM
It just keep complaining cannot find function mt_edge! My avisynth is already 2.5.6 but finally installed the latest 2.5.6a on Sourceforge anyway! And it works! :cool:

regards,

Li On

ConradC
11-09-05, 09:46 AM
I'm trying to download WarpSharp. My German is a bit rusty so I had to translate the page. Looks like I need to enter some access code. Is there another place I can get that file? Thanks in advance! :D

JoeFigueiredo
11-09-05, 09:47 AM
So would the AVISynth script look something like this:

Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")
MT("LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=4,strength=20)convert toyv12()")

Or do I need to put load plugins lines, like this:

Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MaskTools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\WarpSharp.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\aWarpSharp.dll")
MT("LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=4,strength=20)convert toyv12()")

Also, do I need to put the avisynthTS=true in the LimitedSharpen line? What is this for?

Finally, I notice Socio that you are posting examples of lines with Smode=3. Is that what you use? I thought that the new 4 mode gives the best pq and speed?

Thanks,

Socio
11-09-05, 09:59 AM
ffdshow autoloads plugins so you just need to do it like this:

Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")
MT("LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=40)
converttoyv12()",avisynthTS=true)


Smode 4 is high quality and bit faster than Smode 3, however Smode 3 is the highest quality. I still prefer Smode3 but you really need to experiment with both to see which you prefer, everyone's taste and eye are different. Also If for some reason your system is not running this setup fast enough then try Smode2.

pontiacgagt
11-09-05, 12:13 PM
Not sure what I am doing wrong but I cant seem to get rid of the message

Script error: Invalid arguments to function "LimitedSharpen"

Here is what I am using

Avisynth 2.56a
ffdshow 11-03
latest masktools


Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")

LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=40)
converttoyv12()

Socio
11-09-05, 06:03 PM
I'm trying to download WarpSharp. My German is a bit rusty so I had to translate the page. Looks like I need to enter some access code. Is there another place I can get that file? Thanks in advance! :D

Try here (http://www.avisynth.org/warpenterprises/files/warpsharppackage_25_dll_20031103.zip)

All you need is the warpsharp.dll from that package and put it in your avisynth\plugins folder

Socio
11-09-05, 06:09 PM
Not sure what I am doing wrong but I cant seem to get rid of the message

Script error: Invalid arguments to function "LimitedSharpen"

Here is what I am using

Avisynth 2.56a
ffdshow 11-03
latest masktools


Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")

LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=40)
converttoyv12()



Make sure you are using the Limitedsharpen I posted in post #243 on the previous page and the last masktools I posted this morning. You also need the last Removegrain plugin I posted in post #241.

pontiacgagt
11-10-05, 07:53 AM
Make sure you are using the Limitedsharpen I posted in post #243 on the previous page and the last masktools I posted this morning. You also need the last Removegrain plugin I posted in post #241.

Double checked all my settings and files

I get the same thing if I use Zoomplayer 4.51 or if I use Theatertek.

Socio
11-10-05, 09:49 AM
Double checked all my settings and files

I get the same thing if I use Zoomplayer 4.51 or if I use Theatertek.


Hmm? I don't know what could be causing it then, make sure that "All YUV" is selected in ffdshow codecs for Raw video and under in ffdshow under avisynth only have YV12 and YUY2 checked. Also get the warpsharp.dll I posted a couple posts up and put the warpsharp.dll from it in your avisynth\plugin folder see if that helps.

Socio
11-10-05, 09:52 AM
A newer version of ffdshow is out, I have tested in and it works fine with this setup get it here:

FFDSHOW 2005-11-09 (http://www.afterdawn.com/software/video_software/codecs_and_filters/ffdshow.cfm)

ConradC
11-10-05, 12:46 PM
Socio,

Thanks for the link. I have a copy of Warpsharp now. I'm getting similar results as pontiacgagt. This is the error:

Script error: Invalid arguments to function "LimitedSharpen"
(ffdshow_filter_avisynth_script, line 2)

I am trying to first run LimitedSharpen without HyperThreading. So here are the files I have in my plugin folder. These are as updated to all the files you have stated on page 5.

DirectShowSource.dll
ffavisynth.dll
TCPDeliver.dll
RemoveGrainSSE2.dll
mt_masktools
LimitedSharpen.avs
WarpSharp.dll
(I hope this is all I need)


My call looks like this:

Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")
LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=40,oversho ot=7)
converttoyv12()

Raw video = all YUV
Avisynth = YV12
Output = YV12

FFDSHOW version Nov 7 2005

Your instructions are pretty simple to follow. I'm just wondering why its not working for me. :confused:

Thanks in advance!

Socio
11-10-05, 03:29 PM
I downloaded and tried the version of Limitedsharpen script that I put up it was fine, you have all the right plugins so that's fine. So it has to be something with copying and pasting the call from here to the ffdshow\avisynth window.

Try either hand typing the call in the window or copying and pasting it to notepad then copy it from notepad to the ffdshow\avisynth window.

I know it gets screwing pasting from here to the forum look at the word "overshoot" in the cal you posted, it comes out "oversho ot" so the same thing could be happening the other way.

ConradC, if you plan on using Hyperthreading make sure you try it with the multithreading plugin and the multithreading avisynth.dll I posted about, it will make a nice improvement.

Socio
11-10-05, 05:55 PM
FYI: If your processor is SSE2 capable you might want to try the ffdshow-20051109-gcc4.0.2-sse2 version of ffdshow is is basically the same as the one I posted a couple posts up but optimized for SSE2 and may give you a little extra juice to run the LimitedSharpen setup.

I already downloaded and installed and it works fine with the Limitedsharpen setup.

There is a catch however, you need to download it from the authors site and it is only available via torrent but it downloads pretty fast.

Authors site (http://ffdshow.faireal.net/#ffdshow)

JoeFigueiredo
11-10-05, 10:30 PM
Why use any version of FFDShow other than Andy's optimized August 2004 version? Isn't it the fastest? Do other versions provide better pq or something?

Socio
11-11-05, 08:25 PM
Why use any version of FFDShow other than Andy's optimized August 2004 version? Isn't it the fastest? Do other versions provide better pq or something?

After using both, as far as I can tell the only major difference speed wise is the "fast" denoise3d however I have a better denoiser that is just as fast maybe faster that I will post about in depth tomorrow, still running a few tests on it tonight. ;)

Also if you are like me and record TV shows and play them back via Zoomplayer later I think I do get a little better PQ from the ffdshowMPEG4 decoder that is in the newer versions of ffdshow.

cburbs
11-12-05, 01:44 AM
I get an error with this:
Import("D:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")
MT("LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=40)
converttoyv12()",avisynthTS=true)

Script error invalid arguments to functon "MT"
(ffdshow_filter_avisynth_script line 3)

I have the following files in the plugins folder:
avisynth.dll
directshowcase.dll
ffavisynth.dll
limitedsharpen
mt.dll
mt_masktools.dll
Removegrainsse2.dll
tcpdeliver.dll
warpsharp.dll

The only thing checked in ffdshow is the YV12 in the avisynth

I have a P4 2.8 with HT turned on.

bennynihon
11-12-05, 02:55 AM
FYI: If your processor is SSE2 capable you might want to try the ffdshow-20051109-gcc4.0.2-sse2 version of ffdshow is is basically the same as the one I posted a couple posts up but optimized for SSE2 and may give you a little extra juice to run the LimitedSharpen setup.

I already downloaded and installed and it works fine with the Limitedsharpen setup.

There is a catch however, you need to download it from the authors site and it is only available via torrent but it downloads pretty fast.

Authors site (http://ffdshow.faireal.net/#ffdshow)

Here's a direct download.

http://mirror05.x264.nl/public/ffdshow/ffdshow-20051109-gcc4.0.2-sse2.exe

Socio
11-12-05, 04:00 AM
I get an error with this:
Import("D:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")
MT("LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=40)
converttoyv12()",avisynthTS=true)

Script error invalid arguments to functon "MT"
(ffdshow_filter_avisynth_script line 3)

I have the following files in the plugins folder:
avisynth.dll
directshowcase.dll
ffavisynth.dll
limitedsharpen
mt.dll
mt_masktools.dll
Removegrainsse2.dll
tcpdeliver.dll
warpsharp.dll

The only thing checked in ffdshow is the YV12 in the avisynth

I have a P4 2.8 with HT turned on.

Did you download and install that avisynth.dll I posted in post #270?
You need to replace the one in your windows\system32 folder with it.

tetsuo55
11-12-05, 05:06 AM
For everyone having problems

the 11-(05or07)-2005 build of FFDShow does not work, there is some kind of bug with avisynth

use 11-03-2005 or 11-09-2005

I think i found out where my grain is coming from

i have resize set to luma 0.76

when i set the resize to 0 luma a lot of the grain is gone

im using avisynth on divx and such, maybe i should put some post-processing before the avisynth plugin to remove some of the blocks?

Now all we need is a good deinterlacer, i cant seem to get anything that works good

Nima
11-12-05, 08:51 AM
I get an error message: removegrain needs an SSE2 CPU but I only have an AthlonXP. Any way around this? I still want to use the new limitedsharpen script! :)

TIA
Nima

tetsuo55
11-12-05, 09:49 AM
I get an error message: removegrain needs an SSE2 CPU but I only have an AthlonXP. Any way around this? I still want to use the new limitedsharpen script! :)

TIA
Nima


i use an athlon xp, make sure you use removegrainS.dll only

Socio
11-12-05, 09:52 AM
I get an error message: removegrain needs an SSE2 CPU but I only have an AthlonXP. Any way around this? I still want to use the new limitedsharpen script! :)

TIA
Nima

Try either the RemoveGrain.dll. or the RemoveGrainS.dll. from the removegrain package instead of the RemoveGrainSSE2.dll.

cburbs
11-12-05, 09:55 AM
Did you download and install that avisynth.dll I posted in post #270?
You need to replace the one in your windows\system32 folder with it.

Yes,
I did that and I retried it many times.

Socio
11-12-05, 10:07 AM
Yes,
I did that and I retried it many times.

I think there maybe a problem with copying and pasting from the forum to ffdshow , it could be copying some unseen html code along with it or something so try to hand type the call in the ffdshow\avisynth window, just do it exactly how it looks.

Nima
11-12-05, 10:26 AM
i use an athlon xp, make sure you use removegrainS.dll only

How do I do that? Delete all the others? :confused:

Socio
11-12-05, 12:47 PM
How do I do that? Delete all the others? :confused:

Yes, just make sure it is the only removegrain in your avisynth\plugin folder.

Socio
11-12-05, 03:51 PM
I posted about a new denoise filter I was experimenting with, I tested it predecessor a long time ago but this is a new version, it is very powerful and very fast.

From the readme:

it can process 720x480 at about 80fps on my Barton 2500

It is a Avisynth version of a High Quality Denoise 3d filter, you can download it here (http://www.avisynth.org/warpenterprises/files/hqdn3d_25_dll_20050125.zip) and put the hqdn3d.dll in your avisynth\plugin folder.

To use it, disable denoise3d in ffdshow under Blur & NR then disable all colorspace check boxes in ffdshow\avisynth except YV12. Next add hqdn3d() to your call above the limitedsharpen line, in the () the number is the strength of the denoising 1 being the lowest so for minor denoising your call might look like this:


Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")

hqdn3d(1)
LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=50,oversho ot=0)
converttoyv12()

I uploaded some pre-made call scripts with settings I like for various formats that include this denoiser for those of you having problems with copying the scripts from here, you can download them here (http://www.savefile.com/files/3697991) . To use them just extract to a folder then open ffdshow\avisynth window and hit the load button and migrate to the folder you extracted to.

Like a lot of others I like to record analog/digital TV shows and watch them later I found that this new denoiser does a great job particularly with all the noise from analog recordings compared to ffdshow denoise3d. It will not perform miracles and turn analog or digital recordings in to DVD quality but it sure makes them look a lot better than with out it.

Here are some samples, the first is analog TV :

Normal
http://img492.imageshack.us/img492/1588/tvghostnorm4bl.jpg

Limitedsharpen and ffdshow Denoise3d high settings with limitedsharpen strenth set to 50
http://img492.imageshack.us/img492/5950/tvghostffd3d1af.jpg

Limitedsharpen with hqdn3d(6) with limitedsharpen strenth set to 50
http://img492.imageshack.us/img492/3917/tvghostls24rm.jpg

Taking it a step further, Limitedsharpen with hqdn3d(6) with limitedsharpen strength set to 50and swscaler enabled in ffdshow Blur&NR
http://img492.imageshack.us/img492/3062/tvghostswscaler1bk.jpg


This a digital recording;

Normal
http://img492.imageshack.us/img492/2996/tvdigitalnorm8zp.jpg

Limitedsharpen with hqdn3d (2) with limitedsharpen strength set to 50
http://img492.imageshack.us/img492/4125/tvdigitalls2qd.jpg

This is DVD;

Normal
http://img116.imageshack.us/img116/4600/gladnormal3si.jpg

Limitedsharpen with hqdn3d (2) with limitedsharpen strength set to 40
http://img492.imageshack.us/img492/1905/gladls9mm.jpg

cburbs
11-12-05, 05:37 PM
Well I keep getting errors and now when I add lines Zoomplayer errors off and shuts down.

Nima
11-12-05, 05:42 PM
I am also getting errors! Could someone just tell me what do I have to use for SSE Limited Sharpen! Which avs which masktools etc.

Thank you in advance :D

cburbs
11-12-05, 05:47 PM
I keep getting runtime errors.

If I could get this done right I could create a easy cheat sheet to follow but I can't.

If I just have the first line of code I am fine but once I start addining any other lines I am getting zoomplayer runtime erros.

I even removed and reinstalled everything today.

Chad

Socio
11-12-05, 05:54 PM
I keep getting runtime errors.

If I could get this done right I could create a easy cheat sheet to follow but I can't.

If I just have the first line of code I am fine but once I start addining any other lines I am getting zoomplayer runtime erros.

I even removed and reinstalled everything today.

Chad

Dowload the pre-made scripts I just posted about and if you don't wan to use the new denoiser I posted about just remove the hqdn3d() part and see if that works.

Socio
11-12-05, 06:18 PM
I am also getting errors! Could someone just tell me what do I have to use for SSE Limited Sharpen! Which avs which masktools etc.

Thank you in advance :D


Here is what I use and works fine:

Avisynth 256a (http://sourceforge.net/project/showfiles.php?group_id=57023)

Removegrain (http://home.arcor.de/kassandro/RemoveGrain/RemoveGrain.rar)

Limitedsharpen (http://www.savefile.com/files/3872085)

Masktools (http://manao4.free.fr/masktools-v2.0a9.zip)

Warpsharp (http://www.avisynth.org/warpenterprises/files/warpsharppackage_25_dll_20031103.zip)

FFDSHOW 2005-11-09 (http://ffdshow.faireal.net/#ffdshow)


For Multithreading:

MT (http://www.tsp.person.dk/MT_041.zip)

Multithreading Avisynth.dll (http://www.avisynth.org/tsp/avisynth256MT3.zip)



Also try disabling Gradual Denoise under Blur&NR in ffdshow it can crash programs in the newer versions of ffdshow.

tetsuo55
11-13-05, 06:16 AM
Here is what I use and works fine:

Avisynth 256a (http://sourceforge.net/project/showfiles.php?group_id=57023)

Removegrain (http://home.arcor.de/kassandro/RemoveGrain/RemoveGrain.rar)

Limitedsharpen (http://www.savefile.com/files/3872085)

Masktools (http://manao4.free.fr/masktools-v2.0a9.zip)

Warpsharp (http://www.avisynth.org/warpenterprises/files/warpsharppackage_25_dll_20031103.zip)

FFDSHOW 2005-11-09 (http://ffdshow.faireal.net/#ffdshow)


For Multithreading:

MT (http://www.tsp.person.dk/MT_041.zip)

Multithreading Avisynth.dll (http://www.avisynth.org/tsp/avisynth256MT3.zip)



Also try disabling Gradual Denoise under Blur&NR in ffdshow it can crash programs in the newer versions of ffdshow.


what are currently your exact ffdshow settings?

can you post screenshots of all the screens that have changed values from the default values?

Socio
11-13-05, 09:56 AM
what are currently your exact ffdshow settings?

can you post screenshots of all the screens that have changed values from the default values?

NOTE: In addition to the list in post #314 I use the hqdn3d denoiser and scripts I posted in post #309

Since I now use Avisynth for most of the work my ffdshow settings are pretty simple.

This is all I have set for typical DVD playback:

http://img464.imageshack.us/img464/1605/ffdshow11wh.jpg
http://img464.imageshack.us/img464/6461/ffdshow24nd.jpg
http://img354.imageshack.us/img354/2963/ffdshow35gm.jpg
http://img354.imageshack.us/img354/9595/ffdshow41cr.jpg

Hope this helps

khordo
11-13-05, 12:49 PM
For my first post (I'm a reader for almost 3 years... :rolleyes: )
i have some questions about the parameters of Socio.

First :
- What is the purpose of : RAW VIDEO - All YUV (In FFDSHOW a lot of people are using : All Supported...). Is there a difference between them ?

Second :
- In Avisynth : avisynthTS=true. Can you explain the use of this ? Same question for Overshoot=7.

Thank You Socio for your work and for your future reply. ;)

Socio
11-13-05, 01:41 PM
For my first post (I'm a reader for almost 3 years... :rolleyes: )
i have some questions about the parameters of Socio.

First :
- What is the purpose of : RAW VIDEO - All YUV (In FFDSHOW a lot of people are using : All Supported...). Is there a difference between them ?

Second :
- In Avisynth : avisynthTS=true. Can you explain the use of this ? Same question for Overshoot=7.

Thank You Socio for your work and for your future reply. ;)


1, All YUV is just what I have been using for a long time all supported works as well.

2, You have to go back a page or so in this thread to see how to use avisynth multithreading with dual processor, dual core and HT enabled processsors. The avisynthTS=true parameter is just part of the multithread enabling function for better performance and can only be used if you are using the multithreaded version of avisynth with the MT plugin.

This is documentation for what it does is in the MT readme:

avisynthTS: if you use my custom version of avisynth set this to true for better performance. Default false

2b, If you go back a couple pages you will See a post of mine that has several pics one has overshoot @ 7 to see the difference, the effect it has is to smooth with out blur and make the sharpened image appear not so 3d-ish yet keep the sharpen quality.

The actual documented definition of what Overshoot does from Didee over at Doom9 the LimitedSharpen author is:

Overshoot

This specifies how much the sharpening result may "shoot over" the min and max limits, before either clipping or reduction will be done. 0=no overshoot allowed at all, 128="make-this-script-useless"
Default is overshoot=1.

khordo
11-13-05, 02:31 PM
Less than 1 hour to have an answer ? It's possible...Thanks Socio !

tetsuo55
11-13-05, 03:20 PM
Newest updates and scripts are working great, im (almost) satisfied with the results, although there is still plenty of room for improvement!

i have read that these builds of FFdshow http://ffdshow.sourceforge.net/tikiwiki/tiki-index.php?page=Getting+ffdshow

Are up to 15 % faster than the other builds. so try it out. does feel faster for me.

one last question

socio. how do you deal with deinterlacing??

Socio
11-13-05, 04:01 PM
tetsuo55,

Those are the same ones I have been posting but there is a new version ffdshow-20051111.exe (http://cutka.szm.sk/files/ffdshow-20051111.exe) that has this fix among others:

fixed avisynth filter crash

So those of you experiencing problems with ffdshow crashing while trying to use limitedsharpen might want to try that version.

I just downloaded it myself and am going to test it in a little while.


As for deinterlacing, about the only time I need to use it is with digital TV recordings. I use ffdshow for deinterlacing, and use the ffmpeg deinterlacer method, it does a nice job. I know most people use TomMoComp method and normally it does a damn good job but it causes an audio lipsync delay when using it with limitedsharpen where the ffmpeg does not.

khordo
11-13-05, 04:08 PM
Newest updates and scripts are working great, im (almost) satisfied with the results, although there is still plenty of room for improvement!

i have read that these builds of FFdshow

Are up to 15 % faster than the other builds. so try it out. does feel faster for me.

one last question

socio. how do you deal with deinterlacing??

I tried these builds of FFDSHOW...Everything is working with avisynth. I can really see a difference with this new build but in fact, it works...

Socio
11-13-05, 08:18 PM
I tried these builds of FFDSHOW...Everything is working with avisynth. I can really see a difference with this new build but in fact, it works...


I tried out the ffdshow-20051111.exe and it works fine and no crashes with Gradual Denoise enabled like previous versions would do not that I use it.

ExCavTanker
11-13-05, 09:07 PM
Socio,

I keep getting the error

Import: couldn't open "D:\program files\Avi Synth 2.5\plugins\LimitedSharpen.avs"
(ffdshow_filter_avisynth_script,line 2)

It shows up in green text on the Zoom player screen when playing a DVD. I have the Limited Sharpen script in the plugin folder of Avi Synth. I'm sure I'm overlooking something not sure what, any help would be appreciated.

Socio
11-13-05, 10:20 PM
It should open, are you sure your avisynth folder is in D:\ and not C:\ ?

Igthorn
11-13-05, 10:21 PM
Import: couldn't open "D:\program files\Avi Synth 2.5\plugins\LimitedSharpen.avs"
(ffdshow_filter_avisynth_script,line 2)

The extra space between AviSynth? The AviSynth installer defaults to 'AviSynth' not 'Avi Synth'. That's the only thing I can think of other than 'd:' instead of 'c:'.

ExCavTanker
11-13-05, 11:27 PM
Sorry, the space was a typo. D: is my drive that I use for all my video apps and the folder is called AviSynth 2.5, below are the settings for AviSynth:


Import("D:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")

MT("hqdn3d(2)
LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=40,oversho ot=7)
converttoyv12()",avisynthTS=true)

My CPU is a P4 and have HT enabled along with the appropriate plugins. The other thing I'm slightly confused about is when I unpack LimitedSharpen with WinRar it shows the .avs file extension, but when I place it in the plugin folder it has an icon called

LimitedSharpen
AviSynth Script
6kb

If I double click it, it opens with notepad showing the contents of the program. Is it extracted correctly?

The plugins in the folder are as follws:

avisynth.dll (2.5.6.0)
MT.dll (0.4.1.0)
warpsharp.dll
hqdn3d.dll
ffavisynth.dll
LimitedSharpen
mt_masktools.dll (2.0.0.8)
RemoveGrainSSE2.dll

Do I have unnecessary plugins in the folder? I've spent most of the day reading and trying out the various programs and it's possible something is installed incorrectly.

khordo
11-14-05, 02:18 AM
Sorry, the space was a typo. D: is my drive that I use for all my video apps and the folder is called AviSynth 2.5, below are the settings for AviSynth:


Import("D:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")

MT("hqdn3d(2)
LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=40,oversho ot=7)
converttoyv12()",avisynthTS=true)

My CPU is a P4 and have HT enabled along with the appropriate plugins. The other thing I'm slightly confused about is when I unpack LimitedSharpen with WinRar it shows the .avs file extension, but when I place it in the plugin folder it has an icon called

LimitedSharpen
AviSynth Script
6kb

If I double click it, it opens with notepad showing the contents of the program. Is it extracted correctly?

The plugins in the folder are as follws:

avisynth.dll (2.5.6.0)
MT.dll (0.4.1.0)
warpsharp.dll
hqdn3d.dll
ffavisynth.dll
LimitedSharpen
mt_masktools.dll (2.0.0.8)
RemoveGrainSSE2.dll

Do I have unnecessary plugins in the folder? I've spent most of the day reading and trying out the various programs and it's possible something is installed incorrectly.


You can find a new version of masktools (2.09a). There is a link in socio's old post in this thread (Page 9 or 10). Maybe it will help you. ;)

tetsuo55
11-14-05, 04:47 AM
Sorry, the space was a typo. D: is my drive that I use for all my video apps and the folder is called AviSynth 2.5, below are the settings for AviSynth:


Import("D:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")

MT("hqdn3d(2)
LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=40,oversho ot=7)
converttoyv12()",avisynthTS=true)

My CPU is a P4 and have HT enabled along with the appropriate plugins. The other thing I'm slightly confused about is when I unpack LimitedSharpen with WinRar it shows the .avs file extension, but when I place it in the plugin folder it has an icon called

LimitedSharpen
AviSynth Script
6kb

If I double click it, it opens with notepad showing the contents of the program. Is it extracted correctly?

The plugins in the folder are as follws:

avisynth.dll (2.5.6.0)
MT.dll (0.4.1.0)
warpsharp.dll
hqdn3d.dll
ffavisynth.dll
LimitedSharpen
mt_masktools.dll (2.0.0.8)
RemoveGrainSSE2.dll

Do I have unnecessary plugins in the folder? I've spent most of the day reading and trying out the various programs and it's possible something is installed incorrectly.

there is a space in the word overshoot, youll have to manually correct that in ffdshow

Or use the readynade scripts that you can download a few posts hiigher and just call them


Import("D:\Program Files\AviSynth 2.5\plugins\scriptname.avs")

you wont need any other commands

you can put all the scripts in ffdshow, and put a #in front of them, then just remove the # from the particular script you want to use for the movie your watching

ExCavTanker
11-14-05, 09:32 AM
FIXED-Thanks for the replies, as I figured it was something simple, the name for the folder for AviSynth didn't match what was in ffdshow, one had a space between the h and 2 and the other didn't. That's what I get for working on these things with little sleep:) The overshoot was correct in ffdshow it must put the space in when it's transferred here.

o27
11-14-05, 06:36 PM
Ok i have the exact same problem as you, and i DO have checked the spelling and everything the last hour or so - but still no luck!!
I have the exact same plugins installed (my cpu is a P4 2.8ghz dual-core).

What to do from here on?

ExCavTanker
11-14-05, 06:58 PM
Ok i have the exact same problem as you, and i DO have checked the spelling and everything the last hour or so - but still no luck!!
I have the exact same plugins installed (my cpu is a P4 2.8ghz dual-core).

What to do from here on?

I noticed that even the latest version of ffdshow when unzipped wants to use a folder called 2 not 2.5 like the examples of calls posted. Make sure the plugin folder and the call script match exactly (names and locations). In my case one little space difference meant that it couldn't find the plugin folder. Also, make sure HT is enabled in your bios if you use the SSE2 plugins.

antonio_car
11-15-05, 03:14 AM
I tried out the ffdshow-20051111.exe and it works fine and no crashes with Gradual Denoise enabled like previous versions would do not that I use it.

Hi Socio thanks for all .
I tried Limitedsharpen and I am satisfied with it :

PAL DVD

Codecs RAW YV12

AVISYNTH
Import("C:\Programmi\AviSynth 2.5\plugins\LimitedSharpen.avs")
LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=30,oversho ot=7)
converttoyv12()

2X resize Lanczos 2 , no luma chroma sharpen.

YV12 out , VMR9

Athlon 64 3800+ newcastle , 80% cpu usage.


I have only two problems.
I use TT2 and the only way to avoid random crash is to use NVPP before Ffdshow.
It happens more frequently when I switch from Vmr9 renderless/exclusive to windowed , graph is rebuilded I think.

When there is a static menu or patterns like DVE PAL I have no image only black screen.

Is the second problem expected ?


Thanks again.
Cheers
Antonio

o27
11-15-05, 05:11 AM
well finally it works! Just fiddled a little around - dont really know exactly what i changed! :p

But i get another problem - none of my WMVHD clips can be played using this config - i have no problem playing .ts files and DIVX-HD files, only the WMV-HD files?!

Any ideas?

Socio
11-15-05, 05:44 PM
Hi Socio thanks for all .
I tried Limitedsharpen and I am satisfied with it :

I have only two problems.
I use TT2 and the only way to avoid random crash is to use NVPP before Ffdshow.
It happens more frequently when I switch from Vmr9 renderless/exclusive to windowed , graph is rebuilded I think.

When there is a static menu or patterns like DVE PAL I have no image only black screen.

Is the second problem expected ?


Thanks again.
Cheers
Antonio

Glad you like it!

I don't work with PAL but I can see no reason why it would make it a black screen.

Socio
11-15-05, 05:53 PM
well finally it works! Just fiddled a little around - dont really know exactly what i changed! :p

But i get another problem - none of my WMVHD clips can be played using this config - i have no problem playing .ts files and DIVX-HD files, only the WMV-HD files?!

Any ideas?

I don't think you can use ffdshow with WMVHD unless it is a non-drm clip and those as well as 1080 HD .ts files will run in slo-mo for me with limitedsharpen running. Besides that the HD video almost gets to sharp and to clean to watch with limitedsharpen in the mix. I tried watching some of the football game I recorded last night with Limitedsharpen and even in slo-mo the clarity strained my eyes somewhat.

o27
11-15-05, 06:33 PM
Ok thats what i was afraid of!

I saw a demo of some recorded "live" NFL i high def when i got demonstratet the new Sanyo Z4 yesterday at my local hw pusher - damn i must admit i have never seen anything looking that good before!!

Is there somewhere its possible to dl some NBA and NFL High Def demos?

And whats the best way to playback my WMVHD clips then? just regular media player?

Best regards - and thnx a lot for this super thread;-)

antonio_car
11-18-05, 04:54 PM
Glad you like it!

I don't work with PAL but I can see no reason why it would make it a black screen.

Thanks.
Reinstalled ffdshow-20040709_SSE2.exe
http://ffdshow.leffe.dnsalias.com/andy2222/

No problems now :)

Antonio

deandob
11-19-05, 08:00 AM
Is there another location to download limitedsharpen (for multiprocessor use)? The one on savefiles.com is not accessable as the file servers are down.

Regards,
Dean

donalarms
11-19-05, 12:51 PM
A plea for help to Socio and everybody else….

This really is a very nice sharpening technique. I think I do have my settings right (because i am not getting any more errors or crashes) but my machine is on its knees, cpu maxing at 95%. Picture is moving frame by frame, at that rate it will take me 3days to watch a 90mins movie. Can somebody out there help me out.

I must have some setting wrong. I have tried all kinds of settings for avisynth.

The one below is the only one that does not crash my system or pop out errors.

This is my setup:

AVISYNTH Settings:

Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")
crop(8,8,-8,-8,true)
LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=2,strength=60)
ColorMatrix()
Lanczos4Resize(1280,720)

These are the 7 files in my Avisynth plugin folder:

DirectShowSource.dll
LimitedSharpen.avs
TCPDeliver.dll
warpsharp.dll
ffavisynth.dll
MaskTools-p4-5.dll
ColorMatrix.dll

FFdShow settings

Blur – all set to 0
Avisynth
Resize

My HTPC Setup:

- MCE 2005
- Asus P4 Intel 2.8
- Ati 9800 video card
- 512mg memory
- Infocus X1 projector
- Theartertek 2.2 (most current version and update)
- NVPP (Auto mode)
- FFDSHOW (July 9th SSE AndyIEG version)

khordo
11-19-05, 01:44 PM
Are you working in YV12 ?
Do you download latest dll from socio's post ?

For my part, avec my projector run in 800x600 in remove the resize...Difference is almost invisible...My A64 3400+ appreciate...

Sinobi
11-19-05, 02:31 PM
You say your CPU is P4 2.8, but what type of P4?
Is it Northwood (533FSB) or a newer one?
Mine is a Northwood 2.8 overclocked to 3.17 and I can just about do the old Limitedsharpen and NOTHING else if I crop 8,8,-8,-8 on PAL.
Doing Lanczos4Resize AND blur AND Resize might be over the top for you even on a newer P4.

Henrik

donalarms
11-19-05, 05:48 PM
You say your CPU is P4 2.8, but what type of P4?
Is it Northwood (533FSB) or a newer one?
Mine is a Northwood 2.8 overclocked to 3.17 and I can just about do the old Limitedsharpen and NOTHING else if I crop 8,8,-8,-8 on PAL.
Doing Lanczos4Resize AND blur AND Resize might be over the top for you even on a newer P4.

Henrik

I am using a Northwood 533FSB HT.

@Khordo

Are you working in YV12 ?

Yes i am running YV!@ input /output

Do you download latest dll from socio's post ?

I have downloaded the latest dlls from Socios post.

For my part, avec my projector run in 800x600 in remove the resize...Difference is almost invisible...My A64 3400+ appreciate


Are you suggesting in run my pj at the native resolution 800x600 , i will give that a shot

thanks

adamy
11-19-05, 10:27 PM
truedance,
I am new to HTPC but I have been tracing this thread for 2 weeks. Now I am able to play sharp DVD pictures using zoomplayer + FFDSHOW 20051111 (Avisynth only).

I am using P4 3.0E o/c to 3.3GHz with HT on (so I use the MT AVIsynth.dll and the MT avisynth avs). I cannot use other FFDSHOW filters such as the Blur otherwise the framerate would become unstable. CPU is 60-70% but I am told this is pretty much fully loaded for HT turned on.

For you, suggest:

1. uncheck/turn off your other ffdshow filters - resize (you have resize done in your avisynth script anyway) and the blur (please use the hqdn3q in the avisynth script and download the dll to your plugin directory, this save you cpu to do the denoise).
2. Use the Mutlithread version of avisynth (dll and avs) and masktool (check instruction in this thread)
3. Rezize only to your projector native resoultion
4. Overclock your cpu (I can only barely run the avisynth with P4 3.0 HT (no overclock) with avisynth resize to 1360x768).

damdy-cash
11-20-05, 03:04 PM
Is there another location to download limitedsharpen (for multiprocessor use)? The one on savefiles.com is not accessable as the file servers are down.

Regards,
Dean
same Problem for the non MT- Version. Is there another Location for this files please?

Rgds Damdy

khordo
11-20-05, 04:48 PM
[QUOTE=donalarms]A plea for help to Socio and everybody else….


FFdShow settings

Blur – all set to 0
Avisynth
Resize

Why appears in FFDSHOW settings "Resize" ? We can see that in your
avisynth script you have "Lanczos4Resize(1280,720)"...
When i read this, i can think you use twice a resizing method...Tell me i'm wrong..!

You can use colormatrix(mmx=true) instead of colormatrix()

To find what is wrong with your config, try to uncheck one by one your setting in ffdshow. For my part, when nothing is used in ffdshow my cpu is about 20% in WRM9 or Overlay.
Maybe try to re install all software...Maybe it helps...

donalarms
11-20-05, 10:25 PM
[QUOTE=donalarms]A plea for help to Socio and everybody else….


FFdShow settings

Blur – all set to 0
Avisynth
Resize

Why appears in FFDSHOW settings "Resize" ? We can see that in your
avisynth script you have "Lanczos4Resize(1280,720)"...
When i read this, i can think you use twice a resizing method...Tell me i'm wrong..!

You can use colormatrix(mmx=true) instead of colormatrix()

To find what is wrong with your config, try to uncheck one by one your setting in ffdshow. For my part, when nothing is used in ffdshow my cpu is about 20% in WRM9 or Overlay.
Maybe try to re install all software...Maybe it helps...

Thanks for you suggestions, i am not resizing in FFdshow just in avisynth.

@Admy,,,

I will look into your suggestions and give you guys a feed back because i am now in the process of rubuilding my machine.

thanks for you inputs and time.

donalarms
11-21-05, 02:20 PM
I rebuilt my machine last night and reintalled Theatertek 2 with FFDshow/avisynth

- uncheck/turn off your all other ffdshow filters
- system not crashing and picture looks good.
- can i push is further by turning on some filters like denoise3d?
- I have not tried hqdn3d(1), plan on giving it a shot tonight

thanks for the help guys.

new2htpc
11-21-05, 06:27 PM
Is there another location to download limitedsharpen (for multiprocessor use)? The one on savefiles.com is not accessable as the file servers are down.

Regards,
Dean

I'm in the same situation as Dean. Could somebody please direct us to somebody or somewhere that has the limitedshapen.avs file :D I'm hoping to get that file and try out what everyone's raving about (if I get everying working right anyway ;) ). Thanks in advance

Socio
11-22-05, 02:55 PM
I'm in the same situation as Dean. Could somebody please direct us to somebody or somewhere that has the limitedshapen.avs file :D I'm hoping to get that file and try out what everyone's raving about (if I get everying working right anyway ;) ). Thanks in advance

I wil try to find some other place to upload it today and post a link here when I do.

Socio
11-22-05, 03:12 PM
OK try this link for Limitedsharpen:

Limitedsharpen (http://www.filefactory.com/get/f.php?f=63093b638650ee6ce65988c3)

mzemina
11-22-05, 03:54 PM
OK try this link for Limitedsharpen:

Limitedsharpen (http://www.filefactory.com/get/f.php?f=63093b638650ee6ce65988c3)

Socio - looks like it didn't upload correctly. FileFactory says: "The file you have requested did not complete the upload process correctly. Please upload again." I tried it twice.

Mrkazador
11-22-05, 06:00 PM
Doesnt work......

adamy
11-22-05, 07:04 PM
Try this.... I have upload the zip containing most of the latest files mentioned in this thread and I am using them fine (includes the files to be copied to the Plugin directory)

Please note I cannot submit URL yet in this forum, please reform your URL to the
filefactory site

/get/f.php?f=394053eda06f6575c71991d3

Socio
11-22-05, 07:34 PM
Ok done:

adamy's zip with Limitedsharpen (http://www.filefactory.com/get/f.php?f=394053eda06f6575c71991d3)


Nice package, I checked it out, includes most of what is needed.

breez
11-23-05, 09:51 AM
Any tips? Playback is a bit jerky with LimitedSharpen eventhough CPU usage hovers only around 40% (basic settings LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=60,oversho ot=0).

MPC/VMR9 (renderless)/divx file/no other processing besides LimitedSharpen
1.9GHz Athlon XP
Milan's ffdshow 15 nov

adamy
11-23-05, 10:29 AM
Breez,
You used noise filter in FFDSHOW? I used P4 3.0Ghz HT on LS resize4lanzos(1360,768) and got 10-20 frames only if I use noise filter in FFDSHOW, but smooth if turned it off. Then I used the LS hqdn3d instead, picture remained smooth.

breez
11-23-05, 10:42 AM
Nope :/ Everything else turned off (to ensure the CPU isn't choking..). I'll try the older masktools (2.0a8) if it helps.

edit: Got things backwards.. again

edit2: No help from older masktools.

breez
11-23-05, 11:10 AM
Ok, it seems to be a general problem with avisynth - the jerkiness is there even when the avisynth box is empty (just avisynth enabled, no scripting etc. at all).

Li On
11-23-05, 11:28 AM
There are too MANY versions of each component out there. Try those exact versions from those working setup.

regards,

Li On

breez
11-23-05, 11:37 AM
Ah, yes, I originally downloaded adamy's zip. Had to replace RemoveGrainSSE2 with RemoveGrainS (tried RemoveGrain too).

On a second try, it didn't jerk with nothing on avisynth, but did jerk with eg. hqdn3d which should use only the component hqdn3d.dll (?).

Tulli
11-23-05, 01:09 PM
Try this.... I have upload the zip containing most of the latest files mentioned in this thread and I am using them fine (includes the files to be copied to the Plugin directory)

/get/f.php?f=394053eda06f6575c71991d3

Thanks a lot. Very handy. Just gave it a try on my 3.2 P4, ATi x800pro, lanczos2->2x using Regular Avisynth script for DVDs included in your ZIP file and CAN'T BELIEVE MY EYES. Gorgeous, crisp picture :eek: I though I was O.K with DScaler sharpening ffilter iwith ffdshow but this is really much better :cool:

new2htpc
11-23-05, 03:10 PM
Ok done:

adamy's zip with Limitedsharpen (http://www.filefactory.com/get/f.php?f=394053eda06f6575c71991d3)


Nice package, I checked it out, includes most of what is needed.

Thanks again. I just got out of shoulder surgery last night. Needless to say, I'll be watching DVDs for some time to come. I got everything working (per your settings Socio :) , thanks)

Right now the CPU cycles are running around 30% to 60% on my system.

P4 3.0 (not overclocked)
ATI Radeon 9600
1 GB RAM
ABIT AI7
Tosiba DLP
native resolution 1776 x 1000
output size 1920 x 1080

I used to use "standard settings" in ffdshow (if there is such a thing :rolleyes: ) Anyway now with Avisynth enabled, DVD movies never looked so good :eek: . Do you think Socio that there are any other ways to add even more clarity to the picture since it seems I have a tiny bit more CPU room to play with :D ?

Again, thanks for everything.

havix
11-23-05, 06:00 PM
Anyone else notice this raising the black levels? Right now I'm running VMR9 with levels set at 16-235.
Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")
LimitedSharpen(ss_x=1.3,ss_y=1.3,Smode=2,strength=60)

Edit: Ah, I see, it's a VMR9 thing.

adamy
11-23-05, 07:10 PM
Thanks again. I just got out of shoulder surgery last night. Needless to say, I'll be watching DVDs for some time to come. I got everything working (per your settings Socio :) , thanks)

Right now the CPU cycles are running around 30% to 60% on my system.

P4 3.0 (not overclocked)
ATI Radeon 9600
1 GB RAM
ABIT AI7
Tosiba DLP
native resolution 1776 x 1000
output size 1920 x 1080

I used to use "standard settings" (if there is such a thing :rolleyes: ) Anyway with Avisynth, DVD movies never looked so good :eek: . Do you think Socio that there are any other ways to add even more clarity to the picture since it seems I have a tiny bit more CPU room to play with :D ?

Again, thanks for everything.

Is your CPU HT enabled? Some one in this thread said that the CPU% is reported on a single CPU, that meands 60% is close to the 100% effectively. I have similar CPU and cpu util as yours and looks I have not much room to go.

new2htpc
11-23-05, 07:55 PM
Is your CPU HT enabled? Some one in this thread said that the CPU% is reported on a single CPU, that meands 60% is close to the 100% effectively. I have similar CPU and cpu util as yours and looks I have not much room to go.

I checked the BIOS and hyperthreading is enabled. I do have a single CPU. I think that my CPU peaks at 60% to 70% but not for extended periods of time. Most of the time it looks to be hovering around 30% to 40%.

I guess I shouldn't be so greedy and be happy with what I have :D

Unless there's a way to get more... :cool:

seehowyouare
11-23-05, 08:52 PM
Anyone else notice this raising the black levels? Right now I'm running VMR9 with levels set at 16-235.
Edit: Ah, I see, it's a VMR9 thing.

Hi all,

I am new to the "video tweaking" scene and I cannot understand how to fix my "grey" blacks in VMR / YV12.

converttoyv12 and colormatrix parameters, used together or separately, have no effect on the picture at all. They are being loaded but make no changes that I can see.

Setup is AMD3000+, MPClassic, VMR9 windowed, nvidia 81.89 drivers (VMR enabled). PC is for watching medium quality DivX material. ffdshow setup exactly the same as Socio's setup in Post #??? Overlay mixer disabled.

Setting output to YV12 gives me "grey" blacks.
Setting output to RGB32 gives me "black" blacks however it appears to darken the entire image and that's not good.

Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")
hqdn3d(6)
LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=40)
converttoyv12()

BTW On behalf of everyone, thanks for all the work Socio ! I just found and finished reading this thread from start to finish and the commitment to editing and helping others is impressive. Good work !

EDIT - Search and ye shall find.. there are a few threads about VMR and BTB.

uk.steve
11-26-05, 04:15 PM
I tried this script with the plugins on my PIV PC and the image quality is superb. CPU usage seems to hover around 21% - 25% on PAL 720x576 DVD's.

Im using this script for now

Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")
SetMTmode(2)
MT("LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=40,oversho ot=7)")
converttoyv12()


NOTE: For some reason it takes several seconds for this new Masktools/Limitedsharpen combo to initialize, so if you start up Zoomplayer hit the playbutton and it looks like it is locked up its not just give it time it may take up to 20 seconds.

Does anyone know how to remove this delay at the start of playing a DVD?

Socio
11-26-05, 08:25 PM
Does anyone know how to remove this delay at the start of playing a DVD?

Make sure you are using the last Masktool version I posted or that is in adamy package, that is the fastest starter.

You will still have a delay it has to do with the masktool plugin, it is kind of a trade off, slower starting but we get about a 25-30% speed boost over older versions of Limitedsharpen setup once it is running.

Sinobi
11-26-05, 10:54 PM
I had around 105% cpu load with PAL on the old LS.
With the new LS I'm around 65%.
The PQ seems a little softer although it's still as sharp,
almost as if the film looks more analog or filmlike if you will, but still sharp.
I like the effect.
It's not quite as impressive as the old LS, but instead it grows on you.
Anyway it's great not to have a 66 degree celsius P4 anymore....

Henrik

khordo
11-27-05, 01:48 PM
I have a question about : converttoyv12()

I see it in all avisynth's call. For my part :
- ZP is set to YV12
- DSCALER 5 use YV12 output
- FFDSHOW is set to YV12 in output and in avisynth (input colorspace).

So every component are set to YV12. So, what's the purpose of converttoyv12() ?
And why at the end of the call ?

Socio
11-27-05, 02:41 PM
I have a question about : converttoyv12()


So every component are set to YV12. So, what's the purpose of converttoyv12() ?
And why at the end of the call ?

Because when using limited sharpen and VMR9 renderer colors seem to become a little off so converting to YV12 seems to reset and off colors back to normal.

Socio
11-27-05, 03:10 PM
Here are a couple new toys to play with:

First is another denoising process you can play with you don't need to do anything if you have Limitedsharpen already working except disable Denoise3d in Blur&NR because you won't need it. I like it better it does a nice job of denoising with out blurring or masking so image is a bit clearer.

How it works:

For light denoising put this above the Limitedsharpen in in ffdshow avisynth you can using anything from 0.25 to 0.50 in the last number set.

mergeluma( removegrain(2,-1), 0.25)

For heavy denoising use this line with anything from 0.08 to 2 in the last number set, however anything past 1 starts to remove detail.

mergeluma( removegrain(4,-1), 0.08)


Here is another one of Didees scripts called oddly enough abcxyz that I fixed to run with the lastet masktools. It is a Dehalo and deartifacting script it works well with old DVD movies, recorded and Live TV and Anime or anything with a lot of haloing or artifacts.

Get it here:abcxyz (http://www.filefactory.com/get/f.php?f=8f91767985b4a4e9f9c1d5ea)

You can put it in after denoising and before Limitedsharpen or after Limitedsharpen which ever gives you the best results. I also included a couple pre-made scripts using this script and the above mentioned denoising process that I use for LiveTV.

Here is an example of my call:


Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\abcxyz.avs")


MT("mergeluma( removegrain(4,-1),0.75)
abcxyz()
LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=60,oversho ot=7)",avisynthTS=true)



Enjoy!

khordo
11-27-05, 04:36 PM
Here are a couple new toys to play with:

First is another denoising process you can play with you don't need to do anything if you have Limitedsharpen already working except disable Denoise3d in Blur&NR because you won't need it. I like it better it does a nice job of denoising with out blurring or masking so image is a bit clearer.

How it works:

For light denoising put this above the Limitedsharpen in in ffdshow avisynth you can using anything from 0.25 to 0.50 in the last number set.

mergeluma( removegrain(2,-1), 0.25)

For heavy denoising use this line with anything from 0.08 to 2 in the last number set, however anything past 1 starts to remove detail.

mergeluma( removegrain(4,-1), 0.08)


Here is another one of Didees scripts called oddly enough abcxyz that I fixed to run with the lastet masktools. It is a Dehalo and deartifacting script it works well with old DVD movies, recorded and Live TV and Anime or anything with a lot of haloing or artifacts.

Get it here:abcxyz (http://www.filefactory.com/get/f.php?f=8f91767985b4a4e9f9c1d5ea)

You can put it in after denoising and before Limitedsharpen or after Limitedsharpen which ever gives you the best results. I also included a couple pre-made scripts using this script and the above mentioned denoising process that I use for LiveTV.

Here is an example of my call:




Enjoy!

Thank you Socio.
For my part, i use denoise 3D HQ in FFDSHOW. Did you compare all the denoising method ?

- Denoise 3D-HQ in FFDSHOW
- mergeluma( removegrain(2,-1), 0.25)
- mergeluma( removegrain(4,-1), 0.08)
- HQDN3D.dll

In my System, HQDN3D needs too much power to work. So i stay with
denoise 3D-HQ.
So with mergeluma ? What's the result ?

Also, Socio thank you for the converttoYV12 information ;)

Mr.Bitey
11-27-05, 09:57 PM
Hi all,

Setting output to YV12 gives me "grey" blacks.
Setting output to RGB32 gives me "black" blacks however it appears to darken the entire image and that's not good.


I found that in ffdshow RGB32 crushes blacks (nothing below 16) whilst YV12 passess 0-16.. ie. YV12 looks grey because black seems to be at 0 rather than 16, and RGB32 looks black because the lowest black it passes through it 16.

My fix: dont convert to RGB32 :-)

Cheers,
Bitey

Socio
11-29-05, 08:42 AM
Here is the latest incarnation of a dehaloing de artifacting script of Didee's that I modified to work with the latest masktools. I like it a bit better than the abcxyz script I posted a couple posts up. You use it the same way as the abcxyz script but instead of using abcxyz() in your call use DeHalo_alpha()


Get it here: DeHalo_alpha (http://rapidshare.de/files/8328414/DeHalo_Alpha.rar.html)

Se what you think.

moshmothma
11-29-05, 10:34 PM
Hi, I am using the following AVISynth Script with FFDShow? Can anyone tell me why there is a thin black line that runs through the center of the video? Thanks

Import("C:\Program files\AviSynth 2.5\plugins\LimitedSharpen.avs")
MT("LimitedSharpen(ss_x=1.2,ss_y=1.2,Smode=3,strength=40,oversho ot=7)",avisynthTS=true)
converttoyv12()

Socio
11-30-05, 09:23 AM
Hi, I am using the following AVISynth Script with FFDShow? Can anyone tell me why there is a thin black line that runs through the center of the video? Thanks

Import("C:\Program files\AviSynth 2.5\plugins\LimitedSharpen.avs")
MT("LimitedSharpen(ss_x=1.2,ss_y=1.2,Smode=3,strength=40,oversho ot=7)",avisynthTS=true)
converttoyv12()


Strange, perhaps you have accidentally enabled a checkbox in one of the ffdshow functions to "process only half the image", it is the only thing I can think of that might do that.

Nightanole
11-30-05, 12:02 PM
EH i havent used this in over 6 months so im sure there is some new developements. Anyway i have a new system, 7800gt with pixel shader 2.0 for overlay 9 scaling (no more needed ffdshow to resize) and a amd 3800x2. Well on the 540p rez avis i dont have enough horsepower to do limited sharpen, so i have to disable it. Is there some line i can put in like i could with ffdshow resize so that i bypasses limited sharpen if the video is a fixed size or larger? Or better yet anyone figure out any dual core tricks?

Nightanole
11-30-05, 01:05 PM
Ok i think i got most of it going. I am only using files from adamy's zip. here it goes.

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mt_masktools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\warpsharp.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\hqdn3d.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MT.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\RemoveGrainSSE2.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\ColorMatrix.dll")

Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")

MT("hqdn3d(2).LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength= 40,overshoot=7).converttoyv12()",avisynthTS=true)

#hqdn3d(2).LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength =40,overshoot=7).converttoyv12()


I swapped the avisynth.dll for the MT one( crashes after 10 sec without it even with the 2.5.6 beta). Now i notice almost zero diff (ok maybe 90/10) going from mt to standard. Is it sopose to be split like this? If i wasnt 400mhz over clocked i couldnt even use it.

IM also using sse2 gcc 11/26/05 build of ffdshow. Eh atleast with this new build i can use it with my 540p stuff.

Also how does the anime script work? Its so odd of a code i dont know to put it in the ffdshow avs window or add it some where to the limited sharpen avs script.

function Levels_Smooth(clip clp, int min_luma, int max_luma)
{
pc2tv = clp.Levels(1, 1, 255, min_luma, max_luma, coring=false)
pc2tvd=mt_lutxy(clp,pc2tv,"x y - 4 * 128 +","x y - 4 * 128 +","x y - 4 * 128 +",U=3,V=3)
mt_lutxy(clp,pc2tvd.removegrain(mode=19),"x y 128 - 4 / -","x y 128 - 4 / -","x y 128 - 4 / -",U=3,V=3)
}

mikesusangray
11-30-05, 04:28 PM
I swapped the avisynth.dll for the MT one( crashes after 10 sec without it even with the 2.5.6 beta). Now i notice almost zero diff (ok maybe 90/10) going from mt to standard. Is it sopose to be split like this? If i wasnt 400mhz over clocked i couldnt even use it.


To observations:

I've noticed that my system seems to run better if I *don't* try to run hqdn3d under MT. Thus, hqdn3d comes first, followed by the MT call.

Also, I believe you'll get somewhat better performance by inserting the folowing line before the MT call:

SetMTmode(2)

I'm not sure which mode MT defaults to, but (2) seems to be the best for this context. (1 is the fastest but doesn't work for many filters; 3 through 5 are slower.)

Peace,

Mike

Socio
11-30-05, 05:29 PM
Also how does the anime script work? Its so odd of a code i dont know to put it in the ffdshow avs window or add it some where to the limited sharpen avs script.


You put the anime.avs in your avisynth plugin folder and you can use it in ffdshow\avisynth like this:


Import("C:\Program Files\AviSynth 2.5\plugins\Anime.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")


SetMTmode(2)
MT("Levels_Smooth(6,227).LimitedSharpen( ss_x=1.0, ss_y=1.0,Smode=3, strength=40, overshoot=1 )")



Also this latest version of LimitedSharpen with the new masktools is already much faster than the previous versions from months ago, using MT should make it faster.

If you want to see what kind of difference you can do what I did and that was pop in a DVD and run your setup with out using MT, enable the OSD in ffdshow and enable decoder fps under OSD. finally add this at the bottom of your call in ffdshow\avisynth:

Lanczos4Resize(1920,1080)

Start the movie and check your decoder FPS, next do the same with using the MT in your call and check your decoder fps. I saw a good 20-30% increase in FPS using MT when I did it.

mikesusangray
11-30-05, 06:04 PM
[Also this latest version of LimitedSharpen with the new masktools is already much faster than the previous versions from months ago, using MT should make it faster.

Say Socio,

Could you put up a link to that new version? I've seen it mentioned a few times, but I've never figured out where to get it. I found the new masktools OK, though.

Peace,

Mike

BTW, has anyone ever tried to get Didee's IIP working realtime?

mikesusangray
11-30-05, 06:11 PM
Say Socio,

Could you put up a link to that new version? I've seen it mentioned a few times, but I've never figured out where to get it. I found the new masktools OK, though.

Peace,

Mike

BTW, has anyone ever tried to get Didee's IIP working realtime?

Arr - sorry - I just realized that I had it in the same little download that had the masktools.

Mike

PS But I'm still curious about IIP ...

Mr.Bitey
11-30-05, 06:19 PM
Socio,

Is running lanczos4 resize in the avisynth script faster than through ffdshow?

Cheers,
Bitey

Socio
11-30-05, 07:07 PM
PS But I'm still curious about IIP ...

IIP is great for processing DVD and videos to be stored on harddrive or burned on DVD's but no way it can be used in real-time unless you like to watch movies at 1-2 fps. :D




Is running lanczos4 resize in the avisynth script faster than through ffdshow?



Depends if you are using older versions of ffdshow like Andy's then it is probably faster but in the latest versions off ffdshow the ffdshow lanczos resize seems to be faster and is what I use.

Try both ways and see what you think.

N3W813
11-30-05, 08:34 PM
Question about RemoveGrain.......shouldn't new P4 users use RemoveGrainSSE3 instead?

Thanks :)

Socio
11-30-05, 11:00 PM
Question about RemoveGrain.......shouldn't new P4 users use RemoveGrainSSE3 instead?

Thanks :)

Sure if your P4 supports SSE 3 but not all P4"s support SSE3

deandob
12-01-05, 07:17 AM
I find the latest (msvc) version of ffdshow lanczos resize faster than avisynth. Unfortunately the MT wrapper wont work with calls that adjusts the size of the image so the LanczosResize call has to be outside MT.

Can someone explain how the supersize thing works in limitedsharpen? I have an AMD x2 3800 and dont have the horsepower to use supersize.

Regards,
Dean

Joe Przybylski
12-01-05, 09:34 AM
I'm happy to report this looks much better than when I tried it a few months back. I'm using the Smode=4 explained in another thread that gives fantastic sharpening results.

I'm sad to say that, when using this combo with TheaterTek 2.2 with video based material stutters are horrible no matter what type of resize I do...

Nightanole
12-01-05, 09:45 AM
Um i dont need the p4 version of masktools do i? I mean the latest build is from 2004.

I swapped the sse2 grain with the sse3 version and then made hqdn3d outside of the mt command line. Im down to 50% cpu usage of 1 cpu. Hell with the old limited sharpen i was using at the begining of the week i was at 90-110% cpu.

Socio
12-01-05, 09:49 AM
I'm sad to say that, when using this combo with TheaterTek 2.2 with video based material stutters are horrible no matter what type of resize I do...

I know I get bad stutter when using VRM9 with some of that material or LiveTV
try using the VMR7 or Overlay renderer with video based material, either does the trick for me.

Joe Przybylski
12-01-05, 10:29 AM
I know I get bad stutter when using VRM9 with some of that material or LiveTV
try using the VMR7 or Overlay renderer with video based material, either does the trick for me.

Thanks! I'll give it a try...

mikesusangray
12-01-05, 03:27 PM
Say guys -

Thought I'd ask a question and give a report on my progress. First, the question:

It isn't an Avisynth issue per se, but avisynth may have a solution:

When I use vmr9 renderless on 16:9 material on my 4:3 DLP projector I get a thin border above and below the picture. I've no idea why I have the border - but it does make one thing clear: vmr9 is not delivering true blacks. If I switch to overlay the difference is obvious.

By adding a -16 luminescence offset in ffdshow I can get the blacks down and make the border blend in with the rest of the 4:3 border. However, to my surprise, the picture properties tweak adds some load to the system, leading to stutters.

I'm wondering whether there are some avisynth tricks that could get my colorspace sorted out at the beginning of my avisynth commands.

* * * *

As for the general report:

I'm running ZP 4.51 with the Nov 11 2005 FFdshow by Milan Cutka. I have 512 MB on a 2.8 gig (stock - no OC) Northwood with HT under XP sp2. I'm resizing through ffdshow with lanczos2, no sharpening, to 1280X720. Avisynth as follows:

Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")

undot()

SetMTmode(1)

MT("hqdn3d(2).LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=4,strength= 50)")

Notes: I've discovered the SetMTmode(1) works too - and it's supposed to be faster than mode(2). Also, I've put hqdn3d back inside the MT section after taking the opposite tack yesterday. Finally, that's the latest version of Limited Sharpen.

I'm hovering right at the edge of a stutter - sometimes it takes a few tries to work - in particular, the AC3 passthrough seems to need a few tries before it "clicks." A lot of times I don't get any audio output.

Notwithstanding MT, I'm still not getting a 50-50 distribution between both virtual processors. When I get stutter, the overall CPU usage is usually somewhere around 70% - but the problem side is maxed out.

Anyway, once I get the thing going the picture is amazing, it it'll stay stable throughout a movie.

Peace,

Mike

Socio
12-01-05, 04:49 PM
Mano over at Doom9 released a new version of masktools 2.0 a10 with a few bug fixes you can get it here (http://manao4.free.fr/masktools-v2.0a10.zip)

Socio
12-02-05, 02:03 PM
Good news!

Limitedsharpen just got even faster! :D

Thanks to mg262 over at Doom9 who has made parts of the Limitedsharpen script in to a dll which increases the speed of the Limitedsharpen process.

All you need to do is download this new modified Limitedsharpen.avs and Limitedsupport dll and put them in your avisynth plugin folder overwriting the old Limitedsharpen.avs and you are good to go.

Get it here: Fast Limitedsharpen (http://rapidshare.de/files/8499762/LimitedSharpen.rar.html)

Mrkazador
12-02-05, 04:01 PM
Wow. This new one works even better. My amd 64 3400+ only hits 80% with this and lanczosresize 4.

donalarms
12-02-05, 04:49 PM
Good news!

Limitedsharpen just got even faster! :D

Thanks to mg262 over at Doom9 who has made parts of the Limitedsharpen script in to a dll which increases the speed of the Limitedsharpen process.

All you need to do is download this new modified Limitedsharpen.avs and Limitedsupport dll and put them in your avisynth plugin folder overwriting the old Limitedsharpen.avs and you are good to go.

Get it here: Fast Limitedsharpen (http://rapidshare.de/files/8499762/LimitedSharpen.rar.html)

Do we have to select any filters in ffdshow configuration or if we select Avisynth, i am guessing we will have to delete the call script...!! How exactly does this get called by ffdshow.

khordo
12-02-05, 04:49 PM
Two Days Without reading any news...And now i come back and fin the FASTLIMITED SHARPEN...World runs so fast...

Socio
12-02-05, 04:58 PM
Do we have to select any filters in ffdshow configuration or if we select Avisynth, i am guessing we will have to delete the call script...!! How exactly does this get called by ffdshow.

No everything is as it was before,just use the same call scripts you have been using.

N3W813
12-02-05, 05:55 PM
This is really cool stuff, thanks for the info Socio!!

I'm able to use LS with 2x Lanczos4resize with film material at ~35% cpu usage on a 3.0GHz HT prescott. :) DVDs have never looked so close to HD!! :D

This is my script in ffdshow:

Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpenFaster.avs")

MT("LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=4,strength=50,oversho ot=7)",avisynthTS=true)
converttoyv12()

donalarms
12-02-05, 06:53 PM
No everything is as it was before,just use the same call scripts you have been using.

Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\abcxyz.avs")


MT("mergeluma( removegrain(4,-1),0.75)
abcxyz()
LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=60,oversho ot=7)",avisynthTS=true)
ColorMatrix(mmx=true)
Lanczos4Resize(1920,1080)

With this call script i am getting an error:

Script error: Invalid arguement to function 'MT'
(ffdshow_filter_avisynth_script, line 7)

I had no errors previously to updating to the faster Limitedsharpen.

Any ideas...

thanks

Socio
12-02-05, 08:01 PM
With this call script i am getting an error:

Script error: Invalid arguement to function 'MT'
(ffdshow_filter_avisynth_script, line 7)

I had no errors previously to updating to the faster Limitedsharpen.

Any ideas...

thanks

Some kind of error in the ffdshow\avisynth window on the limitedsharpen line but your call looks ok except for the space in overshoot. You can try highlighting all the test and deleting it and hand type it back in. Also try it with only YV12 enabled in the input colorspaces boxes in that same window.

I tried the same call and it works for me by the way.

mikesusangray
12-03-05, 03:11 AM
I downloaded the latest set of limitedsharpen stuff. I loaded it up. I ran ZP.

And I got a filter connection error.

[FFDShow Video Processor].Out ---> [Video Mixer Renderer 9].VMR Input()

Followed by the old "no common media" thing.

Huh?! It was working before!

I removed the AVISynth field in FFDShow, still no dice. I removed all the fields in FFDShow, nothing. I switched to Overlay, no good - same error type. I checked and unchecked "hardcode for PAL" in Dscaler. And switched decoders from Dscaler to Intervideo. And checked and unchecked Codecs/Raw Video/All Supported in FFDShow. And reinstalled FFDShow. And rebooted.

I threatened the computer with frightening vocabulary words and a fate worse than death.

All to no avail.

The only way of using ZP right now is to remove FFDShow from the chain.

In short, I've tried it all, and the thing seems to be terminally borked.

Any help out there??? I can't believe trying an AVISynth filter could do this to me ...

Peace,

Mike

mikesusangray
12-03-05, 03:38 AM
Any help out there??? I can't believe trying an AVISynth filter could do this to me ...

Problem solved. I had somehow managed to uncheck all the supported colorspaces under "Output." BEats me how I did that, but the probem is solved. My apologies for wasting your bandwidth ...

Peace,

Mike

Kador
12-03-05, 07:33 AM
Questions :
- what's the difference between Smode 3 and 4 ?
- I cant get SetMTmode to work (unsupprted function, though I have the MT dll)
- what's the official source for MT dll ?
- what is "overshoot" ?

Thanx

khordo
12-03-05, 10:09 AM
Good news!

Limitedsharpen just got even faster! :D

Thanks to mg262 over at Doom9 who has made parts of the Limitedsharpen script in to a dll which increases the speed of the Limitedsharpen process.

All you need to do is download this new modified Limitedsharpen.avs and Limitedsupport dll and put them in your avisynth plugin folder overwriting the old Limitedsharpen.avs and you are good to go.

Get it here: Fast Limitedsharpen (http://rapidshare.de/files/8499762/LimitedSharpen.rar.html)

I have and Error in the call.
"There is no founction called "SimpleAverage"".

Something is very strange. I have 2 Partitions. 1 for Pc, 1 For PCHC.
In the PCHC the new script doesn't work.
On the other partition (Witch use the same files and same directory, the same soft with same version) the script is working fine...Strange isn't it ?

Help me please !

Socio
12-03-05, 12:59 PM
I have and Error in the call.
"There is no founction called "SimpleAverage"".


SimpleAverage is a function of the Limitedsupport dll apparently ffdshow is not finding and loading that dll, make sure it is your plugin folder.

khordo
12-03-05, 03:47 PM
SimpleAverage is a function of the Limitedsupport dll apparently ffdshow is not finding and loading that dll, make sure it is your plugin folder.

Ok...I found the problem. Everything is working fine...Thanks MR SOCIO

Socio
12-03-05, 09:37 PM
I mentioned this in the Limitedsharpen Live Tv thread and thought I would post about here as well.

If you use ffdshow gradual denoise in your set up I found and even better way to denoise.

This requires the use of Dscaler plugin, those of you not familiar with Dscaler can download Dscaler here (http://deinterlace.sourceforge.net/downloads.htm) I am using version 4.1.8. Just install the Dscaler program and then in ffdshow under Dscaler browse to the Dscaler folder for the plugins. Or install Dscaler and uninstall ffdshow and reinstall ffdshow and during the installation point ffdshow to the Dscaler folder if it does not auto find it. This option should get you a number of extra deinterlacers to play with in ffdshow.


Once Dscaler is installed, in ffdshow pick the adaptivenoise plug in, I have fast memory enable, noise reduction set to 50 and spatial smoothing enabled and set to 145 for live TV you should just try default settings for DVD playback to start with and adjust to taste.

mikesusangray
12-04-05, 02:14 AM
[...] pick the adaptivenoise plug in, I have fast memory enable, noise reduction set to 50 and spatial smoothing enabled and set to 145 for live TV you should just try default settings for DVD playback to start with and adjust to taste.

Gee.

You know, we've definitely got a buyer's market in denoisers. In this thread I have counted at least seven (not counting dehalo stuff):

dscaler adaptivenoise,
ffdshow denoise3d (HQ),
hqdn3d,
temporalsoften,
dnr2,
removegrain (alone),
mergeluma

I'm using hqdn3d at the moment, but I'd be very curious to hear how folks compare them in terms of pq and cpu hit.

Peace,

Mike

tetsuo55
12-04-05, 10:59 AM
Socio

there are a lot of different settings and options


and its getting very confusing, especially since there are many threads about the same subject but with different goals

some questions

Q1
have you tried the newest ffdshow builds, there where some fundemental changes in the way it handles avisynth now, notice any changes?

Q2
Would it be possible to make a website, with image comparisons, combining all possibilities

We could make seperate pages for the different formats

Divx
DVD
live TV
recorder TV
HD TS

And on those pages list the needed software (latest versions)
And the needed settings + screenshot comparisons

I would like to see the whole tree

best combination for deinterlacing>denoising>sharpening>upscaling.

i could help if you want, we could use any kind of free hosting site

Socio
12-04-05, 11:32 AM
Gee.

You know, we've definitely got a buyer's market in denoisers. In this thread I have counted at least seven (not counting dehalo stuff):

dscaler adaptivenoise,
ffdshow denoise3d (HQ),
hqdn3d,
temporalsoften,
dnr2,
removegrain (alone),
mergeluma

I'm using hqdn3d at the moment, but I'd be very curious to hear how folks compare them in terms of pq and cpu hit.

Peace,

Mike

For me a combination of the dscaler adaptivenoise and the mergeluma calls in avisynth are hands down the best. I use fairly strong settings for Live analog cable TV viewing and between those denoising\smoothing filters and Limitedsharpen the PQ is so clean, detailed and sharp, the filtered output deserves its own classification like AnalogEX or something.

Here is a toned down version of the avisynth call I use for LiveTV that I have been testing for DVD playback in conjunction with dscaler adaptivenoise currently @ default settings with spatial smoothing disabled.

Note: I found that spatial smoothing for DVD playback to be pretty movie dependant. For example at default settings it works good for and old western Rio Bravo but not so good for a newer movie like Sin City. However you might be able to still use it for all DVD movies just may have to crank it down some. Definitely warrants some more experimentation before leaving it permanently disabled that's for sure.

As you will notice I call mergluma twice once for stronger denoising prior to limitedsharpen and again for very light denoising after sharpening to clean up any light noise possibly created in the sharpening process.



Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")

MT("mergeluma( removegrain(4,-1), 0.8 )
LimitedSharpen(ss_x=1.0,ss_y=1.0,Smode=3,strength=40,oversho ot=7)
mergeluma( removegrain(2,-1), 0.25 )",avisynthTS=true)

Socio
12-04-05, 11:58 AM
Socio

there are a lot of different settings and options


and its getting very confusing, especially since there are many threads about the same subject but with different goals

some questions

Q1
have you tried the newest ffdshow builds, there where some fundemental changes in the way it handles avisynth now, notice any changes?

Q2
Would it be possible to make a website, with image comparisons, combining all possibilities



Q1= I am using one of the newest builds and realy have not noticed anything in the way it handles avisynth.

Q2 = I know someone is already planning a something based on this thread but I don't want to let their cat out of the bag so to speak.

However an entire website devoted to it would be cool but a major undertaking, so much information to cover, scripts/calls and offshoots of those scripts/calls to document and demonstrate not to mention the plethora of plugins and their variables, my head is spinning just thinking about it.

I will definitely give it some thought, it would make things less confusing than our forum thread and a give us the ability to have better visual demonstrations of what things can do.

Laserfan
12-04-05, 12:51 PM
...my head is spinning just thinking about it...Socio, I have been lurking here as well as over at Doom9, and I gotta tell ya MY head is spinning for all the twists & turns & changes & "shorthand" used in these discussions.

It would at a minimum be wonderful is somebody made a list of all the "pieces of the puzzle" that are needed to make this work, and their revision levels.

I, like I suspect many others here, believe I am capable of putting the puzzle together, but the parts appear a bit scattered (!) and not always clearly identified as to source-and-revision. :confused:

p.s. I like tetsuo55's suggestion for an all-inclusive website, but a good (and easy?) starting point would be if someone were to make a simple list...

new2htpc
12-05-05, 01:48 PM
Hello all. First please allow me to thank everyone (especially Socio) for all the great information and advice. All the information is great. If I may, I have a couple of questions... I'm running an ATI Radeon 9600 (Sapphire Atlantis) and am currently wondering if I should jump on the Nvidia bandwagon and get a 6600GT (PNY version with a component breakout box). I'm not using powerstrip so there is a little bit of overscan. However, there is somewhat of a custom resolution utility in ATI control pannel thing. It allows you to shrink or enlarge the desktop area. Although one could expand the resolution to cover the entire screen (mine is a Toshiba 52HMX84), you loose a bit on the edges. So, does the Nvidia 6600GT demonstrate less overscan? Is there a way to adjust the positioning (without the use of powerstrip) of the desktop area rather than just increase the resolution like with the ATI 9600 with the Nvidia 6600GT?

The second question that I have is that I'm currently using the Nvidia codecs along with the avisynth scripts (thank you Socio and everyone else) while outputing using my ATI 9600. So, would it be advantageous to port over to an Nvidia 6600GT? Would the Codecs run better wi