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 15th January 2013, 03:24   #601  |  Link
Overdrive80
Anime addict
 
Overdrive80's Avatar
 
Join Date: Feb 2009
Location: Spain
Posts: 673
With last mt avisynth I have troubles to use masktools2. I know that its not trouble of your dll, but could do .dll for avisynth alpha4 with retrocompatibility according to version of date:2012.05.16?

Thanks in advance.
__________________
Intel i7-6700K + Noctua NH-D15 + Z170A XPower G. Titanium + Kingston HyperX Savage DDR4 2x8GB + Radeon RX580 8GB DDR5 + ADATA SX8200 Pro 1 TB + Antec EDG750 80 Plus Gold Mod + Corsair 780T Graphite
Overdrive80 is offline   Reply With Quote
Old 17th January 2013, 18:35   #602  |  Link
SEt
Registered User
 
Join Date: Aug 2007
Posts: 374
I won't do extra compatibility builds – no one forces you to upgrade, but don't expect any new featured then either.
You want to upgrade – it's time to solve the problems. I'd prefer updated masktools2 to special build of Avisynth.

Expect updated MT version in some days, I'm quite busy atm.
SEt is offline   Reply With Quote
Old 17th January 2013, 19:47   #603  |  Link
Overdrive80
Anime addict
 
Overdrive80's Avatar
 
Join Date: Feb 2009
Location: Spain
Posts: 673
Quote:
Originally Posted by SEt View Post
I'd prefer updated masktools2 to special build of Avisynth.
Totally agree with you, but Masktools2 hasnt been updated from 2010; for this reason I request this.

Thanks for your answer.
__________________
Intel i7-6700K + Noctua NH-D15 + Z170A XPower G. Titanium + Kingston HyperX Savage DDR4 2x8GB + Radeon RX580 8GB DDR5 + ADATA SX8200 Pro 1 TB + Antec EDG750 80 Plus Gold Mod + Corsair 780T Graphite
Overdrive80 is offline   Reply With Quote
Old 17th January 2013, 19:49   #604  |  Link
SEt
Registered User
 
Join Date: Aug 2007
Posts: 374
Masktools2 is open source, so it's not like we can't do minor bugfix for it.
SEt is offline   Reply With Quote
Old 18th January 2013, 00:31   #605  |  Link
Overdrive80
Anime addict
 
Overdrive80's Avatar
 
Join Date: Feb 2009
Location: Spain
Posts: 673
Quote:
Originally Posted by SEt View Post
Masktools2 is open source, so it's not like we can't do minor bugfix for it.
All right, I hope someone who knows how to do it can fix these problems. ^^
__________________
Intel i7-6700K + Noctua NH-D15 + Z170A XPower G. Titanium + Kingston HyperX Savage DDR4 2x8GB + Radeon RX580 8GB DDR5 + ADATA SX8200 Pro 1 TB + Antec EDG750 80 Plus Gold Mod + Corsair 780T Graphite
Overdrive80 is offline   Reply With Quote
Old 22nd January 2013, 07:43   #606  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,563
Set, do you plan to try an alpha4 compile?
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 30th January 2013, 13:37   #607  |  Link
FLauBerT
Registered User
 
Join Date: Jun 2012
Posts: 14
"SetMTMode" SeeSaw does not work. XviD is not a problem, but it does not work at x264. Saving work in "Megui has stopped working" error. Every time you go. MT (parameters) as the between 65-80% When using the processor uses the x264 and I'm having a serious waste of time. Processor Intel Corei5 2300. Waiting for your reply.
FLauBerT is offline   Reply With Quote
Old 30th January 2013, 13:58   #608  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
Quote:
"SetMTMode" SeeSaw does not work. XviD is not a problem, but it does not work at x264.
sounds like you are running out of memory, try to lower the lookahead values in x264
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 30th January 2013, 23:31   #609  |  Link
SubJunk
Registered User
 
Join Date: Jun 2010
Posts: 443
Try setting SetMemoryMax to lower. Between 400 and 700 is most stable for me.
SubJunk is offline   Reply With Quote
Old 30th January 2013, 23:59   #610  |  Link
FLauBerT
Registered User
 
Join Date: Jun 2012
Posts: 14
Quote:
Originally Posted by SubJunk View Post
Try setting SetMemoryMax to lower. Between 400 and 700 is most stable for me.
Create and save the script in error when I say "stopped working Megui" he says. A problem that occurs only in SeeSaw. SetMTMode scripts (4,4) using the form. A denoise a debanding and using degrain filter. Waiting for your answers.
FLauBerT is offline   Reply With Quote
Old 19th February 2013, 01:20   #611  |  Link
Porsche_fan
Registered User
 
Join Date: May 2007
Posts: 19
I’m having problems running the following script in ffdshow + MPC-HC.

Code:
SetMemoryMax(1024)
SetMTMode(3)
ffdshow_source()
SetMTMode(2)
FineSharp(sstr=2.5)
SetMTMode(1)
GetMTMode(false) > 0 ? distributor() : last
After a lot of effort, I used subtitle(string(GetMTMode)) to determine GetMTMode(false) returns "0". So I can get the script to work by changing the last line to...

Code:
GetMTMode(false) >= 0 ? distributor() : last
The modified script with the mode=0 is a little unstable but that may be related to other variables like SetMemoryMax. Any idea why Mode is "0" despite setting it to "1" in the previous line?

Here are my ffdshow settings




I recently uninstalled 2.5.8 and replaced it with AVS 2.6.0 Alpha 4 [130114] initially then uninstalled and currently running AVS 2.6.0 Alpha 3 [110525] with 2012.08.28 2.6 MT.

One other question, I've read somewhere else that SEt's avisynth.dll should be placed in the ffdshow folder but I don't think that is correct. Currently there is no avisynth.dll or ffavisynth.dll in my ffdshow folder...is this the correct installation procedure?

Running Windows 7 64 on a i7 860.
Porsche_fan is offline   Reply With Quote
Old 19th February 2013, 01:39   #612  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by Porsche_fan View Post
I’m having problems running the following script in ffdshow + MPC-HC.

Code:
SetMemoryMax(1024)
SetMTMode(3)
ffdshow_source()
SetMTMode(2)
FineSharp(sstr=2.5)
SetMTMode(1)
GetMTMode(false) > 0 ? distributor() : last
After a lot of effort, I used subtitle(string(GetMTMode)) to determine GetMTMode(false) returns "0". So I can get the script to work by changing the last line to...

Code:
GetMTMode(false) >= 0 ? distributor() : last
The modified script with the mode=0 is a little unstable but that may be related to other variables like SetMemoryMax. Any idea why Mode is "0" despite setting it to "1" in the previous line?

Here are my ffdshow settings




I recently uninstalled 2.5.8 and replaced it with AVS 2.6.0 Alpha 4 [130114] initially then uninstalled and currently running AVS 2.6.0 Alpha 3 [110525] with 2012.08.28 2.6 MT.

One other question, I've read somewhere else that SEt's avisynth.dll should be placed in the ffdshow folder but I don't think that is correct. Currently there is no avisynth.dll or ffavisynth.dll in my ffdshow folder...is this the correct installation procedure?

Running Windows 7 64 on a i7 860.
1. You're running a single threaded version of Avisynth, that's why GetMTMode() is returning "0".

2. If you're using MPC-HC, you should not be using "Distibutor()" at all, the call is added automatically. So, if you are using Avisynth MT you are unnecessarily increasing the number of threads.

3. "SetMTMode(1)" in your script. Why?

4. The file avisynth.dll (any) should ideally be placed in the Windows or Windows/System32 (sysWOW64 on 64 bit Windows) directory, read the first post in this thread!
Groucho2004 is offline   Reply With Quote
Old 19th February 2013, 03:17   #613  |  Link
Porsche_fan
Registered User
 
Join Date: May 2007
Posts: 19
Thanks Groucho2004...I appreciate your reply!

I did read the first post of this thread multiple times and tried to follow it as best as I understood it. I think possibly my last question was misleading. The reason I asked about placing the MT version of avisynth.dll in the ffdshow folder is I read the following from another doom9 member who described one of the steps to setting up 2.6 MT with ffdshow as "- get avisynth 2.6 mt dll and put it in ffdshow directory". As I stated in my first post, I don't think the advice is correct but was asking.


Quote:
1. You're running a single threaded version of Avisynth, that's why GetMTMode() is returning "0".

4. The file avisynth.dll (any) should ideally be placed in the Windows or Windows/System32 (sysWOW64 on 64 bit Windows) directory, read the first post in this thread!
As mentioned I am able to get multi-threading to work after modifing the script to GetMTMode(false) >= 0 ? distributor() : last. So based on this I believe I am running a MT version of avisynth.

However, I realize that mode=0 indicates the state of no multi-threading so possibly what you said has some truth. From the instructions I did the following...installed AVS 2.6.0 Alpha 3 [110525] then moved the avisynth.dll file from 2012.08.28 into syswow64 replacing existing avisynth.dll from the initial installation. If I did this incorrectly what should I have done?


Quote:
2. If you're using MPC-HC, you should not be using "Distibutor()" at all, the call is added automatically. So, if you are using Avisynth MT you are unnecessarily increasing the number of threads.

3. "SetMTMode(1)" in your script. Why?
I have tried it without the distributor() call but couldn't get multi-threading to work with ffdshow in MPC-HC until it was added.

The reason I use the SetMTMode(1) and distributor() is because SEt said it was necessary on the first post of this thread and also in this post.

Appreciate the help!
Porsche_fan is offline   Reply With Quote
Old 19th February 2013, 03:34   #614  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by Porsche_fan View Post
From the instructions I did the following...installed AVS 2.6.0 Alpha 3 [110525] then moved the avisynth.dll file from 2012.08.28 into syswow64 replacing existing avisynth.dll from the initial installation. If I did this incorrectly what should I have done?
That sounds right to me.

Quote:
Originally Posted by Porsche_fan View Post
The reason I use the SetMTMode(1) and distributor() is because SEt said it was necessary on the first post of this thread and also in this post.
In that case ignore points 2. and 3. from my previous post. I have little experience with ffdshow so maybe someone else may be more helpful.

Either way, if GetMTMode() from your script returns "0", you are not using the correct (MT) Avisynth DLL. Make sure there is only one avisynth.dll on your system (in your syswow64 directory).

Edit: Do you really need Avisynth MT for FineSharp? As far as I know, it's quite fast.

Last edited by Groucho2004; 19th February 2013 at 03:37.
Groucho2004 is offline   Reply With Quote
Old 19th February 2013, 06:12   #615  |  Link
Porsche_fan
Registered User
 
Join Date: May 2007
Posts: 19
Quote:
Originally Posted by Groucho2004 View Post
Do you really need Avisynth MT for FineSharp? As far as I know, it's quite fast.
I agree I find my experience using singled threaded FineShap puzzling as you are right it is pretty fast. I always resize everything prior to applying FineSharp so that is an added factor.

DVD playback while using avisynth spline64 resizing before FineSharp has been trouble free. However, I have had differening results using FineSharp single threading with x.264 720/1080p with some instances of audio and video desynching. Desyncing seems to usually occur with x.264 encoded 720p @30fps...so far 24fps hasn't been an issue.

In some cases I've been able to solve the desync problem by having ffdshow decode but I prefer using the MPC AVC codec. I know ffdshow is suppose to be less CPU intensive when decoding but I can't think it should make that big a difference given the i7 processor.

I also had a strange issue with AVC in an avi container that had sync issues but it was fixed when I put it in a mkv container. Anyways, I've found that 2.6 MT allows the overhead/flexibility to use any codec without desync.

The really odd part to me is the graph pattern with or without multi-threading is the same in resource monitor for my i7 860 @2.8Ghz. In both cases 4 cores are parked and the other 4 cores that are active distribute the load equally and are at about 40% utilization. It could be that I have an issue with the way my computer is set up to process information. Would be interested in others thoughts.

EDIT: Don't know if this is the same for everyone else but after I uninstalled 2.5.8 I deleted the remaining folder labeled "AviSynth 2.5". I then installed 2.6 Alpha 3 but the new AviSynth 2.6 program is in a folder in Program Files (86) still labeled "AviSynth 2.5" not "AviSynth 2.6". I did use Version() to verify it is the 2.6 Alpha 3 build.

Last edited by Porsche_fan; 19th February 2013 at 07:09. Reason: Added info 2.6 is in a folder labeled "AviSynth 2.5"
Porsche_fan is offline   Reply With Quote
Old 19th February 2013, 07:58   #616  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,779
Some extremely annoying semi-freeware converters (ERightSoft SUPER, FormatFactory) are able to bend the hook to an own copy of an AviSynth DLL. But I believe the repeated re-installation of AviSynth versions should have repaired it, if that was a possible reason; still, better scan all your harddisk partitions for any copy.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 19th February 2013, 09:55   #617  |  Link
ryrynz
Registered User
 
ryrynz's Avatar
 
Join Date: Mar 2009
Posts: 3,650
Quote:
Originally Posted by rean View Post
Do not use SetMTMode(3). Use SetMTMode(3,4)!
mt_lutxy, mt_lut, FFmpegSource use a lot of memory. 8 threads will eat your memory faster.

Also 8 threads on i7 is useless. You will get slow execution, because most time the processor
will switch threads and wait for spin locks.
I use GraphstudioNext to benchmark my scripts (Psharpen, Awarpsharp, Vaguedenoiser etc) and on my 2600K with Hyperthreading I get a considerable performance improvement having 8 threads over 4.
My recommendation would be to test this for yourself.
ryrynz is offline   Reply With Quote
Old 19th February 2013, 16:31   #618  |  Link
CraziFuzzy
Registered User
 
Join Date: Jun 2006
Posts: 11
How close are you to rolling out an MT version of 2.6 Beta-4?
CraziFuzzy is offline   Reply With Quote
Old 19th February 2013, 16:52   #619  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,779
Last asked in #607; no reply from SEt yet.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 20th February 2013, 00:31   #620  |  Link
SEt
Registered User
 
Join Date: Aug 2007
Posts: 374
It took longer than I expected, but here we go – updated version. Can't say I've tested everything, so let's keep 'stable' status on previous one for some time.

rean, please don't write nonsense. i7-930 with 8 threads is my work environment for the last 3 years and so you can say "native mode" of these builds. Also, if you are doing things right, FFmpegSource will consume exactly the same amount of memory regardless of number of threads used.
SEt 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 07:15.


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