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.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 11th December 2008, 06:03   #141  |  Link
Adub
Fighting spam with a fish
 
Adub's Avatar
 
Join Date: Sep 2005
Posts: 2,754
Damn, the new version is way faster. I was getting about 3.98fps. Now I am getting 5.5fps. On one thread. If I use setmtmode(2), I get over 20fps. This is on 720x480 footage. Hell yes for MVtools2!! Now, I just need MC_Spuds to update as well and I will be one happy camper.
Adub is offline   Reply With Quote
Old 11th December 2008, 07:53   #142  |  Link
mozzle
Registered User
 
mozzle's Avatar
 
Join Date: May 2008
Location: Californiaaaaayyy
Posts: 51
Just to echo Merlin's sentiments, I'm thoroughly enjoying around a 20% speed improvement when using MCTemporalDenoise 1.1.23 along with MVTools 2.3.0.0

Major kudos to LaTo and fizick!!!

__________________
mozzle
mozzle is offline   Reply With Quote
Old 11th December 2008, 16:06   #143  |  Link
totya
Registered User
 
Join Date: Feb 2004
Posts: 127
Quote:
Originally Posted by Merlin7777 View Post
If I use setmtmode(2), I get over 20fps
lol

MCTemporalDenoise support this?
totya is offline   Reply With Quote
Old 11th December 2008, 22:56   #144  |  Link
moviefan
Registered User
 
Join Date: Jul 2005
Posts: 438
There seems to be an issue with "edgeclean=true". When I used it (the MVTools2 version), some frames were OK (no comment about the actual edge cleaning here), but some other frames were bleached... When I turned it off, the colors were fine again. I hope this bug report helps to further improve your amazing script, LaTo! Thanks for your efforts!
moviefan is offline   Reply With Quote
Old 11th December 2008, 23:05   #145  |  Link
Adub
Fighting spam with a fish
 
Adub's Avatar
 
Join Date: Sep 2005
Posts: 2,754
Quote:
Originally Posted by totya View Post
lol

MCTemporalDenoise support this?
Yep, it runs just fine. I just ran it on Constantine last night using MeGUI, and this morning I have a nice little mkv waiting for me. Works 100% okay.

I will test the edgeclean=true bug.
Adub is offline   Reply With Quote
Old 11th December 2008, 23:17   #146  |  Link
pdadi
Registered User
 
Join Date: Aug 2007
Posts: 12
Hi, Great work. I am getting there is no function named Msuper (line,650) with following settings

MCTemporalDenoise(settings="medium",gpu=false)

I appreciate your help
pdadi is offline   Reply With Quote
Old 12th December 2008, 00:01   #147  |  Link
thetoof
Sleepy overworked fellow
 
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
Quote:
Originally Posted by totya View Post
MCTemporalDenoise support this?
sure does! MVTools2 is even more stable than v1 with setmtmode

Quote:
Originally Posted by pdadi View Post
Hi, Great work. I am getting there is no function named Msuper (line,650) with following settings
Do you have the latest version of MVTools2?
__________________
AnimeIVTC() - v2.00
-http://boinc.berkeley.edu/-
Let all geeks use their incredibly powerful comps for the greater good (no, no, it won't slow your filtering/encoding :p)
thetoof is offline   Reply With Quote
Old 12th December 2008, 00:44   #148  |  Link
pdadi
Registered User
 
Join Date: Aug 2007
Posts: 12
Quote:
Originally Posted by thetoof View Post

Do you have the latest version of MVTools2?
Thanks works now. Can I delete mvtools v1 then?
pdadi is offline   Reply With Quote
Old 12th December 2008, 01:42   #149  |  Link
thetoof
Sleepy overworked fellow
 
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
Unless you still use scripts that use mvtools1, yes. It'll take some time for the old scripts to be adapted to the new syntax (especially since it has just changed), so I think you'll still need v1 for a little while.
__________________
AnimeIVTC() - v2.00
-http://boinc.berkeley.edu/-
Let all geeks use their incredibly powerful comps for the greater good (no, no, it won't slow your filtering/encoding :p)
thetoof is offline   Reply With Quote
Old 12th December 2008, 01:53   #150  |  Link
pdadi
Registered User
 
Join Date: Aug 2007
Posts: 12
Thanks thetoof, I am not seeing any performance improvments with setmtmode(2,0). Mine is a quadcore 9400 with 8 GB RAM. CPU is at 30%.

setmtmode(2,0)
MCTemporalDenoise(settings="high",gpu=false,truemotion=false,sharp=0,ncpu=4)

Getting around 3FPS on x264 HQ profile first pass.
pdadi is offline   Reply With Quote
Old 12th December 2008, 08:17   #151  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Update 2008/12/12 v1.1.24

Quote:
Originally Posted by moviefan View Post
There seems to be an issue with "edgeclean=true". When I used it (the MVTools2 version), some frames were OK (no comment about the actual edge cleaning here), but some other frames were bleached... When I turned it off, the colors were fine again. I hope this bug report helps to further improve your amazing script, LaTo! Thanks for your efforts!
Thanks for report, should be fixed in v1.1.24

For edgeclean=true, I recommend to try another thing that ECmode's default : it's a simple RemoveGrain by default... (dfttest is great but slow)



EDIT: Update 12/12/2008
Quote:
v1.1.24:
fixed a chroma bug with PP

Last edited by LaTo; 12th December 2008 at 08:22.
LaTo is offline   Reply With Quote
Old 12th December 2008, 18:48   #152  |  Link
sho_t
Registered User
 
Join Date: Sep 2008
Posts: 5
Quote:
Originally Posted by LaTo View Post
For edgeclean=true, I recommend to try another thing that ECmode's default : it's a simple RemoveGrain by default... (dfttest is great but slow)
I think that TBilateral() is better than dfttest() for animation source. (I tried only by the animation source)
LaTo may have already tried it too...
sho_t is offline   Reply With Quote
Old 13th December 2008, 11:42   #153  |  Link
steptoe
Registered User
 
steptoe's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 360
Quote:
Originally Posted by pdadi View Post
Thanks thetoof, I am not seeing any performance improvments with setmtmode(2,0). Mine is a quadcore 9400 with 8 GB RAM. CPU is at 30%.

setmtmode(2,0)
MCTemporalDenoise(settings="high",gpu=false,truemotion=false,sharp=0,ncpu=4)

Getting around 3FPS on x264 HQ profile first pass.


If that is your script, then you are missing the important MT command that is needed to multi-thread filters

Try this :

MT("MCTemporalDenoise(settings="high",gpu=false,truemotion=false,sharp=0,ncpu=4)")

or

MT("""
MCTemporalDenoise(settings="high",gpu=false,truemotion=false,sharp=0,ncpu=4)
""")


The 2nd one just lets you run MT on a block of filters instead of applying it per filter or function

Not forgetting to copy the patched avisynth.dll to your windows\system32 folder in your C:\ drive or where you have Windoze installed

Otherwise nothing will happen again, and bear in mind that this patch only currently works on AviSynth 2.57, maybe he's waiting for a stable 2.58 to release the update


Also, try SETMTMode(2,4) to force is to use 4 threads, for a quad core, that way you know its running on 4 threads instead of letting the software decide how many threads to run on. Some also run it with SETMTMode(2,8) to force 8 threads with success

Last edited by steptoe; 13th December 2008 at 11:52.
steptoe is offline   Reply With Quote
Old 13th December 2008, 19:05   #154  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,442
Quote:
Originally Posted by steptoe View Post
If that is your script, then you are missing the important MT command that is needed to multi-thread filters. Try this :
MT("MCTemporalDenoise(settings="high",gpu=false,truemotion=false,sharp=0,ncpu=4)")
or
MT("""
MCTemporalDenoise(settings="high",gpu=false,truemotion=false,sharp=0,ncpu=4)
""")
The 2nd one just lets you run MT on a block of filters instead of applying it per filter or function
The first one will give you a syntax error because the opening quote of "high" is taken as the closing quote of "MCTemporal...".
The second (triple-quote) form is required, to allow a string literal inside the complete string. It is unconnected with using a block of filters, since ordinary (single-quote) strings can also contain line breaks.

Bear in mind also that MT splits each frame in two and processes each half in a separate thread. Not all filters will work correctly doing this - I don't know enough about MCTemporalDenoise to say whether this is appropriate or not, but my instinct would say no (eg the clip could contain motion between the two halves).

It is not necessary to use the MT filter to get multi-threading, its action is complementary to SetMtMode.
Gavino is offline   Reply With Quote
Old 13th December 2008, 19:47   #155  |  Link
thetoof
Sleepy overworked fellow
 
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
Exactly, setmtmode splits the clip temporally to multithread it, while mt splits it spatially. You do NOT want the latter with mo-comped processing.
Possible issues:
-Encoder is the bottleneck
-You could/should use more/less threads (check which # is faster (not higher CPU usage, faster)
-You don't have enough memory (use a higher SetMTmode, you can even go up to 1900... though I don't fully know the issues that could come up if the setting is too high)
Please post your full script and the CPU/speed results you get by varying the # of threads. Remember that x264 also works with many threads, so it's all about balancing which step gets more threads for optimal efficiency.
__________________
AnimeIVTC() - v2.00
-http://boinc.berkeley.edu/-
Let all geeks use their incredibly powerful comps for the greater good (no, no, it won't slow your filtering/encoding :p)
thetoof is offline   Reply With Quote
Old 13th December 2008, 21:32   #156  |  Link
steptoe
Registered User
 
steptoe's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 360
I stand corrected, I always thought you had to use MT("") to get the filter to work with multi-threaded

Maybe I need to go back and study the MT docs on the wiki again and again to try and understand how it really works and when or when not to try and use it
steptoe is offline   Reply With Quote
Old 6th January 2009, 15:10   #157  |  Link
Digitals
Registered User
 
Join Date: Aug 2006
Posts: 13
i am getting this error

"Msuper" (line 652),i hav installed mvtools2 still same prob
Digitals is offline   Reply With Quote
Old 6th January 2009, 20:15   #158  |  Link
thetoof
Sleepy overworked fellow
 
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
Do you have MVTools 2.3.1?
__________________
AnimeIVTC() - v2.00
-http://boinc.berkeley.edu/-
Let all geeks use their incredibly powerful comps for the greater good (no, no, it won't slow your filtering/encoding :p)
thetoof is offline   Reply With Quote
Old 7th January 2009, 05:02   #159  |  Link
Digitals
Registered User
 
Join Date: Aug 2006
Posts: 13
^ yes i hav installed MVtools 2.3.1 only
Digitals is offline   Reply With Quote
Old 7th January 2009, 05:36   #160  |  Link
Sagekilla
x264aholic
 
Join Date: Jul 2007
Location: New York
Posts: 1,752
Also, another issue is where you place SetMTMode.

Good:
SetMTMode()
Source("...")
MCTemporalDenoise()

Bad:
Source("...")
SetMTMode()
MCTemporalDenoise()
__________________
You can't call your encoding speed slow until you start measuring in seconds per frame.
Sagekilla 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 00:37.


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