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

Reply
 
Thread Tools Search this Thread Display Modes
Old 24th March 2005, 22:27   #41  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
Is CACHE_RANGE directional (forward, backward)?
or it is a radius from current frame?
or it is a simply counter (limit) of cached frames?
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick
I usually do not provide a technical support in private messages.
Fizick is offline   Reply With Quote
Old 25th March 2005, 00:11   #42  |  Link
kassandro
Registered User
 
Join Date: May 2003
Location: Germany
Posts: 502
Quote:
Originally posted by Fizick
Is CACHE_RANGE directional (forward, backward)?
or it is a radius from current frame?
or it is a simply counter (limit) of cached frames?
Last time, when I studied the Avisynth source code, it was a radius from the last processed (not necessarily the current, i.e. last requested) frame. Meanwhile the Avisynth cache seems to have undergone substantial changes. As this subject is quite important for filter writers to achieve maximal performance without wasting memory, it should be better documented.
kassandro is offline   Reply With Quote
Old 25th March 2005, 05:28   #43  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
kassandro,
thanks for respond.
Yes, it would be nice. Now i try change radius and look to memory usage, speed, faults, etc.
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick
I usually do not provide a technical support in private messages.
Fizick is offline   Reply With Quote
Old 1st April 2005, 21:56   #44  |  Link
AVIL
Registered User
 
Join Date: Nov 2004
Location: Spain
Posts: 408
Problem with degrainmedian revisited

Hi:

By suggestion of Ficik i continue here the trhead :

http://forum.doom9.org/showthread.php?s=&threadid=92327

Last edited by Guest; 3rd April 2005 at 20:09.
AVIL is offline   Reply With Quote
Old 1st April 2005, 22:05   #45  |  Link
AVIL
Registered User
 
Join Date: Nov 2004
Location: Spain
Posts: 408
Problem with degrainmedian revisited

Hi:

Sorry for my inexperience, i can't post the attachement. I pick the file ( extension jpg, size 103 kb ) whith the button "Examinar" (in spanish). The name of the file appears in the window but, alas, no attachement is made. Surely i'm doing anything erroneus.

Help please.
Attached Images
 
AVIL is offline   Reply With Quote
Old 1st April 2005, 22:08   #46  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
Re: Problem with degrainmedian revisited

Quote:
Originally posted by AVIL

Sorry for my inexperience, i can't post the attachement. I pick the file ( extension jpg, size 103 kb ) whith the button "Examinar" (in spanish). The name of the file appears in the window but, alas, no attachement is made. Surely i'm doing anything erroneus.

Help please.
Just upload ya pic here...


Bye
__________________

Visit my IRC channel
Soulhunter is offline   Reply With Quote
Old 1st April 2005, 22:21   #47  |  Link
AVIL
Registered User
 
Join Date: Nov 2004
Location: Spain
Posts: 408
Tanks Soulhunter, you have saved one soul (the mine).

This is the image (click to enlarge):



The first part is the image as is, the second part is the difference ( luma only ) after apply degrainmedian(mode=1,limituv=0) in YUY2 and done posterior conversion to YV12. The third part is the difference after degrainmedian(mode=1,limituv=0) directly in YV12. I have expected the same luma difference ( or very approximate ).

Ouch, post a problem is near as difficult as doing complex scripts.
AVIL is offline   Reply With Quote
Old 2nd April 2005, 18:27   #48  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
New Version 0.6, April 2, 2005 - fixed some bugs with YUY2. Thanks to AVIL for report.

But I am stil can not get STRICTLY same output foe YUY2 as YV12.

Ouch, fix bugs problem is near as difficult as doing complex scripts.
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick
I usually do not provide a technical support in private messages.
Fizick is offline   Reply With Quote
Old 3rd April 2005, 20:11   #49  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Re: Attachments.

There is a delay because the mod has to approve them and we don't check every 10 minutes for pending ones.

So my personal policy is that I welcome a PM from you when making an attachment to notify me that it is pending.

Thank you for your interesting contributions to the forum.
Guest is offline   Reply With Quote
Old 16th April 2005, 07:45   #50  |  Link
JuanC
Registered User
 
Join Date: May 2002
Posts: 220
DeGrainMedian (Interlaced=true) reverses the field dominance:

@Fizick: I've been using this filter lately, I like it a lot, but I have just noticed that my interlaced clips are getting encoded with the field dominance reversed: They are originaly TFF, but just after using DeGrainMedian (interlaced=true) they become BFF Is there anything I am missing ?

My clips are originally mpeg2 video clips (using dgdecode) either 352x480 or 720x480 (NTSC, 29.97 fps). My scripts are very simple, something like the following will be enough to reproduce the situation I am describing:
Code:
DGdecode_mpeg2source("Paulita-mpeg2-corta.d2v")
#Return AssumeTFF().SeparateFields()
Return DeGrainMedian(interlaced=true,mode=2).AssumeTFF().SeparateFields()
Then I encode them to mpeg2 interlaced.

Thanks for your comments (and the filters )
JuanC is offline   Reply With Quote
Old 16th April 2005, 11:09   #51  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,718
The filter could use AssumeFieldBased or similar internally. Avisynth defaults to BFF so that might be the cause.
__________________
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 18th April 2005, 03:17   #52  |  Link
JuanC
Registered User
 
Join Date: May 2002
Posts: 220
Thanks for your comment Boulder, more info: Avisynth correctly identifies the original video clip as Not FieldBased (Not Separated), TFF. After the filter is applied, Avisynth still believes the video clip is TFF, when in fact it's now BFF. Meanwhile, I am using this filter like this:
Code:
limpiar=AssumeTFF().SeparateFields()
E=selectEven(limpiar).DeGrainMedian(interlaced=false,mode=2)
O= selectOdd(limpiar).DeGrainMedian(interlaced=false,mode=2)
Interleave(E,O) .Weave()
Now I still get the video clip TFF after applying the filter.
JuanC is offline   Reply With Quote
Old 18th April 2005, 17:00   #53  |  Link
Turyst04
Registered User
 
Join Date: Apr 2005
Location: Kiev, Ukrain
Posts: 2
JuanC
Meanwhile, I am using this filter like this:
Code:
limpiar=AssumeTFF().SeparateFields()
E=selectEven(limpiar).DeGrainMedian(interlaced=false,mode=2)
O= selectOdd(limpiar).DeGrainMedian(interlaced=false,mode=2)
Interleave(E,O) .Weave()
Now I still get the video clip TFF after applying the filter.

I now try use doom9 forum only (and my english is bad - sorry).
Anyway: JuanC, your avs is correct.
May be next script is suitable (if use more then 1 filters):
Code:
function ApplyInterlacedFilter(clip v1, string filter) {
v2 = separatefields(v1) 
selecteven(v2) 
even = Eval(filter) 
selectodd(v2) 
odd = Eval(filter) 
interleave(even,odd) 
return weave() 
} 

i=last
mdata=Depanestimate(i)
depaninterleave(i,data=mdata, prev=1, next=1, matchfields=true) 
applyinterlacedfilter(last, "DeGrainMedian(interlaced=false,mode=2)")
applyinterlacedfilter(last, "fft3dfilter(sigma=3,bt=3)")
selectevery(3,1)
(depaninterleave using is recommended by Fizick and result is better)
Turyst04 is offline   Reply With Quote
Old 19th April 2005, 21:52   #54  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
JuanC,
after SeparateFields interlaced clip become progressive.
So, you must use (interlaced=false).

But why do you not use the simplest script ?:

DGdecode_mpeg2source("Paulita-mpeg2-corta.d2v")
AssumeTFF()
DeGrainMedian(interlaced=true,mode=2)

Does this script reverse the fields dominance ?
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick
I usually do not provide a technical support in private messages.
Fizick is offline   Reply With Quote
Old 20th April 2005, 06:02   #55  |  Link
JuanC
Registered User
 
Join Date: May 2002
Posts: 220
Quote:
Originally posted by Fizick
Does this script reverse the fields dominance ?
Yes it does.
JuanC is offline   Reply With Quote
Old 20th April 2005, 22:04   #56  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
JuanC,
I found a bug for mode=2 YV12 interlaced,
and release new version 0.7 today.

Personally I prefer mode=0,1. and never used mode=2.

I can not reproduce the reverse of fields dominance.
What about other modes and colorspace YUY2?
How you detect it?
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick
I usually do not provide a technical support in private messages.
Fizick is offline   Reply With Quote
Old 21st April 2005, 06:43   #57  |  Link
JuanC
Registered User
 
Join Date: May 2002
Posts: 220
Quote:
Originally posted by Fizick
I found a bug for mode=2 YV12 interlaced,
and release new version 0.7 today.
Thanks!, I'll try this.
Quote:
Originally posted by Fizick
I can not reproduce the reverse of fields dominance.
How you detect it?
To detect it I use the technique described by D.Graft and included in the Decomb_Tutorial.html file in the Step 1 of Telecide Section: "Determine and Set the Field Order": Use this in your script: Return AssumeTFF().SeparateFields() And by playing it (Vdub) review if the movement is always fluid, then it is TFF, if the movement is back&forth... Then it is not TFF, you could then use AssumeBFF and verify the same way. Also, if you don't IVTC neither Deinterlace, you encode your video interlaced, you'll see using any player very strange artifacts (back&forth!!!)
Quote:
Originally posted by Fizick
What about other modes and colorspace YUY2?
I haven't tried that yet. But I would next weekend.

Last edited by JuanC; 21st April 2005 at 06:48.
JuanC is offline   Reply With Quote
Old 20th May 2005, 05:47   #58  |  Link
LordIntruder
Registered User
 
Join Date: Jan 2003
Posts: 109
Hi,


Can someone enlighten me about the 'mode' option? I mean is mode=0 will clean less grain or not than mode=4 ? In the doc it is said:

"mode (0 to 4, default=1) - operation mode (the more, the weaker)"

The more (4 per exemple) the weaker. The weaker what? The image quality is cleaned more but also looks worse?

And a important thing: I have an interlaced PAL source. In my AVS I deinterlaced it with decomb. Must I integrate the option 'interlaced'?

FieldDeinterlace()
DeGrainMedian(interlaced=true, mode=0)

??

I think not because before I deinterlace my source so I guess this option is not needed but an advice won't be too much.

Thanks.
LordIntruder is offline   Reply With Quote
Old 20th May 2005, 20:30   #59  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
LordIntruder,
1. The more mode number, the weaker the degree of denoising.
If someboby can say this in good English, please post.

2. Yes, use:
interlaced=false

3. Use your own eyes to test
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick
I usually do not provide a technical support in private messages.
Fizick is offline   Reply With Quote
Old 21st May 2005, 03:33   #60  |  Link
LordIntruder
Registered User
 
Join Date: Jan 2003
Posts: 109
Fizick: thanks.

I'll try mode=0 and mode=4 to see the differences. I asked because I've just tried your filter last night for the first time and was a bit lost with technical explanations. Now I have to modify parameters and see what changes in the video.

And thanks to confirm for 'interlaced' option.
LordIntruder is offline   Reply With Quote
Reply

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:13.


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