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

Reply
 
Thread Tools Search this Thread Display Modes
Old 16th September 2008, 08:02   #961  |  Link
squid_80
Registered User
 
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
Quote:
Originally Posted by lych_necross View Post
I think its a lack of interest thats preventing further development. Or maybe severe procrastination.
If you're going to speculate, at least pick some decent reasons:
- All work on avisynth is done on a volunteer basis
- Most programmers have full-time jobs
- Some programmers even have families (so I've heard)

There's three reasons off the top of my head that I find a lot more believable (and less offensive) than your thinly veiled accusation of laziness.
squid_80 is offline   Reply With Quote
Old 18th September 2008, 04:04   #962  |  Link
Zep
Registered User
 
Join Date: Jul 2002
Posts: 587
Quote:
Originally Posted by Quark.Fusion View Post
For separate process you can use TCPserver/TCPsource, but they will eat some CPU time. And you still need 64-bit OS to use >3.5GB of memory.
yes I know but 2 gigs VS 3 (.5 for XP) is a nice increase. and why I brought it up. I hit the 2 gig wall on most of my encodes.
Zep is offline   Reply With Quote
Old 18th September 2008, 04:05   #963  |  Link
Zep
Registered User
 
Join Date: Jul 2002
Posts: 587
Quote:
Originally Posted by Quark.Fusion View Post
Just use last parameter, that not in size, but you usually don't know how much memory avisynth will use before running test pass. Use Width()*Height()*1.5*frames for cache size for YV12.
I assume that was directed towards me. Anyway, I tried that long ago and it is much slower and prone to crashing.
Zep is offline   Reply With Quote
Old 22nd September 2008, 10:49   #964  |  Link
pitch.fr
Didée 4 President
 
Join Date: Jun 2008
Posts: 239
hi there,

I've never managed to get SetMTMode() working in ffdshow, but apparently that's because I need to use ffdshow_source() after using it....as it needs to be the first line of the script or it won't work.

anyone knows why it says "invalid arguments to function LSF" please ?

Code:
SetMtmode(1,4)
source=ffdshow_source()
LimitedSharpenFaster(ss_x=1.0,ss_y=1.0,strength=40)
Distributor()
I've tried with all the MTmodes available..

this works perfectly fine :

Code:
MT("LimitedSharpenFaster(ss_x=1.0,ss_y=1.0,strength=40)",4)
thanks,

Last edited by pitch.fr; 23rd September 2008 at 09:21.
pitch.fr is offline   Reply With Quote
Old 22nd September 2008, 10:55   #965  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by pitch.fr View Post
anyone knows why it says "invalid arguments to function LSF" please ?
Code:
SetMtmode(1,4)
source=ffdshow_source()
LimitedSharpenFaster(ss_x=1.0,ss_y=1.0,strength=40)
Use simply:
ffdshow_source()
Gavino is offline   Reply With Quote
Old 22nd September 2008, 11:22   #966  |  Link
pitch.fr
Didée 4 President
 
Join Date: Jun 2008
Posts: 239
great, thanks for the fast reply!

and what should I replace it by to do benchmarks in VirtualDub ?

it crashes if I remove ffdshow_source(), and If I also remove Distributor() it's single threaded.

I'd like to see whether it's faster than MT()

here's my test script for benchmarks in VDUB, that IanB gave me :

Code:
SetMemoryMax(512) # Adjust value as required

ColorBars(1280, 720, pixel_type="YV12") # Size and pixel type as appropriate

# Insert Code under test here
SetMtmode(2,4)
LimitedSharpenFaster(ss_x=1.0,ss_y=1.0,strength=40)
Distributor()

# Throw away most of the image we are not testing VD's i/o
Crop(0, 0, 16, 16)

Last edited by pitch.fr; 23rd September 2008 at 09:21.
pitch.fr is offline   Reply With Quote
Old 24th September 2008, 01:45   #967  |  Link
MADAJ
Registered User
 
Join Date: Nov 2007
Posts: 54
hi there

I have an Intel(R) Core(TM)2 Quad CPU

and I am trying to apply this filter to my AVS script
Quote:
loadplugin("F:\dgmpgdec150rc5\DGDecode.dll")
mpeg2source("ep3.d2v")
MT(4,2)

Crop(2,0,-2,-2)
tfm.tdecimate
LanczosResize(740,480)
but I get an error which is ..
Quote:
Script error: Invalid arguments to function MT
I placed avisynth.dll to system32
and MT.dll to my AVS plugin

have I done something wrong??


thanks in advance
MADAJ is offline   Reply With Quote
Old 24th September 2008, 05:15   #968  |  Link
Quark.Fusion
Registered User
 
Quark.Fusion's Avatar
 
Join Date: Jun 2008
Posts: 177
RTFM (syntax in first post in THIS topic)
Quark.Fusion is offline   Reply With Quote
Old 24th September 2008, 09:00   #969  |  Link
MADAJ
Registered User
 
Join Date: Nov 2007
Posts: 54
Quote:
Originally Posted by Quark.Fusion View Post
RTFM (syntax in first post in THIS topic)
sorry if I misunderstood the 1st post, but after seeing some people's scripts, I come up with this one.




Quote:
SetMTmode(4,4)
loadplugin("F:\dgmpgdec150rc5\DGDecode.dll")
mpeg2source("ep3.d2v")
MT(4,4)
Crop(2,0,-2,-2)
tfm.tdecimate
LanczosResize(740,480)
I says "there is no function "SetMTmode"



Please tell me what I am missing.
MADAJ is offline   Reply With Quote
Old 24th September 2008, 11:08   #970  |  Link
halsboss
likes to tinker
 
Join Date: Jan 2004
Location: girt by sea
Posts: 635
Quote:
Originally Posted by MADAJ View Post
after seeing some people's scripts, I come up with this one
Look a bit closer at them You're thinking of SetMTmode, not MT ... RTFM means read the forgoodnessake manual. Don't forget to "install" the modified avisynth. Take a look at the parameters for MT - you're missing the critical one.

See Wiki info at http://avisynth.org/mediawiki/MT_support_page and http://avisynth.org/mediawiki/MT_modes_explained

Last edited by halsboss; 24th September 2008 at 11:16.
halsboss is offline   Reply With Quote
Old 25th September 2008, 00:00   #971  |  Link
MADAJ
Registered User
 
Join Date: Nov 2007
Posts: 54
thanks halsboss...

I don't an error with this one

Quote:
SetMTMode(2,4)
loadplugin("F:\dgmpgdec150rc5\DGDecode.dll")
mpeg2source("ep3.d2v")
MT("blur(0.2)",4,2)
Crop(2,0,-2,-2)
tfm.tdecimate
LanczosResize(740,480)


but it gives me the same speed whether I use it or I don't.

sorry for that guys.
MADAJ is offline   Reply With Quote
Old 25th September 2008, 12:14   #972  |  Link
halsboss
likes to tinker
 
Join Date: Jan 2004
Location: girt by sea
Posts: 635
You're using a combination of MT mode 2 and MT ... if your source interlaced ? I suggest you have a look at the examples again and the text that goes with them. You should get a lot better than "the same".
halsboss is offline   Reply With Quote
Old 27th September 2008, 11:24   #973  |  Link
mgh
Registered User
 
Join Date: Oct 2004
Location: India
Posts: 321
If I load my plugins and then
setmtmode(2,0)
and then load my video and filters (other than builtin, the only ones i use are dfttest and shockwave, both of which are sloooow). There is no problem, cpu loading on my four cores is 95%+ and speed is 90% frames encoded in real time as long as i am not exceeding D1 resolution.
If i go to double D1 resolution using EEDI2 or tdeint, the encode crashes at completion or does not load. I need to change it to setmode(5,0) to avoid that. Only about 40 to 45% of the cores are used and encoding is about 1/6th frames in real time.
On a hunch, tried to use setmtmode (2,0) to start and put setmode(5,0) just before resizing(which i do at the end). success! no crash, cpu loading 95%+ and encoding speed was half the frames in real time.
__________________
A shut mouth gathers no foot

Last edited by mgh; 27th September 2008 at 12:33. Reason: managed to say opposite of what i meant
mgh is offline   Reply With Quote
Old 27th September 2008, 12:59   #974  |  Link
halsboss
likes to tinker
 
Join Date: Jan 2004
Location: girt by sea
Posts: 635
IIRC setMTmode needs to be 5 before the file open mpeg2source, and then changed after or bad things can happen. I'm sure there's posts on it somewhere. I've used TDEINT no worries although I use the "other" resizing method now.
halsboss is offline   Reply With Quote
Old 1st October 2008, 17:48   #975  |  Link
mgh
Registered User
 
Join Date: Oct 2004
Location: India
Posts: 321
did more trials
setmtmode(2,0) before loading the video file works where final encoded resolution is at the most 720x480 (NTSC DVD), also works with vcds blown up to double the resolution.
setmtmode(5,0) before loading the video file and setmtmode(2) afterwards works for higher encoded resolution (including PAL DVD 720x576!)
with my quad 2400 Mhz 2GB RAM XP SP2
__________________
A shut mouth gathers no foot
mgh is offline   Reply With Quote
Old 17th October 2008, 03:52   #976  |  Link
superuser
Registered User
 
Join Date: Sep 2006
Posts: 84
tsp can be shed more light about Script Clip and in regards to MT?

Offtopic: which other known avisynth plugins use scriptclip functionality?

...
...

Reason I am asking about this coz I was running into errors with SRestore when using with MT:

Quote:
Originally Posted by krieger2005 View Post
Before you start to test with MT i would ask the developer if MT support ScriptClip-Enviroments yet. I don't think so. MT is still in development...
Thanks in advance

Last edited by superuser; 17th October 2008 at 06:40.
superuser is offline   Reply With Quote
Old 24th October 2008, 08:51   #977  |  Link
rkalwaitis
Robert
 
Join Date: Jan 2008
Location: Stuttgart
Posts: 407
TSP or anyone else in the know

I tried using the following settings and I do not think Ive done it correctly. Does the below look right?

I have an AMD Athlon(tm) Dual Core Processor 4200+ 2.20GHz

Im peaking at about 4.73fps, I know that fftd3filter is not fast by nature.

SetMTMode(2,0)
DGDecode_mpeg2source("C:\VTS_08_1.d2v",info=3)
ColorMatrix(hints=true)
crop( 8, 64, -8, -64)
MT("YToUV(fft3dfilter(sigma=3, plane=1).UToY,\
fft3dfilter(sigma=3, plane=2).VToY,\
fft3dfilter(sigma=2, plane=0))
FFT3DFilter(bt=-1, sharpen=0.8)
fastlinedarkenmod(thinning=0, strength=25)")

not using the MT filter I peak at about 5.15fps

like this..

DGDecode_mpeg2source("C:\VTS_08_1.d2v",info=3)
ColorMatrix(hints=true)
crop( 8, 64, -8, -64)
YToUV(fft3dfilter(sigma=3, plane=1).UToY,\
fft3dfilter(sigma=3, plane=2).VToY,\
fft3dfilter(sigma=2, plane=0))
FFT3DFilter(bt=-1, sharpen=0.8)
fastlinedarkenmod(thinning=0, strength=25)

not sure what im doing wrong or if Im even using the fft3filter optimally.

thanks guys, your knowledge is valued.
rkalwaitis is offline   Reply With Quote
Old 24th October 2008, 09:25   #978  |  Link
rkalwaitis
Robert
 
Join Date: Jan 2008
Location: Stuttgart
Posts: 407
SetMTMode(2,0)
DGDecode_mpeg2source("C:\Users\Baba-Nator\Desktop\Movies\Zoolander\VTS_08_1.d2v",info=3)
ColorMatrix(hints=true)
crop( 8, 64, -8, -64)

MT("fft3dfilter(sigma=3, sigma2=5, sigma3=10, sigma4=20, plane=0, bt=3, bw=16, bh=16, ow=8, oh=8, sharpen=0.3, smin=20, smax=1000, wintype=2, kratio=1.0, measure=true, interlaced=false, degrid=1)")

This way gets 5.65fps


DGDecode_mpeg2source("C:\Users\Baba-Nator\Desktop\Movies\Zoolander\VTS_08_1.d2v",info=3)
ColorMatrix(hints=true)
crop( 8, 64, -8, -64)

fft3dfilter(sigma=3, sigma2=5, sigma3=10, sigma4=20, plane=0, bt=3, bw=16, bh=16, ow=8, oh=8, sharpen=0.3, smin=20, smax=1000, wintype=2, kratio=1.0, measure=true, interlaced=false, degrid=1)

This way gets 6.06 fps
rkalwaitis is offline   Reply With Quote
Old 24th October 2008, 16:40   #979  |  Link
Adub
Fighting spam with a fish
 
Adub's Avatar
 
Join Date: Sep 2005
Posts: 2,699
Pick one or the other here. You are using both SetMTmode and MT. My guess is that you only want to thread fft3dfilter here, especially since the other filters are already fast enough. So just us MT and see if that fixes it. Remove your "SetMTMode(2,0)" line.
__________________
FAQs:Bond's AVC/H.264 FAQ
Site:Adubvideo
Adub is offline   Reply With Quote
Old 24th October 2008, 18:23   #980  |  Link
rkalwaitis
Robert
 
Join Date: Jan 2008
Location: Stuttgart
Posts: 407
Thanks Ill give it a shot. I knew I was dorking something up
rkalwaitis is offline   Reply With Quote
Reply


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 23:08.


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