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 17th June 2016, 10:44   #21  |  Link
yup
Registered User
 
Join Date: Feb 2003
Location: Russia, Moscow
Posts: 854
pinterf!
I am testing Your MVTools under Avisynth+ 64 bit and find strange behaviour during using QTGMC, when try dct=5 I see wrong motion estimation, other dct 1,2,3, 4 work normally.
yup.
yup is offline   Reply With Quote
Old 17th June 2016, 13:17   #22  |  Link
GMJCZP
Registered User
 
GMJCZP's Avatar
 
Join Date: Apr 2010
Location: I have a statue in Hakodate, Japan
Posts: 506
Quote:
Originally Posted by GMJCZP View Post
Without AvsMeter, I noted that this build is more slow that Fizick and cretindesalpes versions. It's weird.
What happened with that?
__________________
By law and justice!

Flea Market
GMJCZP is offline   Reply With Quote
Old 17th June 2016, 13:55   #23  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 1,240
Quote:
Originally Posted by GMJCZP View Post
What happened with that?
Could not reproduce, for me, it was faster in a qtgmc process. But I don't know what kind of script you are using.
What numbers (fps) did you see without and with avsmeter on the different mvtools versions?
pinterf is offline   Reply With Quote
Old 17th June 2016, 14:13   #24  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 1,240
Quote:
Originally Posted by yup View Post
pinterf!
I am testing Your MVTools under Avisynth+ 64 bit and find strange behaviour during using QTGMC, when try dct=5 I see wrong motion estimation, other dct 1,2,3, 4 work normally.
yup.
Is it only the x64 version or 32 bit, too?
If both versions share the problem, unfortunately it must be in the deepness of the original code, would be very hard for me to dig into it.
And if it is reproducible also with Fizick's version, we should ask him.
Nevertheless, I will try it when I have time; bwt, is it hard to recognize, or I will see an obvious garbage?
pinterf is offline   Reply With Quote
Old 17th June 2016, 14:52   #25  |  Link
GMJCZP
Registered User
 
GMJCZP's Avatar
 
Join Date: Apr 2010
Location: I have a statue in Hakodate, Japan
Posts: 506
Test results only with AvsMeter:

Code:
Log file created with:                 AVSMeter 2.2.8 (x86)

[Clip info]
File.avi
Number of frames:                 2447
Length (hh:mm:ss.ms):     00:01:21.656
Frame width:                       512
Frame height:                      384
Framerate:                      29.967 (100000/3337)
Colorspace:                       YV12
Active MT Mode:                      0
Audio channels:                    n/a
Audio bits/sample:                 n/a
Audio sample rate:                 n/a
Audio samples:                     n/a

[Script]
function PreF_MDeGrain(clip src, int "radius", int "P_thSAD")
{

radius = default(radius, 2)
P_thSAD = default(P_thSAD, 400)

preNR = src.frfun3b(s=8,T=2,tuv=7)

preNR_super = preNR.MSuper(pel=2, sharp=1)
src_super   = src.MSuper(pel=2, sharp=1, levels=1)

backward_vec3 = MAnalyse(preNR_super, isb = true,  delta = 3, overlap=4)
backward_vec2 = MAnalyse(preNR_super, isb = true,  delta = 2, overlap=4)
backward_vec1 = MAnalyse(preNR_super, isb = true,  delta = 1, overlap=4)
forward_vec1  = MAnalyse(preNR_super, isb = false, delta = 1, overlap=4)
forward_vec2  = MAnalyse(preNR_super, isb = false, delta = 2, overlap=4)
forward_vec3  = MAnalyse(preNR_super, isb = false, delta = 3, overlap=4)

radius >= 3 ? src.MDegrain3(src_super, backward_vec1, forward_vec1, backward_vec2, forward_vec2, backward_vec3, forward_vec3, thSAD=P_thSAD) : \
radius == 2 ? src.MDegrain2(src_super, backward_vec1, forward_vec1, backward_vec2, forward_vec2, thSAD=P_thSAD) : \
src.MDegrain1(src_super, backward_vec1, forward_vec1, thSAD=P_thSAD)
}

[Results]

MVTools 2.7.0.22 XP (pinterf):

[Runtime info]
Frames processed:               2447 (0 - 2446)
FPS (min | max | average):      4.663 | 10.79 | 5.337
Memory usage (phys | virt):     368 | 364 MiB
Thread count:                   1
CPU usage (average):            50%
Time (elapsed):                 00:07:38.488

MVTools 2.6.0.5 (cretindesalpes):

[Runtime info]
Frames processed:               2447 (0 - 2446)
FPS (min | max | average):      4.372 | 12.48 | 6.170
Memory usage (phys | virt):     367 | 364 MiB
Thread count:                   1
CPU usage (average):            50%
Time (elapsed):                 00:06:36.585

MVTools 2.5.11.22 (Fizick):

[Runtime info]
Frames processed:               2447 (0 - 2446)
FPS (min | max | average):      5.836 | 14.11 | 6.548
Memory usage (phys | virt):     364 | 362 MiB
Thread count:                   1
CPU usage (average):            50%
Time (elapsed):                 00:06:13.685
__________________
By law and justice!

Flea Market
GMJCZP is offline   Reply With Quote
Old 17th June 2016, 16:21   #26  |  Link
Groucho2004
►◄
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Location: A wretched hive of scum and villainy
Posts: 4,398
@GMJCZP
The script is incomplete. It seems you cut arbitrary parts out of the log file.
If you want us to try and reproduce it you'll have to post the entire script.
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 17th June 2016, 17:59   #27  |  Link
GMJCZP
Registered User
 
GMJCZP's Avatar
 
Join Date: Apr 2010
Location: I have a statue in Hakodate, Japan
Posts: 506
Quote:
Originally Posted by Groucho2004 View Post
@GMJCZP
The script is incomplete. It seems you cut arbitrary parts out of the log file.
If you want us to try and reproduce it you'll have to post the entire script.
Do you mean include performance data?
__________________
By law and justice!

Flea Market
GMJCZP is offline   Reply With Quote
Old 17th June 2016, 18:12   #28  |  Link
Groucho2004
►◄
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Location: A wretched hive of scum and villainy
Posts: 4,398
Quote:
Originally Posted by GMJCZP View Post
Do you mean include performance data?
No, the full script.
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 17th June 2016, 18:27   #29  |  Link
GMJCZP
Registered User
 
GMJCZP's Avatar
 
Join Date: Apr 2010
Location: I have a statue in Hakodate, Japan
Posts: 506
Here:

Code:
[Script]

#  PLUGINS
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\avstimerf.dll")
#LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\dgdecode.dll")
#LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\Decomb521VFR1.3_PPro-P3.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\mt_masktools-26.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\TIVTC.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\masktools.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\dither.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\Deen_beta.dll")
#LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\EEDI2_imp.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\deblock.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\Tnlmeans.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\dfttest.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\nnedi3.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\RemoveGrain.dll")
#LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\RemoveGrainTSSE3.dll")
#LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\KNLMeansCL.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\yadifmod2.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\nnedi2.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\RemoveDirtSSE2.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\WarpSharp.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\aWarpSharp2.dll")
#LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\nnedi.dll")
#LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\nnedi2.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\asharp.dll")
#LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\awarpsharp.dll")
#LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\Average.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\TcannyMod.dll")
#LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\DeFlicker.dll")
#LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\ChromaShift.dll")
#LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\gradfun2db.dll")
#LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\cnr2.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\mvtools2.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\unfilter.dll")
#LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\ColorMatrix.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\frfun3b.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\fft3dfilter.dll")
#LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\ReduceFlickerSSE3.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\Toon-v1.1.dll")
#LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\DctFilter.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\Repair.dll")
#LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\RepairTSSE2.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\tdeint.dll")
#LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\TBilateral.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\tmm.dll")
#LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\sangnom.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\undot.dll")
#LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\vinverse.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\VagueDenoiser.dll")
#LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\SSIQ.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\MVTools.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\DeGrainMedian.dll")
#LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\FillMargins.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\MSharpen.dll")
#LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\mipsmooth.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\VSFilter.dll")
#LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\DeDup.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\autoadjust.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\VerticalCleanerSSE3.dll")
LoadPlugin("C:\ARCHIV~1\GORDIA~1\AviSynthPlugins\Convolution3DYV12.dll")



import("D:\Tipos de archivo de audio y video\Avi\Herramientas Avi\AviSynth\Scripts\Sharpening\SeeSaw\SeeSaw.avs"
import("D:\Tipos de archivo de audio y video\Avi\Herramientas Avi\AviSynth\Scripts\Sharpening\FastLineDarken\FastLineDarkenMod.avsi")
import("D:\Tipos de archivo de audio y video\Avi\Herramientas Avi\AviSynth\Scripts\Correccion color\YLevels\YLevels_mt.avsi")
import("D:\Tipos de archivo de audio y video\Avi\Herramientas Avi\AviSynth\Scripts\Fix Chroma\ChromaShift_SP\ChromaShift_SP.avs")
import("D:\Tipos de archivo de audio y video\Avi\Herramientas Avi\AviSynth\Scripts\DeBanding\Dither\dither.avsi")
import("D:\Tipos de archivo de audio y video\Avi\Herramientas Avi\AviSynth\Scripts\DeBanding\Dither\mt_xxpand_multi.avsi")
import("D:\Tipos de archivo de audio y video\Avi\Herramientas Avi\AviSynth\Scripts\Compresion de videos\SPresso.avsi")
import("D:\Tipos de archivo de audio y video\Avi\Herramientas Avi\AviSynth\Scripts\Restauracion de frames\Imagenes en Avisynth\RescueFrame.avsi")
import("D:\Tipos de archivo de audio y video\Avi\Herramientas Avi\AviSynth\Scripts\John Meyer MVDeGrain\PreF_MDeGrain.avsi")


avisource("File.avi",audio=false)

PreF_MDeGrain()
__________________
By law and justice!

Flea Market
GMJCZP is offline   Reply With Quote
Old 17th June 2016, 19:23   #30  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 1,240
That is quite a big difference, worth the inspection
pinterf is offline   Reply With Quote
Old 17th June 2016, 21:16   #31  |  Link
Groucho2004
►◄
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Location: A wretched hive of scum and villainy
Posts: 4,398
Quote:
Originally Posted by pinterf View Post
That is quite a big difference, worth the inspection
I'm getting very similar results, different source but the trend is the same:
Code:
MVTools 2.7.0.22 XP (pinterf):

[Runtime info]
Frames processed:               200 (0 - 199)
FPS (min | max | average):      3.139 | 4.879 | 3.190
Memory usage (phys | virt):     360 | 357 MiB
Thread count:                   2
CPU usage (average):            25%
Time (elapsed):                 00:01:02.687

MVTools 2.6.0.5 (cretindesalpes):

[Runtime info]
Frames processed:               200 (0 - 199)
FPS (min | max | average):      3.625 | 5.432 | 3.688
Memory usage (phys | virt):     353 | 350 MiB
Thread count:                   2
CPU usage (average):            25%
Time (elapsed):                 00:00:54.227

MVTools 2.5.11.22 (Fizick):

[Runtime info]
Frames processed:               200 (0 - 199)
FPS (min | max | average):      3.494 | 5.718 | 3.938
Memory usage (phys | virt):     380 | 378 MiB
Thread count:                   2
CPU usage (average):            25%
Time (elapsed):                 00:00:50.791
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 17th June 2016, 21:56   #32  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 1,240
I wonder if its only the xp build that is slow?
pinterf is offline   Reply With Quote
Old 19th June 2016, 18:51   #33  |  Link
yup
Registered User
 
Join Date: Feb 2003
Location: Russia, Moscow
Posts: 854
dct=5 issue

pinterf
Quote:
Originally Posted by pinterf View Post
Is it only the x64 version or 32 bit, too?
If both versions share the problem, unfortunately it must be in the deepness of the original code, would be very hard for me to dig into it.
And if it is reproducible also with Fizick's version, we should ask him.
Nevertheless, I will try it when I have time; bwt, is it hard to recognize, or I will see an obvious garbage?
Avisynt+ 32 bit ant Your version MVTools work without problem.
Testing script
Code:
SetMemoryMax(1536)
SetFilterMTMode("DEFAULT_MT_MODE",2)
SetFilterMTMode("AviSource",3)
AVISource("samplevhs.avi")
AssumeTFF()
QTGMC(dct=5)
Prefetch(8)
sample video https://www.dropbox.com/s/5exreq9j9e0r0hs/test.avi?dl=0
yup.

Last edited by yup; 20th June 2016 at 10:03. Reason: add link for sample video
yup is offline   Reply With Quote
Old 20th June 2016, 17:09   #34  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 1,240
Quote:
Originally Posted by yup View Post
Code:
SetMemoryMax(1536)
SetFilterMTMode("DEFAULT_MT_MODE",2)
SetFilterMTMode("AviSource",3)
AVISource("samplevhs.avi")
AssumeTFF()
QTGMC(dct=5)
sample video https://www.dropbox.com/s/5exreq9j9e0r0hs/test.avi?dl=0
yup.
Nasty bug. But reproducible. So far that's all.
Something within MVAnalyze is broken on x64.
This modification works:
QTGMC(/*Preset="Slower",*/dct=5, ChromaMotion=false)
pinterf is offline   Reply With Quote
Old 21st June 2016, 09:40   #35  |  Link
yup
Registered User
 
Join Date: Feb 2003
Location: Russia, Moscow
Posts: 854
pinterf!
Yes, it is work
Code:
chromamotion=false
I am using this option for my VHS capture video.
yup.
yup is offline   Reply With Quote
Old 4th August 2016, 10:56   #36  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 1,240
Dear users, 2016 is a lucky year, MvTools2 finally got YUV 4:2:2 and 4:4:4 support (YV16 and YV24).

See source and binaries here:
MVTools2 2.7.0.22c

Please try this *test* build, which works for me with my usual scripts and YV16 gives identical output as with the former YUY2 format.

No need hacking YUY2 sources any more to special planar format and back, convert your source once to YV16 and process it.

P.S.
Could not try it with SMDegrain.avsi, because the script internally assumes YV12 for planar YUV format. BTW the script is full with YUY2 conversion, maybe it can be lighter, too.
pinterf is offline   Reply With Quote
Old 4th August 2016, 11:00   #37  |  Link
yup
Registered User
 
Join Date: Feb 2003
Location: Russia, Moscow
Posts: 854
pinterf!

Work with QTGM without problems, practically at same speed like YV12.
yup.

Last edited by yup; 4th August 2016 at 11:09. Reason: Check QTGMC script
yup is offline   Reply With Quote
Old 4th August 2016, 13:27   #38  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,115
Very nice. Thank you pinterf!

Quote:
Originally Posted by pinterf View Post
No need hacking YUY2 sources any more to special planar format and back, convert your source once to YV16 and process it.

P.S.
Could not try it with SMDegrain.avsi, because the script internally assumes YV12 for planar YUV format. BTW the script is full with YUY2 conversion, maybe it can be lighter, too.
Yes, both QTGMC and SMDegrain are quite bloated due to the planar YUY2 hack. A while back I started modding QTGMC to remove the hack, I never finished but MVTools supporting YV16 makes it a lot easier.
Reel.Deel is offline   Reply With Quote
Old 5th August 2016, 03:57   #39  |  Link
GMJCZP
Registered User
 
GMJCZP's Avatar
 
Join Date: Apr 2010
Location: I have a statue in Hakodate, Japan
Posts: 506
Hi pinterf, and Windows XP problem?
Anyway thank you for your effort.
__________________
By law and justice!

Flea Market
GMJCZP is offline   Reply With Quote
Old 5th August 2016, 07:13   #40  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 1,240
Did you try it?
pinterf 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 19:16.


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