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 19th May 2009, 03:08   #101  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
Arshad07,

I tried a few encodes. First I demuxed the audio from video using tsmuxer. I only used the video in the encoding. I had to switch where the filters went. After I used tsmuxer I used dgsplit to rip 100MB and used the extension on the tsmuxed video file on the dgsplit file.
Loadplugins
setmtmode(5)
DirectShowSource
MT("
LimitedSharpenFaster
",2)
spline64resize # this wasn't using mt and it worked fine
Setmtmode(2)
mvtools code

I could see the part of the video I cliped using dgsplit was not entirely in the encoded version. i was missing around 30 seconds of the minute I prepared for encoding tests. I could not get the whole 60 seconds regardless of how i tried various scripts.
I don't encode blu ray but I think maybe directshowsource can't handle the .mpv I was using with it.
So what I'm saying is you may encode and eith er see a ugly picture because the filters were not stacked right, or you may not see the whole movie only half of it.

mdegrain is in mvtools2, mvdegrain is in mvtools.
__________________
When I get tired during work with dvd stuff i think of River Tamm (Summer Glau's character). And the beauty that is Serenity.
Jeremy Duncan is offline   Reply With Quote
Old 19th May 2009, 09:12   #102  |  Link
Arshad07
Jeremy Duncan Fan
 
Arshad07's Avatar
 
Join Date: Aug 2008
Location: London, UK
Posts: 238
Quote:
Originally Posted by J_Darnley View Post
Why aren't you using MVTools2? It is much more thread-safe then the v1 series.
and slower
Arshad07 is offline   Reply With Quote
Old 19th May 2009, 14:57   #103  |  Link
Arshad07
Jeremy Duncan Fan
 
Arshad07's Avatar
 
Join Date: Aug 2008
Location: London, UK
Posts: 238
@Jeremy Duncan

Whats better in your opinion, MT or SETMODE?
Arshad07 is offline   Reply With Quote
Old 19th May 2009, 20:45   #104  |  Link
BigDid
Actually in reserve
 
Join Date: Oct 2004
Posts: 1,605
Quote:
Originally Posted by Arshad07 View Post
...
Whats better in your opinion, MT or SETMODE?
Hi,

You can get infos at the source:
http://avisynth.org/mediawiki/MT_support_page

Did
__________________
Having a problem with AutoGK? Read & use the FAQ & MORE FAQ first
Want to exchange on AutoGK? try doom10.org
In reserve (inactive) for an undefined period of time.
BigDid is offline   Reply With Quote
Old 20th May 2009, 07:15   #105  |  Link
lych_necross
ZZZzzzz...
 
lych_necross's Avatar
 
Join Date: Jan 2007
Location: USA
Posts: 303
Whether MT or SetMTMode is better depends greatly on what the script is trying to do. Try using one, then the other, and finally use what works best. SetMTMode is probably safer, but a little slower in some cases. Like BigDid said, read the info and experiment.
lych_necross is offline   Reply With Quote
Old 21st May 2009, 18:16   #106  |  Link
Adub
Fighting spam with a fish
 
Adub's Avatar
 
Join Date: Sep 2005
Posts: 2,699
Quote:
Originally Posted by Arshad07 View Post
and slower
I beg to differ. With it's increased threading stability, you can run v2 faster than you can v1 when using functions such as SetMTMode.
__________________
FAQs:Bond's AVC/H.264 FAQ
Site:Adubvideo
Adub is offline   Reply With Quote
Old 21st May 2009, 19:28   #107  |  Link
BigDid
Actually in reserve
 
Join Date: Oct 2004
Posts: 1,605
Hi Merlin,

http://forum.doom9.org/showthread.ph...53#post1286353
I did not had the opportunity to thank you for mirroring the MT 2.58 files, also to Jeremy for starting the thread and to SET for his alternate dll

It seems more and more people are using the MT 2.58 without always reading the doc first

Did
__________________
Having a problem with AutoGK? Read & use the FAQ & MORE FAQ first
Want to exchange on AutoGK? try doom10.org
In reserve (inactive) for an undefined period of time.

Last edited by BigDid; 31st May 2009 at 18:54. Reason: link added
BigDid is offline   Reply With Quote
Old 22nd May 2009, 18:55   #108  |  Link
Adub
Fighting spam with a fish
 
Adub's Avatar
 
Join Date: Sep 2005
Posts: 2,699
@BigDid
You are more than welcome! Mirroring the files is the least I could do.
__________________
FAQs:Bond's AVC/H.264 FAQ
Site:Adubvideo
Adub is offline   Reply With Quote
Old 30th May 2009, 03:23   #109  |  Link
Arshad07
Jeremy Duncan Fan
 
Arshad07's Avatar
 
Join Date: Aug 2008
Location: London, UK
Posts: 238
@ Jeremy Duncan

Is there any way to increase the speed of this script, cos its not using my cores that much; only like 40% [ with XviD ]

Quote:
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\SSE2Tools.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\MT.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\mvtools2.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\mt_masktools2.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\RemoveGrainSSE3.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\RemoveGrainSSE2.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\RemoveGrain.dll")
Load_Stdcall_Plugin("C:\Program Files (x86)\megui\tools\yadif\yadif.dll")
setmtmode(5)
DGDecode_mpeg2source("VZ.d2v", cpu=4, info=3)
ColorMatrix(hints=true, interlaced=true, threads=4)
Yadif(Mode=1,Order=1)
srestore(frate=25,omode=6,dmode=4,blocks=16,chroma=true)
Crop( 4, 52, -2, -50)
Spline64Resize(576,240)
setmtmode(2)
MT("""
super = MSuper()
backward_vec2 = MAnalyse(super, isb = true, delta = 2, overlap=2)
forward_vec2 = MAnalyse(super, isb = false, delta = 2, overlap=2)
MDegrain1( super, backward_vec2,forward_vec2,thSAD=400)
LimitedSharpenFaster(ss_x=1.5, ss_y=1.5, dest_x=last.width, dest_y=last.height, Smode=3, strength=40, radius=2, Lmode=1, wide=false, overshoot=1,edgemode=0, special=false, exborder=0)""",4)
Arshad07 is offline   Reply With Quote
Old 31st May 2009, 02:17   #110  |  Link
Delerue
Registered User
 
Join Date: Jun 2005
Posts: 365
Quote:
Originally Posted by Arshad07 View Post
@ Jeremy Duncan

Is there any way to increase the speed of this script, cos its not using my cores that much; only like 40% [ with XviD ]
Increase the number of threads. I mean, change the '4' in the end of the script to something like 6 or 8. Here, with my dual-core CPU, '3' is the magic number.
Delerue is offline   Reply With Quote
Old 31st May 2009, 11:11   #111  |  Link
nuhi
Registered User
 
Join Date: Aug 2007
Posts: 22
Quote:
Originally Posted by Delerue View Post
Increase the number of threads. I mean, change the '4' in the end of the script to something like 6 or 8. Here, with my dual-core CPU, '3' is the magic number.
Problem with a bigger number of threads than cores is when a scene gets more demanding 2 cores won't be able to process 3 threads and it will start slowing down and loosing frames.
You should find a demanding moving scene when testing CPU usage.
After a lot of testing best is SetMTMode(2).
Then focus on setting up the actual filters parameters.
nuhi is offline   Reply With Quote
Old 31st May 2009, 11:18   #112  |  Link
Arshad07
Jeremy Duncan Fan
 
Arshad07's Avatar
 
Join Date: Aug 2008
Location: London, UK
Posts: 238
Anyone could check the sample, the video is messed up using SetMtMode and MT

http://www.sendspace.com/file/s1q5m1
Arshad07 is offline   Reply With Quote
Old 31st May 2009, 12:50   #113  |  Link
carlmart
Carlos Martinez
 
Join Date: Aug 2005
Posts: 288
Quote:
Originally Posted by Jeremy Duncan View Post
I tried seesaw, lsf, spresso, and mvtools v2 frame doubler.
What would be a syntax example for an MT script using lsfmod?

Something like this would work?

Quote:
SetMTmode(2,2)
directshowsource("file.avi")
lsfmod(smode=5)

Last edited by carlmart; 31st May 2009 at 12:56.
carlmart is offline   Reply With Quote
Old 31st May 2009, 13:02   #114  |  Link
Arshad07
Jeremy Duncan Fan
 
Arshad07's Avatar
 
Join Date: Aug 2008
Location: London, UK
Posts: 238
Quote:
Originally Posted by carlmart View Post
What would be a syntax example for an MT script using lsfmod?

Something like this would work?
SetMtMode(2,2)
Directshowsource(avi)
LimitedSharpenFaster(strength=50)

Of course, lsf requires removegrain
Arshad07 is offline   Reply With Quote
Old 31st May 2009, 13:13   #115  |  Link
carlmart
Carlos Martinez
 
Join Date: Aug 2005
Posts: 288
Quote:
Originally Posted by Arshad07 View Post
SetMtMode(2,2)
Directshowsource(avi)
LimitedSharpenFaster(strength=50)

Of course, lsf requires removegrain
Why LimitedSharpenFaster instead of lsfmod?

I am a beginner in this sharpening matters, so I would like to try different ways and learning about them.
carlmart is offline   Reply With Quote
Old 31st May 2009, 20:40   #116  |  Link
Delerue
Registered User
 
Join Date: Jun 2005
Posts: 365
Quote:
Originally Posted by nuhi View Post
Problem with a bigger number of threads than cores is when a scene gets more demanding 2 cores won't be able to process 3 threads and it will start slowing down and loosing frames.
Hmmm... Weird, because here the problem with 2 threads using a dual-core CPU is that AviSynth (with a MVTools script) can't load the CPU entirely (i.e.: not 100%), slowing down videos with large resolution. With 3 threads I can get a full load and better performance. Maybe we need another opinion here, ahn?

Last edited by Delerue; 1st June 2009 at 00:22.
Delerue is offline   Reply With Quote
Old 31st May 2009, 21:05   #117  |  Link
BigDid
Actually in reserve
 
Join Date: Oct 2004
Posts: 1,605
Quote:
Originally Posted by Delerue View Post
...With 3 threads I can get a full load and better performance. Maybe we need another opinion here, ahn?
Hi,

3 threads for
- the setmtmode() like (1,3)
- for the xvid encoder
- for boths?

I have 2 cores also, use defaut (0) or 2 cores and I am willing to try

Did
__________________
Having a problem with AutoGK? Read & use the FAQ & MORE FAQ first
Want to exchange on AutoGK? try doom10.org
In reserve (inactive) for an undefined period of time.
BigDid is offline   Reply With Quote
Old 31st May 2009, 22:22   #118  |  Link
Adub
Fighting spam with a fish
 
Adub's Avatar
 
Join Date: Sep 2005
Posts: 2,699
Quote:
Originally Posted by carlmart View Post
Why LimitedSharpenFaster instead of lsfmod?

I am a beginner in this sharpening matters, so I would like to try different ways and learning about them.
You can use LSFmod in the same way. LSFmod is a little newer in comparison to LimitedSharpenFaster. It has a couple of bug fixes, and more features. Just replace the LimitedSharpenFaster line with your own LSFmod line and you should be fine.
__________________
FAQs:Bond's AVC/H.264 FAQ
Site:Adubvideo
Adub is offline   Reply With Quote
Old 1st June 2009, 00:22   #119  |  Link
Delerue
Registered User
 
Join Date: Jun 2005
Posts: 365
Quote:
Originally Posted by BigDid View Post
Hi,

3 threads for
- the setmtmode() like (1,3)
- for the xvid encoder
- for boths?

I have 2 cores also, use defaut (0) or 2 cores and I am willing to try

Did
I mean 'setMTMode'. I don't know anything about the Xvid encoder, hehehe.
Delerue is offline   Reply With Quote
Old 1st June 2009, 02:46   #120  |  Link
Inspector.Gadget
Registered User
 
Join Date: May 2008
Posts: 1,618
If I'm using only the following in a script, do I get any benefit out of using any sort of multithreading in Avisynth itself? How would I do it? Since DGMPGDecNV runs on the GPU, I assume that it can't be multithreaded using MT or SetMTMode (unless anyone knows to the contrary). Suggestions? Thanks!

Quote:
DGSource("C:\DVD_RIP\PW\VIDEO_TS\VTS_01_1.dgm")
Inspector.Gadget 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 02:13.


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