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. |
|
|
Thread Tools | Search this Thread | Display Modes |
12th January 2015, 12:32 | #221 | Link | |
Registered User
Join Date: Aug 2007
Posts: 218
|
Quote:
Regarding documentation, I am really not good at that..
__________________
f3kdb 1.5.1 / MP_Pipeline 0.18 ffms2 builds with 10bit output hack: libav-9a60b1f / ffmpeg-1e4d049 / FFmbc-0.7.1 Built from ffms2 6e0d654 (hack a9fe004) Mirrors: http://bit.ly/19TwDD3 |
|
24th June 2015, 17:20 | #222 | Link | |
Dopax
Join Date: Dec 2009
Posts: 17
|
Greetings to all:
First of all, thank you and congratulations for this tool. It's really useful, and has relieved me of some problems such as crashes and hangs due to some demanding MT scripts, going to encode to x264 in Megui. My problem, for which I ask your assistance is due to a script, more complex than usual, that I'm unable to transcribe MP pipeline properly. Quote:
The first problem, and perhaps more importantly, is with a section of the script, which uses a similar syntax MP own code, and that causes problems like "expected to, or)". The rest, I guess I would find out where and how it should be used, as appropriate, the correct syntax (splitts, export clip, etc ....) to adapt in the best possible way to use in MP; or if I had to even make changes to the syntax of the script itself for adaptation to MP In normal use, encoding it in Megui, only I managed to make it run more or less stable at 0.5 FPS on my i7 5930x with 16 GB RAM It is certainly not my intention seems comfortable and simply wait to be others who do the work. I want to learn the proper use of this tool but with this script I'm totally lost. Thank you all in advance Last edited by surgical; 24th June 2015 at 17:23. |
|
24th June 2015, 21:01 | #223 | Link |
Registered User
Join Date: Mar 2014
Posts: 308
|
>binomialBlur(varY=0.4515, varC=0, Y=3, U=2, V=2, useMMX=true)
>binomialBlur(varY=0.0001, varC=0, Y=3, U=2, V=2, useMMX=true) These probably don't do what you think they do. Unless you think they're supposed to give you black frames instead of blurring, in which case, yes, they do exactly what you think they do. The variance parameters get rounded down to the nearest multiple multiple of 0.5, and var*=0 has special treatment. Either way, this is useless. Heck, I might as well clean up the whole script while I'm at it. All comments and significant changes are blue. Code:
DGSource("E:\CARPETA CODIFICACION\*******.dgi") SelectRangeEvery(10000,500) sss = 1.5 newWidth = round(sss*width(last)/8)*8 newHeight = round(sss*height(last)/8)*8 LanczosResize(newWidth,newHeight) source = last s = 60 w = 24 mt_makediff(source.RemoveGrain(11),source) mt_lut("x 128 - "+string(128.0/(128.0-s))+" * 128 + "+string(128-w)+" max "+string(128+w)+" min") mt_makediff(source,last,u=2,v=2) LimitedSharpenFasterHC(strength=80) UnsharpHQ(THRESHOLD=80,SHARPSTR=2.6,SMOOTH=0.0, SHOW=false) aWarpSharp2(thresh=100, blur=2, type=0, depth=16, chroma=4) # do you really need four sharpening filters in a row? last.MergeChroma(source) FastLineDarkenMod() # moved this before denoising/debanding, but is this even necessary? Spline36Resize(1920,1080) # don't do the denoising/debanding with supersampling because # that doesn't help with quality and makes things slower SMDegrain(tr=2,thSAD=180,prefilter=2,contrasharp=30,refinemotion=true,lsb_in=false,lsb_out=true,chroma=false,plane=0) GradFun3(lsb_in=true) With all the cruft cleaned up, it should be fairly clear how to use MP_Pipeline with it. Oh, and the reason you were seeing syntax errors is most likely that you didn't appropriately escape the triple quotes used with Eval in the original script.
__________________
Say no to AviSynth 2.5.8 and DirectShowSource! Last edited by colours; 24th June 2015 at 21:08. |
24th June 2015, 22:51 | #224 | Link |
Dopax
Join Date: Dec 2009
Posts: 17
|
Thanks, colours:
The truth is that I'm aware that this script needs to be optimized (in this also I've to learn a lot), but I wanted to reflect as it had it because, mainly, I was interested to learn how to use MP appropriately with a complex script that was valid, although this was not optimized, you know , like a learning script. As for the quotes of the VAL function, I suppose, if I'm not mistaken, they must be written without spaces; I don't know if there will be any impropriety in the syntax; anyway, the script works. Anyway I appreciate very much the ideas and corrections that you've reflected in the script; any other that you think will be welcome. I would like to see as well optimized by one skilled as you, but I don't think that this is the right thread for this topic . |
15th August 2015, 03:34 | #225 | Link | ||
Registered User
Join Date: Jan 2015
Posts: 47
|
I seem to have an issue as well.
Quote:
Quote:
Last edited by BakaProxy; 15th August 2015 at 13:47. Reason: added stuff |
||
9th November 2015, 08:59 | #227 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
mp_pipeline and avs mt
hi SAPikachu
Code:
setmtmode(2,12) ColorBars(width=720, height=480, pixel_type="RGB32") ConvertToYV12() QTGMC(InputType=1, Ezdenoise=2) LSFMod(strength=66) gradfun3() Code:
MP_Pipeline(""" ### platform: win32 ColorBars(width=720, height=480, pixel_type="RGB32") ### ### setmtmode(2,12) ConvertToYV12() QTGMC(InputType=1, Ezdenoise=2) LSFMod(strength=66) gradfun3() """) Code:
MP_Pipeline(""" ### platform: win32 setmtmode(2,12) ColorBars(width=720, height=480, pixel_type="RGB32") ConvertToYV12() QTGMC(InputType=1, Ezdenoise=2) LSFMod(strength=66) gradfun3() distributor() ### ### """) Code:
MP_Pipeline(""" ### platform: win32 setmtmode(2,12) ColorBars(width=720, height=480, pixel_type="RGB32") ConvertToYV12() QTGMC(InputType=1, Ezdenoise=2) LSFMod(strength=66) gradfun3() setmtmode(1) distributor() ### ### """) Code:
setmtmode(2,12) MP_Pipeline(""" ### platform: win32 ColorBars(width=720, height=480, pixel_type="RGB32") ### ### ConvertToYV12() QTGMC(InputType=1, Ezdenoise=2) LSFMod(strength=66) gradfun3() """) and if it work it will be very slow Code:
MP_Pipeline(""" ### platform: win32 ColorBars(width=720, height=480, pixel_type="RGB32") ### ### setmtmode(2,12) ConvertToYV12() QTGMC(InputType=1, Ezdenoise=2) LSFMod(strength=66) gradfun3() setmtmode(1) distributor() """) Code:
ColorBars(width=720, height=480, pixel_type="RGB32") setmtmode(2,12) ConvertToYV12() QTGMC(InputType=1, Ezdenoise=2) LSFMod(strength=66) gradfun3() setmtmode(1) distributor() seems that avs mt need setmtmode in the beginning of script! and seems mp_pipeline has a hiding call in the beginning of every block except the first one so I think we need something like "### setmtmode" to use it between script blocks
__________________
See My Avisynth Stuff Last edited by real.finder; 9th November 2015 at 09:03. |
9th November 2015, 15:20 | #228 | Link | |
Registered User
Join Date: Aug 2007
Posts: 218
|
Quote:
__________________
f3kdb 1.5.1 / MP_Pipeline 0.18 ffms2 builds with 10bit output hack: libav-9a60b1f / ffmpeg-1e4d049 / FFmbc-0.7.1 Built from ffms2 6e0d654 (hack a9fe004) Mirrors: http://bit.ly/19TwDD3 |
|
9th November 2015, 15:54 | #229 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
Code:
MP_Pipeline(""" ### platform: win32 ### inherit start ### setmtmode(3,12) ### inherit end ### ColorBars(width=720, height=480, pixel_type="RGB32") setmtmode(1) distributor() ### ### setmtmode(2) ConvertToYV12() QTGMC(InputType=1, Ezdenoise=2) LSFMod(strength=66) gradfun3() """) Code:
MP_Pipeline(""" ### platform: win32 ### inherit start ### setmtmode(3,12) ### inherit end ### ColorBars(width=720, height=480, pixel_type="RGB32") setmtmode(1) distributor() ### ### setmtmode(2) ConvertToYV12() QTGMC(InputType=1, Ezdenoise=2) LSFMod(strength=66) gradfun3() setmtmode(1) distributor() ### ### """) Code:
MP_Pipeline(""" ### platform: win32 ### inherit start ### setmtmode(3,12) ### inherit end ### ColorBars(width=720, height=480, pixel_type="RGB32") setmtmode(1) distributor() ### ### setmtmode(2) ConvertToYV12() QTGMC(InputType=1, Ezdenoise=2) LSFMod(strength=66) setmtmode(1) distributor() ### ### """) gradfun3() My suggestion is to add something like "### setmtmode: x, y" to add setmtmode(x,y) in the top of script block and setmtmode(1) then distributor() in the bottom of block and with this we can use mt in certain blocks only thanks
__________________
See My Avisynth Stuff Last edited by real.finder; 9th November 2015 at 16:13. |
|
11th November 2015, 05:36 | #230 | Link |
Registered User
Join Date: Aug 2007
Posts: 218
|
That's only one line less than current.. You can already do this by manually adding these lines to individual blocks.
__________________
f3kdb 1.5.1 / MP_Pipeline 0.18 ffms2 builds with 10bit output hack: libav-9a60b1f / ffmpeg-1e4d049 / FFmbc-0.7.1 Built from ffms2 6e0d654 (hack a9fe004) Mirrors: http://bit.ly/19TwDD3 |
11th November 2015, 05:47 | #231 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
I can do this in first block only because it doesn't have MPP_GetUpstreamClip()
__________________
See My Avisynth Stuff Last edited by real.finder; 11th November 2015 at 06:11. Reason: MPP_GetUpstreamClip not MPP_PrepareDownstreamClip |
|
11th November 2015, 05:58 | #232 | Link | |
Registered User
Join Date: Aug 2007
Posts: 218
|
Quote:
EDIT: Sorry, my comment above is incorrect, I didn't pay attention while writing that.. But anyways, using SetMTMode inside MPP is not supported, it causes many issues and I don't want to add code to support it.
__________________
f3kdb 1.5.1 / MP_Pipeline 0.18 ffms2 builds with 10bit output hack: libav-9a60b1f / ffmpeg-1e4d049 / FFmbc-0.7.1 Built from ffms2 6e0d654 (hack a9fe004) Mirrors: http://bit.ly/19TwDD3 Last edited by SAPikachu; 11th November 2015 at 06:06. |
|
11th November 2015, 06:04 | #233 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
and you can make it thread-safe alone for that, right?
__________________
See My Avisynth Stuff |
|
12th November 2015, 09:06 | #234 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
Code:
MP_Pipeline(""" ### platform: win32 ColorBars(width=720, height=480, pixel_type="RGB32") ### ### ### platform: win32 setmtmode(2) ConvertToYV12() QTGMC(InputType=1, Ezdenoise=2) LSFMod(strength=66) gradfun3() setmtmode(1) distributor() ### ### """) now I installed VS 2012 and successful compile MP_Pipeline and tried to add ### top start/end but my knowledge in C++ zero as I not a programmer in first place the main problem is I don't now where the top of block after some tried I could understand a little how MP_Pipeline work the block start with MPP_SharedMemoryClient() ((plugin)) and MPP_GetUpstreamClip() ((script I think))
__________________
See My Avisynth Stuff Last edited by real.finder; 12th November 2015 at 11:32. Reason: typo |
|
14th November 2015, 11:29 | #235 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
ok, I did it in a roundabout way
http://www.mediafire.com/download/kv...ine+0.18.1.rar edit: build with xp support or with vc10 and no static http://www.mediafire.com/file/wj1v0y..._no_static.rar http://www.mediafire.com/download/3s...0.18.1+src.rar test script Code:
MP_Pipeline(""" ### platform: win32 ColorBars(width=720, height=480, pixel_type="RGB32") ### setmtmode: 2,0 # setmtmode here for the next block ### ### ### platform: win32 ConvertToYV12() QTGMC(InputType=1, Ezdenoise=2) LSFMod(strength=66) gradfun3() setmtmode(1) # enable MT distributor() ### ### """)
__________________
See My Avisynth Stuff Last edited by real.finder; 14th January 2019 at 03:08. |
15th May 2016, 02:19 | #236 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
edit: see here https://github.com/SAPikachu/MP_Pipeline/issues/1
__________________
See My Avisynth Stuff Last edited by real.finder; 28th November 2016 at 12:03. |
18th May 2016, 21:52 | #237 | Link |
Registered User
Join Date: Jan 2012
Posts: 46
|
Hi,
I use this script to resize movies during playback Code:
Import("C:\Program Files (x86)\AviSynth\plugins\dither.avsi") Import("C:\Program Files (x86)\AviSynth\plugins\mt_xxpand_multi.avsi") Import("C:\Program Files (x86)\AviSynth\plugins\nnedi3_resize16_v3.3.avsi") LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\nnedi3.dll") LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\dither.dll") SetMemoryMax(512) SetMTMode(3,8) ffdshow_source() SetMTMode(3) dispWidth = 1920 dispHeight = 1080 mWidth = float(last.width) mHeight = float(last.height) ratio = (mWidth/mHeight) newHeight= round((dispWidth/ratio)/2)*2 newHeight > dispHeight ? Eval(""" newHeight=dispHeight newWidth=round((newHeight*ratio)/2)*2 """) : Eval(""" newWidth=dispWidth """) nnedi3_resize16(newWidth,newHeight) SetMTMode(1) GetMTMode(false) > 0 ? distributor() : last Please, someone can tell me how speed up my script with this plugin? |
29th May 2016, 20:32 | #238 | Link |
Registered User
Join Date: Jan 2012
Posts: 46
|
I installed Avisynth+ and I tried to simplify my script thanks to a previous post of colours
Code:
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins+\MP_Pipeline.dll") MP_Pipeline(""" ### platform: win32 sss = 1.5 newWidth = round(sss*width(last)/8)*8 newHeight = round(sss*height(last)/8)*8 LanczosResize(newWidth,newHeight) distributor() ### ### """) MP_Pipeline: Unable to create slave process. Message: Script error: Script error: Invalid arguments to function 'width'. (ffdshow_filter_avisynth_script, line 10) |
29th May 2016, 22:09 | #239 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
2. Avisynth+ does not have a function "distributor()" |
|
30th May 2016, 01:03 | #240 | Link |
Registered User
Join Date: Jan 2012
Posts: 46
|
This script works well
Code:
ffdshow_source() SetMemoryMax(512) sss = 1.5 newWidth = round(sss*width(last)/8)*8 newHeight = round(sss*height(last)/8)*8 LanczosResize(newWidth,newHeight) This doesn't work Code:
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins+\MP_Pipeline.dll") MP_Pipeline(""" ### platform: win32 ffdshow_source() SetMemoryMax(512) sss = 1.5 newWidth = round(sss*width(last)/8)*8 newHeight = round(sss*height(last)/8)*8 LanczosResize(newWidth,newHeight) ### ### """) MP_Pipeline: Unable to create slave process. Message: Script error: Script error: There is no function named 'ffdshow_source'. (ffdshow_filter_avisynth_script, line 10) |
Tags |
avisynth, multi-process, pipeline |
Thread Tools | Search this Thread |
Display Modes | |
|
|