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 20th February 2009, 10:55   #21  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by burfadel View Post
I believe using the combined functions such as
Filter().Filter2(...
Is a bad idea with the MT avisynth as the combined function will be passed as a complete fuction, and not separate functions and threads (so you negate the benefit)?
No, that only applies when using the explicit MT function, ie MT("Filter().Filter2()...)".

With SetMTMode switched on, the MT Avisynth treats each filter in a chain distinctly, since this is handled by changes to the parser in the amended avisynth.dll.
Gavino is offline   Reply With Quote
Old 20th February 2009, 17:15   #22  |  Link
leeperry
Kid for Today
 
Join Date: Aug 2004
Posts: 3,477
nice! 2.5.8 should allow mod2 in LSF, where 2.5.7 is mod4 only

but I've tried it on a few mod2 samples, and sometimes it works....but most of the time it's very slow and crashes

Last edited by leeperry; 22nd February 2009 at 01:16.
leeperry is offline   Reply With Quote
Old 20th February 2009, 17:53   #23  |  Link
burfadel
Registered User
 
Join Date: Aug 2006
Posts: 2,229
Quote:
Originally Posted by Gavino View Post
No, that only applies when using the explicit MT function, ie MT("Filter().Filter2()...)".

With SetMTMode switched on, the MT Avisynth treats each filter in a chain distinctly, since this is handled by changes to the parser in the amended avisynth.dll.
Ah ok! thats good to know

The Mpeg2source filter when decoding HD material doesn't like it when SetMTmode is set! It works fine set to 2 for standard definition 720x576 material though, so this may need to be taken in to consideration for other people that different resolutions may lead to different compatibility! Easiest way around this is just to set MT mode after the source filter!

Last edited by burfadel; 20th February 2009 at 19:22.
burfadel is offline   Reply With Quote
Old 22nd February 2009, 06:52   #24  |  Link
leeperry
Kid for Today
 
Join Date: Aug 2004
Posts: 3,477
humm yeah, it crashes all the time w/ mod2...back to 2.57
leeperry is offline   Reply With Quote
Old 22nd February 2009, 07:15   #25  |  Link
lych_necross
ZZZzzzz...
 
lych_necross's Avatar
 
Join Date: Jan 2007
Location: USA
Posts: 303
I've got the same problem with mod2 files... Oh well, 2.57 works. Does anyone know if ConvertFPS( benefits with either SetMTMode or MT( ?

Edit: I test convertfps with both MT and SetMTMode and I found no discernible difference on my system (others may differ).

Last edited by lych_necross; 25th February 2009 at 07:20.
lych_necross is offline   Reply With Quote
Old 12th March 2009, 17:29   #26  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
Quote:
Originally Posted by leeperry View Post
nice! 2.5.8 should allow mod2 in LSF, where 2.5.7 is mod4 only

but I've tried it on a few mod2 samples, and sometimes it works....but most of the time it's very slow and crashes
I have made my version of the dll the kind person made. I used their src and fixed some code.

Go see!

Edit.
2 days and nobody says how the dll I made did for them?
It is different than the one seraphy made!
It should do the mythical mod2 you talk about...try it out and tell us what it did?

Last edited by Jeremy Duncan; 12th March 2009 at 17:33.
Jeremy Duncan is offline   Reply With Quote
Old 13th March 2009, 07:51   #27  |  Link
lych_necross
ZZZzzzz...
 
lych_necross's Avatar
 
Join Date: Jan 2007
Location: USA
Posts: 303
Hi Jeremy, I tried your version of the dll and it seems to work alright. No problems so far. I'll test it some more and report any problems. The only thing I noticed is that when you display the avisynth version in a script, it still says Seraphy (just add version() to the end of a script). You might want to alter that to reflect your additional changes.

@leeperry
Does it work on your end?
lych_necross is offline   Reply With Quote
Old 13th March 2009, 07:59   #28  |  Link
cweb
Registered User
 
cweb's Avatar
 
Join Date: Oct 2002
Location: The Pandorica
Posts: 527
Quote:
Originally Posted by lych_necross View Post
Hi Jeremy, I tried your version of the dll and it seems to work alright. No problems so far. I'll test it some more and report any problems. The only thing I noticed is that when you display the avisynth version in a script, it still says Seraphy (just add version() to the end of a script). You might want to alter that to reflect your additional changes.
It worked for me too. HC encoder says the version is 2.5.8.5, creation date 31-12-2006 (?)..

thanks for the dll.
__________________
PC specs for bug reports: Intel Core i7-4790K @4Ghz Win10(Linux VM) PCI express NVIDIA RTX 2060 SUPER graphics card
http://twitter.com/cwebdesign
cweb is offline   Reply With Quote
Old 13th March 2009, 10:30   #29  |  Link
leeperry
Kid for Today
 
Join Date: Aug 2004
Posts: 3,477
Quote:
Originally Posted by lych_necross View Post
@leeperry
Does it work on your end?
looking good indeed!
I've got a 672x384 AVI file w 7/4 DAR(that becomes 1022*584 after resizing to 1024*768 in ffdshow), I've tried to open it like 20 times...it only crashed once(same as the old buggy DLL), basically it went really slow and crashed my player after a few secs.

it also crashes a lot when I seek..

when it's mod2, it seems to stall for a few seconds before starting playback

if only ffdshow could resize to 1024* when I ask it to, but it doesn't seem possible..

Last edited by leeperry; 13th March 2009 at 11:19.
leeperry is offline   Reply With Quote
Old 13th March 2009, 21:01   #30  |  Link
alph@
Replicant
 
alph@'s Avatar
 
Join Date: Jan 2007
Location: strasbourg
Posts: 49
hi jeremy, thanks for your work, the question , why your version of avisynth dll mt is so big '1287 ko' instead of the other one wich is smaller '336 ko'
alph@ is offline   Reply With Quote
Old 13th March 2009, 21:24   #31  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
He probably built the debug version.
Guest is offline   Reply With Quote
Old 14th March 2009, 01:42   #32  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
I updated the dll in the first post.

I don't know why it's so big.

Last edited by Jeremy Duncan; 14th March 2009 at 02:47.
Jeremy Duncan is offline   Reply With Quote
Old 14th March 2009, 03:07   #33  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Set the project to "Release" instead of "Debug".

Build/Configuration Manager.
Guest is offline   Reply With Quote
Old 14th March 2009, 06:55   #34  |  Link
squid_80
Registered User
 
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
I think the official builds have been UPX'd or similar.
squid_80 is offline   Reply With Quote
Old 14th March 2009, 07:23   #35  |  Link
lych_necross
ZZZzzzz...
 
lych_necross's Avatar
 
Join Date: Jan 2007
Location: USA
Posts: 303
Yes, the official builds have been UPX'd.
lych_necross is offline   Reply With Quote
Old 14th March 2009, 08:19   #36  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
Quote:
Originally Posted by neuron2 View Post
Set the project to "Release" instead of "Debug".

Build/Configuration Manager.
I did. For all the libs: soundtouch, softwire, pfc. And the avisynth dll.

"when it's mod2, it seems to stall for a few seconds before starting playback".
if you specify the fps and then run your code under that it should be ok.
See assumefps

My film is 29.970 fps I think. So I use assumefps like this:
ffdshow_source()
MT("
assumefps(30000, 1000, false)
",2)

The false is to show no audio is used in the setting.

The stall is due to the avisynth dll having 64 to 32 bit conversion. I think.

Last edited by Jeremy Duncan; 14th March 2009 at 08:23.
Jeremy Duncan is offline   Reply With Quote
Old 14th March 2009, 10:42   #37  |  Link
alph@
Replicant
 
alph@'s Avatar
 
Join Date: Jan 2007
Location: strasbourg
Posts: 49
'Yes, the official builds have been UPX'd' , yes it is , thanks
alph@ is offline   Reply With Quote
Old 14th March 2009, 11:36   #38  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by Jeremy Duncan View Post
I use assumefps like this:
ffdshow_source()
MT("
assumefps(30000, 1000, false)
",2)
It's pointless putting MT around assumefps since the filter does not process any pixels - it just changes the clip properties.
Using MT here will actually slow it down instead of speeding it up - just use assumefps on its own.
Gavino is offline   Reply With Quote
Old 14th March 2009, 17:23   #39  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
Quote:
Originally Posted by Gavino View Post
It's pointless putting MT around assumefps since the filter does not process any pixels - it just changes the clip properties.
Using MT here will actually slow it down instead of speeding it up - just use assumefps on its own.
I tried my frame doubler with no mt around assumefps and it crashed. Not right away, but after some time.
Putting it in mt solved this problem.

I made another avisynth mt dll today and put it in the first post.
I included a build log so you can see it's a release and not a debug.

This version had most of the convert warnings fixed.
It's more stable I think after testing it with my frame doubler in ffdshow.
Jeremy Duncan is offline   Reply With Quote
Old 14th March 2009, 19:28   #40  |  Link
Leak
ffdshow/AviSynth wrangler
 
Leak's Avatar
 
Join Date: Feb 2003
Location: Austria
Posts: 2,441
Quote:
Originally Posted by Jeremy Duncan View Post
I tried my frame doubler with no mt around assumefps and it crashed. Not right away, but after some time.
Putting it in mt solved this problem.
Except that AssumeFPS plain doesn't work in ffdshow. I made sure of that, as no matter what you it'll destroy any synchonization between audio and video since AviSynth only operates on the audio.

AssumeFPS all you want - ffdshow will use the timestamps of the input frames to calculate the output frame timestamps. If your file itself has it's framerate wrong remux it with the correct framerate.

np: Fink - If Only (Distance And Time)
__________________
now playing: [artist] - [track] ([album])
Leak 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 22:27.


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