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

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 5th October 2008, 19:30   #41  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,391
Let me add that I did not "tell" that. Case of overinterpretation ... I showed two code sniplets that handle luma ranges for masking, one for 16-235 range, one for 0-255 range, and happened to place the string "BT.709" beneath string "0-255" in a small #codecomment. (Assuming that if you encounter a 0-255 source, it'll probably be BT.709...)

Tried to avoid "but what-if-" nagging by showing both possibilities, got nagging I would have made a claim. Oh well.

Guilty for incautious wording. Changed to PC/TV range.
__________________
- 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  
Old 5th November 2008, 18:37   #42  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
v1.0beta1 - Update 2008/11/05

v1.0beta1:
changed chroma parameter (more precise)
cosmetic changes


LaTo is offline  
Old 13th November 2008, 09:52   #43  |  Link
ankurs
N00B !
 
Join Date: Jun 2006
Posts: 223
source :



agc + smoothlevels(pc2tv) (final script doing everything necessary ie deinterlacing , denoising and a lot of other stuff ) :



p.s : did the a.r correction as i deemed appropriate for the testing , also screens taken using print screen so sorry if the pixels are off ( yeah i know prtscrn+paint+crop+save as .png sucks ) but what to do no other option

input please ?

to my eyes smoothlevels aka ulevels seems to darken the picture a bit up ? used chroma=0 , will test more and post results

edit : i know they're annoying(the lines,but thats how the source is ) ( perhaps about time i updated my sharpening arsenal , giving lsfmod a shot in a bit , will post results )

Last edited by ankurs; 13th November 2008 at 09:55.
ankurs is offline  
Old 15th November 2008, 09:44   #44  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Quote:
Originally Posted by ankurs View Post
input please ?
LaTo is offline  
Old 15th November 2008, 11:00   #45  |  Link
ankurs
N00B !
 
Join Date: Jun 2006
Posts: 223
meant to ask is everything fine ? should i change anything ?
ankurs is offline  
Old 15th November 2008, 11:13   #46  |  Link
Adub
Fighting spam with a fish
 
Adub's Avatar
 
Join Date: Sep 2005
Posts: 2,699
If it looks good to your eyes, then it's fine. Asking everyone else for their own opinions will only cause you to filter the video to how they want it. If it looks good enough for you to watch, then what does anyone else's opinion matter?
__________________
FAQs:Bond's AVC/H.264 FAQ
Site:Adubvideo
Adub is offline  
Old 15th November 2008, 11:29   #47  |  Link
ankurs
N00B !
 
Join Date: Jun 2006
Posts: 223
Quote:
Originally Posted by Merlin7777 View Post
If it looks good to your eyes, then it's fine. Asking everyone else for their own opinions will only cause you to filter the video to how they want it. If it looks good enough for you to watch, then what does anyone else's opinion matter?
well thats what i do always , but additional input helps me fix my mistakes many a LOT of times
ankurs is offline  
Old 15th November 2008, 12:54   #48  |  Link
Tagert
Registered User
 
Tagert's Avatar
 
Join Date: Sep 2006
Location: Karlskrona, Sweden
Posts: 72
the blocking in the first pic is gone in the second one, so it looks gorgeous to me
Tagert is offline  
Old 15th November 2008, 22:37   #49  |  Link
Adub
Fighting spam with a fish
 
Adub's Avatar
 
Join Date: Sep 2005
Posts: 2,699
Your filtering is fine, so don't worry about it. It's about as good as it's going to get.
__________________
FAQs:Bond's AVC/H.264 FAQ
Site:Adubvideo
Adub is offline  
Old 21st November 2008, 19:00   #50  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Update v1.0beta2 - 2008/11/21

v1.0beta2:
changed Lmode parameter (added Ecenter & strength)
updated the documentation + cosmetic



Update inspired from my little script LimitedGamma...
Now it doesn't use anymore the same synthax as YlevelsS&G, I have made 6 new expression with ajustable strength and some tweak
LaTo is offline  
Old 26th November 2008, 11:37   #51  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Update v1.00

v1.00:
first stable release
optimized limiting code (faster and less rounding error)
added new parameters for limiting (Ecenter,Ecurve)
changed strength parameter for 2 others (DarkSTR & BrightSTR)
changed code of protect option (hard->soft threshold)

LaTo is offline  
Old 14th December 2008, 16:37   #52  |  Link
zee944
Registered User
 
Join Date: Apr 2007
Posts: 240
LaTo, I've probably discovered a bug. Both SmoothLevels(gamma=1.0, Lmode=1, DarkSTR=250, BrightSTR=250) and LimitedGamma2(gamma=1.0,dark_str=250,bright_str=250) create black dots on white surfaces around edges.

These pixels are pure whites (255, 255, 255) originally (looking them at in RGB colorspace), but not all of them becomes black. (Perhaps a rounding error?)



zee944 is offline  
Old 14th December 2008, 17:37   #53  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Quote:
Originally Posted by zee944 View Post
LaTo, I've probably discovered a bug. Both SmoothLevels(gamma=1.0, Lmode=1, DarkSTR=250, BrightSTR=250) and LimitedGamma2(gamma=1.0,dark_str=250,bright_str=250) create black dots on white surfaces around edges.
I tried with your original image:
Code:
ImageSource("LimitedGamma_bug_default.jpg").ConvertToYV12()

#SmoothLevels(gamma=1.0, Lmode=1, DarkSTR=250, BrightSTR=250) 
LimitedGamma2(gamma=1.0,dark_str=250,bright_str=250)
But I can't reproduce the same result, no problem on my side...

Please post your script & a sample

EDIT: Be sure that MaskTools is up-to-date (v2.0a35) and use the good .dll (mt_masktools-25.dll)

Last edited by LaTo; 14th December 2008 at 17:40.
LaTo is offline  
Old 15th December 2008, 09:35   #54  |  Link
zee944
Registered User
 
Join Date: Apr 2007
Posts: 240
Quote:
Originally Posted by LaTo View Post
EDIT: Be sure that MaskTools is up-to-date (v2.0a35) and use the good .dll (mt_masktools-25.dll)
Damn! I checked mt_masktools.dll but forgot to check MaskTools.dll. I used an ancient one. Anyway... sorry
zee944 is offline  
Old 20th December 2008, 20:03   #55  |  Link
zee944
Registered User
 
Join Date: Apr 2007
Posts: 240
Quote:
Originally Posted by LaTo View Post
Please post your script & a sample

EDIT: Be sure that MaskTools is up-to-date (v2.0a35) and use the good .dll (mt_masktools-25.dll)
I hope I won't make a fool of myself again, but after replacing mt_masktools with the latest version, I still have the same problem.

It seems it depends on source. Your script with ImageSource() works fine. But loading the original .D2V/.M2V file (taken from a DVD), the black dots appear again.

I use AviSynth 2.5.7. The filters seem fine too, they're all the needed versions:

mt_masktools-25[2.0a35].dll .................. 2008.04.19 11:02 ...... 724,992 bytes
gradfun2db[1.0].dll ................................. 2006.03.15 21:49 ...... 61,440 bytes
SmoothLevels.v1.00.avsi ....................... 2008.12.14 15:57 ...... 20,313 bytes
RemoveGrain[1.0].dll ............................. 2005.07.31 23:07 ...... 27,648 bytes

My script:
Code:
LoadPlugin("mt_masktools-25[2.0a35].dll")
LoadPlugin("gradfun2db[1.0].dll")
Import("SmoothLevels.v1.00.avsi")
LoadPlugin("RemoveGrain[1.0].dll")

MPEG2Source("TD_Joy_Sales_sample.d2v")
ConvertToYV12()

SmoothLevels(gamma=1.2, Lmode=1, DarkSTR=250, BrightSTR=250)
My video sample (3.8 Mbytes): http://www.badongo.com/file/12571008

What's wrong?

Last edited by zee944; 20th December 2008 at 20:06.
zee944 is offline  
Old 22nd December 2008, 09:43   #56  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Quote:
Originally Posted by zee944 View Post
I hope I won't make a fool of myself again, but after replacing mt_masktools with the latest version, I still have the same problem.
What's wrong?
I found the bug... Fixed in the next version
LaTo is offline  
Old 22nd December 2008, 18:27   #57  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Update 2008/12/22 v1.01

v1.01:
fixed a bug in Lmode=1&3 (pi approx)

LaTo is offline  
Old 25th December 2008, 11:20   #58  |  Link
thetoof
Sleepy overworked fellow
 
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
Hey,
Just wanted to say thanks for this nice little script! Works like wonders, especially since the first stable release. (darkstr & brightstr = ^_^)
__________________
AnimeIVTC() - v2.00
-http://boinc.berkeley.edu/-
Let all geeks use their incredibly powerful comps for the greater good (no, no, it won't slow your filtering/encoding :p)
thetoof is offline  
Old 25th January 2009, 17:40   #59  |  Link
rkalwaitis
Robert
 
Join Date: Jan 2008
Location: Stuttgart
Posts: 407
Lato I looked through the script you made and I can not find the presets that everyone is mentioning ie pc2tv.....

Where am I not looking?
rkalwaitis is offline  
Old 25th January 2009, 17:42   #60  |  Link
rkalwaitis
Robert
 
Join Date: Jan 2008
Location: Stuttgart
Posts: 407
Oops guess it helps to read the whole thing. Sorry. It really helped me clean up some older items I had about. Thanks.
rkalwaitis is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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

Forum Jump


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


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