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. |
12th April 2006, 10:38 | #81 | Link |
Registered User
Join Date: May 2005
Location: Germany
Posts: 495
|
@all
Crestore is updated: Thanks to Didee who recognize a bug with a resized "clip2", there was a bugfix and the mt_masktools are now in Version 2.0a28 packed. @Alain For anime samples you get a better blenddetection with higher modes (4-8). For really low motion you should choose a bthresh near 100 (between 101 and 111) and not use the mthresh (set it to 0). For extrem low motion (only with postrocessed clip2 or really good quality of the source) Cdeblend(sd=true, mode>5, mil=?) will give a really heavy detection. The sd parameter isnīt implemented in Crestore and can also lead to a wrong detection (not so save). It can also be, that some parts are overblended, no simple normconversion (-> special Cdeblendmodes). @stg I downloaded your samples and will have a look on it this evening. Last edited by MOmonster; 12th April 2006 at 10:42. |
12th April 2006, 16:15 | #82 | Link |
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,183
|
MOmonster,
Thanks for your works! I will try it. One non-technical comment (it is general, not only to you) . If you distribute GPL plugins binary (mt_masktools.dll), you must distribute its source too. Here is part 3 of GPL license text: Code:
3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) So, if you downloaded some GPL binary WITHOUT source (for example Avisynth2.56, which have separate source archive package), you may distribute it without a source too. But if you downloaded some GPL binary WITH a source in one zip package, you must distribute whole package (with source). Other possible solution - do not distribute any plugins, but links only. It will make your archive really very small. Third You also can solution: make their separate full plugins package at your site. GPL is not very "free" license. |
13th April 2006, 08:06 | #83 | Link |
Registered User
Join Date: May 2005
Location: Germany
Posts: 495
|
@Filzick
Oh, I didnīt know that, thanks. Iīll do that. @stg I had a look on your sample yesterday. And yes itīs no wonder that Crestore doesnīt work on this sample. Your sample is the result of a so called DEFT conversion, scharfis_brain might correct my. So itīs not so bad like a hybrid source. There are some possibilities to restore this. You can for example use Cdeblend with the right settings (mode=1,...) and than decimate to 25fps. Or you use my unDEFTmatcher. Itīs a little bit older, but the results with your source were ok. This is the script I used: Code:
a = last.tdeint(mode=1) unDEFTmatcher(last, bob=a, MI=55) Function unDEFTmatcher(clip clp, clip "bob", float "blenddiff", int "MI") { ###### PREPARATION ###### MV = default(MI,77) global out = bob global testclip = clp.separatefields() global combclip = clp global matchmask = clp.tfm(mode=0,pp=2,MI=MV,clip2=clp.greyscale()) global diff = default(blenddiff,1.15) ###### VAR.. ###### global me1 = 1.0 global mo1 = 1.0 global choose = false global match1 = false global matchc = false global match0 = false global matchb = false ###### Conditional Function Chain, evaluated from bottom to top (!) ###### c99=scriptclip(clp, "match1 == true && match0 == true && matchc == matchb ? matchmask : \ (choose == false ? out.selecteven() : out.selectodd())") c5=FrameEvaluate(c99, "global choose = ((me1 < me0 ? me0/me1 : me1/me0)*diff < (mo1 < mo0 ? mo0/mo1 : mo1/mo0)) || \ (match0 == true && matchex == true && matchbb == matchb) ? false : \ ((me1 < me0 ? me0/me1 : me1/me0) > diff*(mo1 < mo0 ? mo0/mo1 : mo1/mo0) ? true : choose) global match1 = AverageChromaU(matchmask) != 128.000 ? true : false global matchc = ChromaUDifference(matchmask,combclip) < 0.001 ? true : false") c4=FrameEvaluate(c5, "global match0 = match1 global matchb = matchc global me1 = YDifferenceToNext(testclip.selecteven()) global mo1 = YDifferenceToNext(testclip.selectodd())") c3=FrameEvaluate(c4, "global matchex = match0 global matchbb = matchb global me0 = me1 global mo0 = mo1") return(c3) } Scharfis_Brain also created a function to restore these sources. You find it here. I donīt know what is the optimal way for your source. Some less duplicates will be there because the transitions (between fieldshifted and progressive, fiedshifted and blended, ...). In case of speed and quality I prefer unDEFTmatcher. But if you hate single blends on scenechanges (I donīt recognize them during playback), the other to possibilities might work better for you. Edit: I remove mt_masktools from the zip because of the GPL licence. You can download Manaoīs newest mt_masktools here. Last edited by MOmonster; 4th May 2006 at 10:03. |
13th April 2006, 15:24 | #84 | Link |
Registered User
Join Date: Mar 2006
Posts: 9
|
Thank you for checking out the sample and for the script !!
I'll try it today and see if I can make it work, I'm not very good with this yet, I'm n00b what comes to these.... I was wondering if you could paste me the exact avisynth script + the exact parameters you used with this script, while testing that clip, thank you Last edited by stg; 13th April 2006 at 19:29. |
14th April 2006, 12:49 | #85 | Link | |
Registered User
Join Date: May 2005
Location: Germany
Posts: 495
|
Quote:
Code:
#here you have to load the necessary plugins: tivtc, tdeint and DGDecode mpeg2source("...") a = last.tdeint() unDEFTmatcher(last, bob=a, MI=55) #and here is the code for the function Function ... Code:
global matchmask = clp.tfm(mode=0,pp=2,MI=MV,clip2=clp.greyscale()) | V global matchmask = clp.tfm(mode=0,cthresh=7,mthresh=3,pp=2,MI=MV,clip2=clp.greyscale()) Last edited by MOmonster; 14th April 2006 at 12:54. |
|
15th April 2006, 11:29 | #87 | Link | |
Registered User
Join Date: May 2005
Location: Germany
Posts: 495
|
Quote:
Cu, MOmonster. |
|
18th April 2006, 06:39 | #88 | Link |
Registered User
Join Date: Mar 2006
Posts: 9
|
It seems I get some promising results with CDeblend, not "quite there yet" but promising.
But with unDEFTmatcher.... every time the result looks like this: http://download.yousendit.com/B4EE2B485990C698 Tried with different sources, dunno what's wrong. |
10th May 2006, 10:56 | #91 | Link |
Registered User
Join Date: May 2005
Location: Germany
Posts: 495
|
Another update:
Crestore is updated to 1.0v2. I included the smoothmotion conditions that gives a much better patterndetection and motion for many sources. Because this donīt work so good for 12fps sources and with wrong settings it can conflict with the basic blenddetection default it is disabled. To enable this feature set the smuse Parameter (10-50). Also I added another function called Mrestore. Itīs similar to Crestore but it works better for good quality natural sources. It doesnīt need any external filters and has the same speed as Crestore(mode=-x) (->fast). |
10th May 2006, 19:23 | #92 | Link |
Registered User
Join Date: Jan 2006
Posts: 220
|
I'm trying this out as Restore24 just doesn't want to work for me, but I when I load my script into Vdub Mod, there is always a message saying "Choosen *rate* won't work!!" Doesn't matter what rate I use or what changes I make to other settings, it doesn't go away.
There's also still a hell of a lot of telecined/field blended frames remaining. |
11th May 2006, 07:16 | #93 | Link |
Registered User
Join Date: May 2005
Location: Germany
Posts: 495
|
You have to bob the source before you use C/Mrestore. For a PAL source you first bob to 50fps and than use Crestore/Mrestore with the rate 23.976 (default), for a NTSC source you first bob to 59.94fps and than choose the rate 25 (this is only the default case).
Example: Code:
MPEG2SOURCE("... .d2v") tdeint(mode=1) Mrestore() |
11th May 2006, 21:19 | #94 | Link |
Registered User
Join Date: Jan 2006
Posts: 220
|
Many thanks. That did sort out the "choosen rate" error. I am still getting a lot of blended frames left over though, and quite a lot of interlaced ones too. I'm very new to this kind of restoring, so it's probably a case of me doing something wrong.
I'm uploading a sample vob somewhere now. Should I just paste the link here when it's done, or pm it? Thanks again. edit: I've uploaded it. It's a 106MB 2 minute sample, with a lot of fast motion. Megaupload.com - sample.rar. I apologise if the link is not allowed in the forums. Last edited by desta; 12th May 2006 at 02:19. |
12th May 2006, 07:48 | #95 | Link | |
Registered User
Join Date: May 2005
Location: Germany
Posts: 495
|
Quote:
@all I made another update. Crestore is now a part of Mrestore. Mrestore has a modified blendthresholding and needs now also mt_masktools. It enables profiles for a easier use of Mrestore. For more informations, please read the Mrestore.txt. Last edited by MOmonster; 12th May 2006 at 08:10. |
|
12th May 2006, 08:00 | #96 | Link | |
Registered User
Join Date: Jan 2006
Posts: 220
|
Quote:
I appreciate the help. |
|
12th May 2006, 15:23 | #98 | Link |
Registered User
Join Date: May 2005
Location: Germany
Posts: 495
|
@Alain
Maybe Iīll do it, but at the moment Mrestore is finished. I have no idea for a faster or better blenddetection (at the moment). The decimation is not so good like in restore24 but itīs really fast and the basic idea of Crestore. Weīll see what comes next. Iīm more interested in programming at the moment. @desta Code:
tdeint(mode=1) Mrestore(profile=2) #Mrestore(profile=6) I think buying the r1 version is the best idea if these artefacts are too disturbing, but you should first try it, because the pattern is correct detected. Last edited by MOmonster; 19th May 2006 at 07:03. |
12th May 2006, 20:11 | #99 | Link |
Registered User
Join Date: Jan 2006
Posts: 220
|
Thanks for the advice MOmonster. I'm gonna check those profiles out and see how it looks. I'm just annoyed that Sony would go through this process to make a PAL DVD... I would've thought it made far more sense to just speed up the progressive film rather than go all 'round the houses the way they have.
Anyway.. I'm rambling, hehe. Thanks again. |
12th May 2006, 23:57 | #100 | Link | |
Registered User
Join Date: May 2005
Posts: 236
|
Quote:
|
|
Tags |
mrestore, srestore |
Thread Tools | Search this Thread |
Display Modes | |
|
|