View Full Version : filters for dual core proc's
J-Wo
12th January 2006, 06:53
Hi guys, I discovered a great avs filter that can be used for any traditional avs filters, but will utilize dual core more and speed up encoding. Details can be found here in this (http://forum.doom9.org/showthread.php?t=94996) thread. You almost have to read the entire thread to understand how to use it as the first post can be somewhat confusing... It's had many permutations and two different ways you can use it. Anyway the fastest way in my test encodes was the place the line SetMTMode(2) *before* the mpeg2source line. But with DVD-RB, you can't really do this unless you do it manually with Rb-Opt. jdobbs, I know there is an AVS filter editor built in to RB but do you think you could allow the user to make more advanced changes, such as the one I want to do above? Thanks!
edit: fixed broken link
jdobbs
12th January 2006, 12:37
Your link is dead.
sillKotscha
12th January 2006, 13:51
http://forum.doom9.org/showthread.php?t=94996
l8nights
12th January 2006, 15:19
has any body wrote a functional script that works w/ ht/dual core for use w/rebuilder
for those of us that aren't so adept in scripting!
J-Wo
12th January 2006, 15:24
has any body wrote a functional script that works w/ ht/dual core for use w/rebuilder
for those of us that aren't so adept in scripting!
well I guess that's the problem right now... i mean if you're not too adept with scripting, this new filter for ht/dual cores requires some advanced script tweaking within RB. It uses a modified avisynth.dll to utilize mutlithreading within your avs scripts, so I guess you gotta learn one before the other. We're not quite at the point yet where you can tick a radio button within RB and just say "Utilize Dual Cores", but maybe soon! :)
jdobbs
12th January 2006, 15:33
I don't have a dual-core processor so I can't experiment with this...
Tell me this, if you run two instances of CCE running at the same time -- with the O/S automatically assign each of them to a different processor?
archaeo
12th January 2006, 16:31
I don't have a dual-core processor so I can't experiment with this...
Tell me this, if you run two instances of CCE running at the same time -- with the O/S automatically assign each of them to a different processor?
On my OS (W2K), it does not. Both CCE Basic and SP Trial 2.70 running concurrently are assigned to both 0 and 1 CPU affinities.
MCFish
12th January 2006, 21:43
On my OS (W2K), it does not. Both CCE Basic and SP Trial 2.70 running concurrently are assigned to both 0 and 1 CPU affinities.
Same in XP. Athlon X2
l8nights
13th January 2006, 03:11
well I guess that's the problem right now... i mean if you're not too adept with scripting, this new filter for ht/dual cores requires some advanced script tweaking within RB. It uses a modified avisynth.dll to utilize mutlithreading within your avs scripts, so I guess you gotta learn one before the other. We're not quite at the point yet where you can tick a radio button within RB and just say "Utilize Dual Cores", but maybe soon! :)
seems I've lost my script may I borrow yours:D
I'm not above copying that's how I mad it through high school!
seriously I'm guessing each script is dependant on the source??
I guess it's better to learn now then l8ter don't want to teach an even older dog new tricks!
do you suggest any newb reading/links on scripting!
mrcleeo
14th January 2006, 14:36
will this work with just a straight mpeg2 in dvd-rb encode with no filters?
LoadPlugin("C:\Program Files\DVD-RB PRO\DGDecode.dll")
mpeg2source("F:\HP WORKPATH\D2VAVS\V01.D2V")
trim(0,465)
ConvertToYUY2(interlaced=true)
AudioDub(BlankClip())
LoadPlugin("C:\Program Files\DVD-RB PRO\DGDecode.dll")
SetMTMode(2,2) <----?
mpeg2source("F:\HP WORKPATH\D2VAVS\V01.D2V")
trim(0,465)
ConvertToYUY2(interlaced=true)
AudioDub(BlankClip())
i have an amd x2 4400 and i was trying to get it to utilize the whole cpu.
ive tried to get it to work a few times and when it encodes it makes the video with red lettering of errors
Boulder
15th January 2006, 08:27
Open the script in a media player or VirtualDub and see what the error message is. You need the special Avisynth dll to use SetMTMode.
www.avisynth.org/tsp
apfraats
16th January 2006, 09:22
Oh boys, this is about all of usd with money an can effort the new dual core systems....
That's why I started a speed poll a while ago....
I really have to decide if it's usefull letting DVD-RB-PRO and CCE 2.7.2.4 (trial or not, it seems to make not that many difference ;) ), running on a dual core pentium and/or dual core althlon.
CCE is dual core compatible in that way it utilizes both cores (and their caches !)
I don't know about avisynth......
I can nowhere find a way to monitor avysynths 'cpu usage', but that's my problem.
I know CCE is going to be a lot faster on dual core with large caches per core.
So I hope people with lots of money (well will they backup ??? :D ), can post their results is the SPEED POLL.
One condition is using CCE and AVISYNTH the standard way.....
Oh man, just imagine being able to do a 3 pass CCE 2.70.2.4 cpmpression job within 1 hour....... my girlfriend will be jalous.... ;)
(don't worry, she's already complaining............ :D )
To be continued.....
Boulder
16th January 2006, 13:05
As already stated, Avisynth does support multithreading if you use tsp's avisynth.dll which is based on the latest official AVS version. With the latest version of his MT.dll, it is mandatory.
tsp's multithreading code is included in the forthcoming Avisynth v2.6.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.