Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th January 2007, 17:03   #81  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,733
Quote:
Originally Posted by Jeremy Duncan View Post
I can only remember the time I chopped up his Spresso code.
After I deleted the changed code he was not angry anymore.

http://forum.doom9.org/showthread.ph...080#post934080

What I mean is that people are encouraged to do quite the incorrect things with the functions. I know Didée doesn't like that much, and considering the fact that he's done a lot for the Avisynth community, I'd really listen to his advice

EDIT: I hope that "casting pearls before the swine" isn't directed at me
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 25th January 2007, 21:48   #82  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
Merlin7777,

No, I googled it and found it myself.

foxyshadis,

The version you made is nice.

HeadBangeR77,

You must understand.
Didée, and Foxyshadis, might want to see what people have done with their work.
I know what it's like to see a new post in my thread, so I like to add nice stuff, what I think is nice, to other peoples threads.

I'm sorry I'm aggravating you.

Here's what I've done with Seesaw, LSF, and Soothe.
I made one with Soothe and LSF, just so you know in case you wanted to see that.

Just download the folder, look at the FFDshow configurations and compare the pictures;

Pictures showing the Detail quality of the different configurations. Updated January 25, 2007

The rules say there is no best, Boulder.
What you linked to in no way makes my work with Didée's stuff ant less important than the fine stuff anybody else has done with it.
Because there is no best according to the rules.
Didée is happy that I'm happy with the results.
That's all that's important.

In case your wondering why I keep deleting my posts. I'm scared I'm going to get the lash if I have more than one post in this thread.
Jeremy Duncan is offline   Reply With Quote
Old 26th January 2007, 01:32   #83  |  Link
HeadBangeR77
Registered User
 
HeadBangeR77's Avatar
 
Join Date: Dec 2006
Location: Heidelberg (DE), Kraków (PL)
Posts: 519
Quote:
Originally Posted by Jeremy Duncan View Post
In case your wondering why I keep deleting my posts. I'm scared I'm going to get the lash if I have more than one post in this thread.
Fine for me, 'cause I've read through this thread several times, but from an objective point of view you're making it even less transparent now. If I was to search for some important info for the first time, I would get a headache, seriously

Could someone soothe () this thread, so it does make sense again?
__________________
"Only two things are infinite: the universe and human stupidity, and I'm not sure about the former."
HeadBangeR77 is offline   Reply With Quote
Old 26th January 2007, 17:49   #84  |  Link
foxyshadis
Angel of Night
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
No, mods don't sweep up threads, except to clean up flamewars or occasionally to update a badly out-of-date first post. The best route is to create an entirely new thread with as much pertinant information in the post as possible. I'm beginning to warm to the idea of a FAQs forum, at least as long as the wiki is down/readonly. (Although the soothe entry is live.)
foxyshadis is offline   Reply With Quote
Old 27th January 2007, 14:54   #85  |  Link
HeadBangeR77
Registered User
 
HeadBangeR77's Avatar
 
Join Date: Dec 2006
Location: Heidelberg (DE), Kraków (PL)
Posts: 519
?

Quote:
Originally Posted by Jeremy Duncan View Post
With Soothe at 100, it's the same as not using Soothe.
This is using FFDshow.
Quote:
Originally Posted by Didée View Post


This is Avisynth -> Vdub -> Xvid(q2) of "Soothe(sharp,orig,X)".
If I'm becoming a real pain in the ass, then just tell me straight.
Although I must admit that using Soothe(s,d,100) isn't the same as not using Soothe at all (yes, I've made some samples), one thing here troubles my mind: Since

"keep" is an integer, range 0 - 100, that tells how much percent of the original sharpening will be kept at least,

then

orig.avi < soothe(-100) < soothe(100) < sharp.avi

is correct. Soothe always soothes, even if we tell her to stop. On the other hand, even with negative values, the function will never fully undo the sharpening effect. Why then soothe(15) > soothe(100) ??? This is too much for my exhauste humanistic brain.
__________________
"Only two things are infinite: the universe and human stupidity, and I'm not sure about the former."
HeadBangeR77 is offline   Reply With Quote
Old 29th January 2007, 13:13   #86  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,391
Oh, oh-oh ... that's because I used the Soothe function of SeeSaw, which has the parameters inversed (in SeeSaw the meaning is not "keep", but rather "strength") ... Standalone Soothe doesn't even use "negative" values.

In this respect, it's all a big mess with Soothe. Agreed.

Worse is, that I shouted at Jeremy without a reason: When using the Standalone function of Soothe, then Soothe(100) in fact IS THE SAME as not using Soothe ... Jeremy was right, and I stumbled in my own trap.
__________________
- We´re at the beginning of the end of mankind´s childhood -

My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!)
Didée is offline   Reply With Quote
Old 29th January 2007, 14:32   #87  |  Link
HeadBangeR77
Registered User
 
HeadBangeR77's Avatar
 
Join Date: Dec 2006
Location: Heidelberg (DE), Kraków (PL)
Posts: 519
Thanks for clearing, now I get it. A true genious is always a bit absent-minded, isn't he?

OT: Is Soothe (function) he/ she/ or it in english? The problem with this simplified-long-forgotten-anglo-saxon-bad-pronounced-latin-distorted-french-language is, that almost noone teaches grammatical genders, so I don't have the flexibility I've got in german or in polish.
__________________
"Only two things are infinite: the universe and human stupidity, and I'm not sure about the former."
HeadBangeR77 is offline   Reply With Quote
Old 27th March 2007, 01:53   #88  |  Link
McCauley
Registered User
 
Join Date: Nov 2006
Posts: 83
Hi,

at first i have to thank you for your great filters Didée!

I played with Soothe and asked myself how it would be possible to use use soothe in combination with the inbuild resizer of LSF.
I after hours of thinking how it could work, i came up with this idea:
Quote:
Code:
MPEG2Source("whatever.d2v")tfm()tdecimate().removegrain().crop(whatever)
dull   = last
sharp  = dull.LimitedSharpenfaster(ss_x=1.0,ss_y=1.0,Smode=3,strength=XXX)
Soothe( sharp, dull, 30 )
Lanczos4Resize(1280,720)
After that thought why not reading the entire Soothe-Thread and found your suggestion for resizing:
Quote:
Originally Posted by Didée View Post
Code:
# how to soothe LimitedSharpen when LS is set up to change resolution

dx = your_target_width
dy = your_target_height

base = last.LanczosResize( dx, dy )
shrp = last.LimitedSharpen( dest_x = dx, dest_y = dy )

shrp.Soothe(base)
My question is now, if my script delivers (theoretically) better quality, because im soothing at the full resolution (source is 1920x1080) and lanczos resize it at the end to the destined resolution (which is the same, because i just externalized the last resizing step of LS(F), or not?), or is it just a waste of cpu cycles?

Regards
McCauley


EDIT:After some addititonal toying with it, i realized that i make sharpening a bit useless with the first one and found these settings satisfiing:
Quote:
MPEG2Source("whatever.d2v")tfm()tdecimate().removegrain().removegrain().crop(whatever)
dull = last.Lanczos4resize(1280,720)
sharp = dull.LimitedSharpenfaster(ss_x=1.0,ss_y=1.0,Smode=3,strength=XXX,dest_x=1280, dest_y=720)
Soothe( sharp, dull, 30 )
My thoughts to that are that using supersampling with 1.5 at a full HD makes the sharpening obsolete, if you resize it down to 1280x720.

Last edited by McCauley; 27th March 2007 at 21:11.
McCauley is offline   Reply With Quote
Old 14th July 2007, 03:46   #89  |  Link
251121
Registered User
 
Join Date: Jun 2007
Posts: 17
can some give me direct link to download what exactly needs to have in avisynth plugins folder in order to work with this filter. many thanks.......
251121 is offline   Reply With Quote
Old 14th July 2007, 05:51   #90  |  Link
TheRyuu
warpsharpened
 
Join Date: Feb 2007
Posts: 787
Quote:
Originally Posted by 251121 View Post
can some give me direct link to download what exactly needs to have in avisynth plugins folder in order to work with this filter. many thanks.......
Sure.
Code:
function Soothe(clip sharp, clip orig, int "keep")
{
Assert(sharp.width == orig.width && sharp.height == orig.height,
 \  "Soothe: clip dimentions must match!")
keep  = default(keep, 24)
keep  = (keep>100) ? 100 : (keep<0) ? 0 : keep
KP    = string(keep)
diff  = mt_makediff(orig,sharp)
diff2 = diff.temporalsoften(1,255,0,32,2)
diff3 = mt_lutxy(diff,diff2,  "x 128 - y 128 - * 0 < x 128 - 100 / "  + KP 
 \                           + " * 128 + x 128 - abs y 128 - abs > x " + KP 
 \                           + " * y 100 " + KP + " - * + 100 / x ? ?")
return( mt_makediff(orig,diff3,chroma="copy first") )
}
Copy and paste into text file, save as Soothe.avsi, put that in plugins folder.

Get mt_masktools v2 here. (latest one is this one.) Throw that in plugins folder too.
Not sure if this one needs removegrain. (don't think so, anyone?)
TheRyuu is offline   Reply With Quote
Old 14th July 2007, 08:46   #91  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,733
Yes, MaskTools v2 should be the only external dll that is needed.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 14th July 2007, 17:09   #92  |  Link
251121
Registered User
 
Join Date: Jun 2007
Posts: 17
Quote:
Originally Posted by wizboy11 View Post
Sure.
Code:
function Soothe(clip sharp, clip orig, int "keep")
{
Assert(sharp.width == orig.width && sharp.height == orig.height,
 \  "Soothe: clip dimentions must match!")
keep  = default(keep, 24)
keep  = (keep>100) ? 100 : (keep<0) ? 0 : keep
KP    = string(keep)
diff  = mt_makediff(orig,sharp)
diff2 = diff.temporalsoften(1,255,0,32,2)
diff3 = mt_lutxy(diff,diff2,  "x 128 - y 128 - * 0 < x 128 - 100 / "  + KP 
 \                           + " * 128 + x 128 - abs y 128 - abs > x " + KP 
 \                           + " * y 100 " + KP + " - * + 100 / x ? ?")
return( mt_makediff(orig,diff3,chroma="copy first") )
}
Copy and paste into text file, save as Soothe.avsi, put that in plugins folder.

Get mt_masktools v2 here. (latest one is this one.) Throw that in plugins folder too.
Not sure if this one needs removegrain. (don't think so, anyone?)

first of all thanks, can u tell what version? i need to download because there are so many v2 versions Thanks...

Thanks to Boulder as well.
251121 is offline   Reply With Quote
Old 14th July 2007, 18:06   #93  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,733
Just download the latest MaskTools v2 version and you're fine.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 15th July 2007, 02:19   #94  |  Link
Prim3
Registered User
 
Join Date: Dec 2006
Posts: 47
Very nice function Didée. I've got an extraordinary output using it. Great job.
Prim3 is offline   Reply With Quote
Old 23rd October 2007, 12:04   #95  |  Link
Vesi
Guest
 
Posts: n/a
Any help, how i have to use soothe and LSF with this script?
i'm using megui to make my script.
@ should i call soothe avs or avsi in my plugin dir?

DGDecode_mpeg2source("C:\Documents and Settings\Vesi\Desktop\HDDCS-Test\Test.d2v",info=3)
ColorMatrix(hints=true,interlaced=true)
#Not doing anything because the source is progressive
crop( 2, 92, -2, -72)

BicubicResize(640,272,0,0.5) # Bicubic (Neutral)

Last edited by Vesi; 23rd October 2007 at 12:18.
  Reply With Quote
Old 23rd October 2007, 14:50   #96  |  Link
salehin
Learning
 
Join Date: Nov 2006
Location: Earth
Posts: 88
Quote:
Originally Posted by Vesi View Post
Any help, how i have to use soothe and LSF with this script?
i'm using megui to make my script.
@ should i call soothe avs or avsi in my plugin dir?

DGDecode_mpeg2source("C:\Documents and Settings\Vesi\Desktop\HDDCS-Test\Test.d2v",info=3)
ColorMatrix(hints=true,interlaced=true)
#Not doing anything because the source is progressive
crop( 2, 92, -2, -72)

BicubicResize(640,272,0,0.5) # Bicubic (Neutral)
Just rename the soothe.avs to soothe.avsi and drop it in your avisynth plungins directory. That would allow your avs script to access and work soothe.

Also check here whether you actually require colorcorrection or not (i doubt it is required)
salehin is offline   Reply With Quote
Old 23rd October 2007, 22:28   #97  |  Link
Vesi
Guest
 
Posts: n/a
Thanks alot salehin, i have few questions.
1.how do i know that my source is rec 709, and i don't need colorcorection?
2.o Resolution: Always use mod16 resolution for your output?
please make it a bit clear, coz i'm new

Quote:
o Always start off with using the least powerful sharpening filters. The idea is bring out background details slightly clear without introducing artificial sharpening. LSF (the customised one), Soothe comes my mind - see intro and an example of settings
the links you provided for some details here is not working.
  Reply With Quote
Old 23rd October 2007, 22:56   #98  |  Link
foxyshadis
Angel of Night
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
DGIndex and the d2v has that information. If it doesn't, colormatrix won't do anything with hints=true, don't worry. (Never use it if you're making a DVD from a DVD, though, unless you change the colormatrix in your encoder's advanced settings.) Mod16 isn't required, but it's preferred unless you have to really go out of your way to get it.
foxyshadis is offline   Reply With Quote
Old 23rd October 2007, 23:56   #99  |  Link
salehin
Learning
 
Join Date: Nov 2006
Location: Earth
Posts: 88
Quote:
Originally Posted by Vesi View Post
Thanks alot salehin, i have few questions.
1.how do i know that my source is rec 709, and i don't need colorcorection?
2.o Resolution: Always use mod16 resolution for your output?
please make it a bit clear, coz i'm new


the links you provided for some details here is not working.
o Colorimetry:
Load the source file onto DGIndex (version 1.4.9+) and do a preview. You'll find the colorimetry info there. Always use AvsP for previews to be more certain (with and without CM). It gives a very good preview- impacts of using various filters.

o Detailed reason behind mod16 (quoting check):
Encoders work in blocks of 16x16. They can subdivide into smaller blocks below this (16x8, 8x8 and 4x4), but the encoder requires 16x16 blocks. If the size is not mod16, the encoder will simply duplicate the edge pixels, encode those instead and the decoder will not display them on playback.
Instead of encoding non-mod16, resize to mod16 and set the correct AR in the matroska file. Then you have the correct AR and a more compressible movie

o LSF and Soothe:
I have updated the links (re: LSF and soothe eg)

o Resize filter:
May I also suggest you try Spline36neutral or Lanczos (Sharp). I tend to prefer spline36neutral as it gives as good results as lancsoz sharp, in some cases, slightly better than Lanczos (Sharp)

Last edited by salehin; 24th October 2007 at 00:21. Reason: added info
salehin is offline   Reply With Quote
Old 24th October 2007, 10:34   #100  |  Link
Vesi
Guest
 
Posts: n/a
foxyshadis and salehin thank you guys for the replays.
- I did open my source with DGIndex and found it BT.470-2 B,G, so in this case i don't need colorcorection, am i right?
@ salehin please don't get angry on me , i releay don't get this mod16, should i change this in megui before i start my rip?
please explain it in some simple words as i'm noob and bad english .
is this the right way to make script soothe with LSF?
dull = last
sharp = dull.LimitedSharpenfaster( ss_x=1.25, ss_y=1.25,smode=4, strength=150, overshoot=1 )
Soothe( sharp, dull, 20 )
Tweak(sat=1.2,bright=-8,cont=1.3)
Or any other ways too?

Last edited by Vesi; 24th October 2007 at 11:01.
  Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:59.


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