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
Register FAQ Calendar Today's Posts Search

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 23rd July 2017, 15:13   #11  |  Link
edcrfv94
Registered User
 
Join Date: Apr 2015
Posts: 84
Maybe auto one processes for each C/C++ filter(auto switch 32bit if 64bit not available) and auto adjustment prefetch and keep frames cache, can temporarily solve the multi-threaded problem until a new method appears.

Code:
colorbars(width = 1920, height = 1080, pixel_type = "yv12")

src = last
mcdn = src.kf_MCDegrainN(clip c, int "tr")

rfs(src, mcdn, mappings="[1000 2000] [3000 4000]") #Remap Frames

function kf_MCDegrainN(clip c, int "tr")
{	
	
	tr       = default(tr,          6)
	
	super  = MSuper(levels=0)

	multi_vec = MAnalyse(super, multi=true, delta=tr)
	
	c.MDeGrainN(super, multi_vec, tr)
	
	return last
}
Code:
colorbars(width = 1920, height = 1080, pixel_type = "yv12")

src = last

#1 processes prefetch 16 keep 14
#export last, src
#pass

mcdn = src.kf_MCDegrainN(clip c, int "tr")
	function kf_MCDegrainN(clip c, int "tr")
	{	
		
		tr       = default(tr,          6)
		
		super  = MSuper(levels=0)
		#2 processes prefetch 14 keep 12
		#export super
		#pass last, c

		multi_vec = MAnalyse(super, multi=true, delta=tr)
		#3 processes prefetch 12 keep 10
		#export multi_vec
		#pass last, c, super
		
		c.MDeGrainN(super, multi_vec, tr)
		#4 processes prefetch 10 keep 8
		#export last
		#pass
		
		return last
	}

rfs(src, mcdn, mappings="[1000 2000] [3000 4000]") #Remap Frames
#5 processes prefetch 8 keep 6
#export last
MP_Pipeline cann't pass audio, just for example.
Code:
MP_Pipeline("""
	
	SetMemoryMax(500)
	
	colorbars(width = 1920, height = 1080, pixel_type = "yv12")
	src = last
	
### export clip:src
### prefetch: 14,12
### ###

	SetMemoryMax(500)
	
	c = src
	super  = MSuper(levels=0)
	
### export clip:c, super
### pass clip:src
### prefetch: 12,10
### ###

	SetMemoryMax(500)
	
	multi_vec = MAnalyse(super, multi=true, delta=tr)
	
### export clip:multi_vec
### pass clip:src, c, super
### prefetch: 10,8
### ###
	
	SetMemoryMax(500)
	
	mcdn = c.MDeGrainN(super, multi_vec, tr)
	
### export clip:mcdn
### pass clip:src
### prefetch: 8,6
### ###
	
	SetMemoryMax(500)
	
	rfs(src, mcdn, mappings="[1000 2000] [3000 4000]") #Remap Frames
	
""")

Last edited by edcrfv94; 23rd July 2017 at 15:16.
edcrfv94 is offline  
 


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 11:57.


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