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 Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 30th May 2006, 13:41   #641  |  Link
Chainmax
Huh?
 
Chainmax's Avatar
 
Join Date: Sep 2003
Location: Uruguay
Posts: 3,103
I'll try upconv=true (how do I convert back to progressive yv12 after ivtc?) and report back. By the way, this comes from an R4 NTSC disc.

Anyway, I tried to IVTC with this

Code:
TFM(mode=3,PP=7,slow=2,mChroma=true)
TDecimate(mode=1)
and got pretty much the same result. You can download a sample vob with this scene and the high motion one I mentioned here.
__________________
Read Decomb's readmes and tutorials, the IVTC tutorial and the capture guide in order to learn about combing and how to deal with it.
Chainmax is offline   Reply With Quote
Old 31st May 2006, 04:04   #642  |  Link
Chainmax
Huh?
 
Chainmax's Avatar
 
Join Date: Sep 2003
Location: Uruguay
Posts: 3,103
What do you know, upconv=1 eliminated the issue, thanks . Now let's see if I can eliminate that annoying blocking in the sample without oversmoothing...
__________________
Read Decomb's readmes and tutorials, the IVTC tutorial and the capture guide in order to learn about combing and how to deal with it.
Chainmax is offline   Reply With Quote
Old 31st May 2006, 04:57   #643  |  Link
scharfis_brain
brainless
 
scharfis_brain's Avatar
 
Join Date: Mar 2003
Location: Germany
Posts: 3,653
I simple do not have this problem at all...
__________________
Don't forget the 'c'!

Don't PM me for technical support, please.
scharfis_brain is offline   Reply With Quote
Old 31st May 2006, 09:21   #644  |  Link
tritical
Registered User
 
Join Date: Dec 2003
Location: MO, US
Posts: 999
@Chainmax
Do those artifacts occur if you use

colormatrix(interlaced=true)

w/o using upconv=1 in mpeg2source()? For interlaced yv12 interlaced=true needs to be set, but for yuy2 it doesn't effect things (might be the reason upconv=1 in mpeg2source fixed the problem). Guess before that question I should ask if the artifacts still occur if you don't use colormatrix at all?

Last edited by tritical; 31st May 2006 at 09:23.
tritical is offline   Reply With Quote
Old 31st May 2006, 17:35   #645  |  Link
Chainmax
Huh?
 
Chainmax's Avatar
 
Join Date: Sep 2003
Location: Uruguay
Posts: 3,103
I didn't try that, will do so and report back.

[edit]Both eliminating colormatrix and using it with the interlaced=true switch solved the problem as well. I didn't know that switch existed, as all the references to it in threads only used defaults.
__________________
Read Decomb's readmes and tutorials, the IVTC tutorial and the capture guide in order to learn about combing and how to deal with it.

Last edited by Chainmax; 31st May 2006 at 21:32.
Chainmax is offline   Reply With Quote
Old 7th June 2006, 21:09   #646  |  Link
tritical
Registered User
 
Join Date: Dec 2003
Location: MO, US
Posts: 999
EEDI2 v0.9.2, changes:
Code:
   + various internal changes to help reduce artifacts around repeated 
        patterns and to improve construction of lines/edges with small slope
   - Changed map from bool to int
   - Changed default maxd value from 12 to 24
   - Changed default pp value from 0 to 1
   - a few minor bugfixes
After some thinking, I've figured out how eedi2 could be changed into a general purpose resampler able to resize to any requested resolution in one step. I think this could provide much better results than chaining multiple eedi2 calls together. I am busy on other projects atm so it wont happen immediately, but it is on the todo list for eedi2... hopefully the next release of eedi2 will have a general resize mode.
tritical is offline   Reply With Quote
Old 8th June 2006, 11:53   #647  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Thanks for the new version!
Guest is offline   Reply With Quote
Old 8th June 2006, 20:06   #648  |  Link
Chainmax
Huh?
 
Chainmax's Avatar
 
Join Date: Sep 2003
Location: Uruguay
Posts: 3,103
Yeah, thanks for this new release . The next release should greatly help me out on some of the stuff I've been messing around with, can't wait for it .
__________________
Read Decomb's readmes and tutorials, the IVTC tutorial and the capture guide in order to learn about combing and how to deal with it.
Chainmax is offline   Reply With Quote
Old 10th June 2006, 03:02   #649  |  Link
Adub
Fighting spam with a fish
 
Adub's Avatar
 
Join Date: Sep 2005
Posts: 2,699
This new version is wonderful news Tritical, thanks for your work.
__________________
FAQs:Bond's AVC/H.264 FAQ
Site:Adubvideo

Last edited by Adub; 10th June 2006 at 17:04.
Adub is offline   Reply With Quote
Old 10th June 2006, 04:54   #650  |  Link
Revgen
Registered User
 
Join Date: Sep 2004
Location: Near LA, California, USA
Posts: 1,545
Quote:
Originally Posted by Merlin7777
This new version is wonderful news TSP...
Don't you mean Tritical?
__________________
Pirate: Now how would you like to die? Would you like to have your head chopped off or be burned at the stake?

Curly: Burned at the stake!

Moe: Why?

Curly: A hot steak is always better than a cold chop.
Revgen is offline   Reply With Quote
Old 10th June 2006, 17:04   #651  |  Link
Adub
Fighting spam with a fish
 
Adub's Avatar
 
Join Date: Sep 2005
Posts: 2,699
Oops!!! Sorry about that, I am browsing to threads at once.
__________________
FAQs:Bond's AVC/H.264 FAQ
Site:Adubvideo
Adub is offline   Reply With Quote
Old 10th June 2006, 21:23   #652  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
btw Tritical, whenever you find time to pick this filter up again, here's an interesting approach that may or may not speed some things up: http://www.compuphase.com/graphic/scale2.htm However, his result isn't as good as NEDI, so it may not be suitible.
foxyshadis is offline   Reply With Quote
Old 11th June 2006, 02:51   #653  |  Link
tritical
Registered User
 
Join Date: Dec 2003
Location: MO, US
Posts: 999
His method is definitely quick, but the results aren't all that great. Using the gradient direction doesn't work at all for eedi2's main use of deinterlacing (detecting directions on a single fields) and the area he considers is too small to really be effective. Also, normal first order gradient calculations have a hard time accurately detecting directions of lines/edges with small slope (since they consider only a 3 pixel neighborhood). In his method that doesn't really matter since he also limits the interpolation to 50/50 averaging of a set of the two nearest neighbors. That fact alone makes it unable to accurately adapt to lines and edges that have directions of less than 45 degrees. For comparison I made 2x enlargements of the lena image using eedi2, nedi, lanczos3, and spline36 in avisynth. Gotta go for the moment, but more to add later .
tritical is offline   Reply With Quote
Old 11th June 2006, 06:58   #654  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
Hmm, ah well. Just something I came across, looking for something else. ^_^ Maybe it'd be useful for coming up with an initial gradient, unless your method is already faster/more precise. Looking at calcDirections, it seems to be a lot more efficient than I first thought anyway. Cool.

BTW Lena.
foxyshadis is offline   Reply With Quote
Old 11th June 2006, 15:56   #655  |  Link
scharfis_brain
brainless
 
scharfis_brain's Avatar
 
Join Date: Mar 2003
Location: Germany
Posts: 3,653
tritical, how can I tweak EEDI2 v0.9.2 to behave the same like v0.9.1 ?

cause the new version detects a lesser amount of short diagonales as edges.
__________________
Don't forget the 'c'!

Don't PM me for technical support, please.
scharfis_brain is offline   Reply With Quote
Old 11th June 2006, 21:43   #656  |  Link
tritical
Registered User
 
Join Date: Dec 2003
Location: MO, US
Posts: 999
@foxyshadis
What settings did you use for ekg? I tried to reproduce your result, but with default settings the output is definitely not the same .

@scharfis_brain
maxd=12,pp=0. Could you post an image(s) where 0.9.2 doesn't connect short diagonals and 0.9.1 does?
tritical is offline   Reply With Quote
Old 12th June 2006, 06:54   #657  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
Code:
ImageSource("lena-org.png",end=0)
converttoyv12(matrix="PC.601")
LimitedSharpenFaster(SMode=4,LMode=3,Strength=100,special=true,wide=true,soft=25)
EKG(20,iter=2,bp=.75,sharp=.6,multi=2,gthresh=1.4)
spline36resize(256,256)
return ConvertToRGB32(matrix="PC.601")
With a dash of overkill.

My original intuition was that sharpening should be applied harder at every successive step to make up for the larger image, but that turned out to severely distort the image, and the new limits placed on it are quite arbitrary. Perhaps I have it the wrong way around; I think I need to indulge in more research in that area.
foxyshadis is offline   Reply With Quote
Old 12th June 2006, 21:43   #658  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,691
Does anyone know what the "h" match code signifies:

Here's the line from the TFM output file:

9225 h + [196] (181 196 203 0 125)

It always appears next to the combed frame match (+), but so do other match codes. It doesn't appear anywhere in the documentation.

Edit: OK, I think it means a combed frame, when matching to the current (c) frame. For some reason, in this situation, the "h" gets substituted for the "c." If a combed frame results when matching to the next frame, the usual "n" is used.

Last edited by johnmeyer; 12th June 2006 at 22:51.
johnmeyer is offline   Reply With Quote
Old 12th June 2006, 22:55   #659  |  Link
tritical
Registered User
 
Join Date: Dec 2003
Location: MO, US
Posts: 999
As there is no explanation for tfm's output file anywhere, I'll give a brief description and answer the h match question. The format and fields are a mess from hacking in spots to hold new info, and I've tried to go for quick and easy readability instead of data compaction.

basic line format is:

frame_# match combed_frame d2v_duplicate [mic_value] (verbose output)

match can be one of:
p,c,n,b,u,h,l

p, c, n, b, and u are all explained in the tfm readme. h indicates a combed c match where the top field is to be kept (bottom interpolated) and l indicates a combed c match where the bottom field is to be kept (top interpolated). The distinction isn't important for tfm, but is needed by tdecimate for hybrid detection.

combed_frame marker will be either '-' for not combed or '+' for combed. If pp=0 then no mark will be present.

d2v_duplicate will be 1 if the frame is considered a duplicate because of rff flags and will not be present at all otherwise. If d2v is not used or flags=3, then d2v duplicates will not be considered and thus not marked.

[mic_value] lists the mic value for the match used. It is the value before any deinterlacing (i.e. a combed frame should have a mic_value above MI).

(verbose_output) will optionally list the mic values for other matches as indicated by the value for micout.

If pp=0, then none of the mic fields will be populated.
tritical is offline   Reply With Quote
Old 13th June 2006, 01:32   #660  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,691
Much appreciated! I am using the additional info that you now put into the output file to do my own MIC override in order to perfect my pattern matching. It works really well (this is for the film projector to video project). I can't tell you how impressed I am with your work.

I'm now doing full 24 fps "Cintel-style" film-to-video, thanks to TFM.

John
johnmeyer is offline   Reply With Quote
Reply

Tags
tdeint, tivtc

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


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