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 12th January 2014, 05:35   #481  |  Link
DrZine
Registered User
 
Join Date: May 2012
Posts: 7
The fix for that is here

http://forum.doom9.org/showthread.php?p=1648046#post1648046
DrZine is offline   Reply With Quote
Old 12th January 2014, 05:54   #482  |  Link
tObber166
Registered User
 
Join Date: Nov 2012
Posts: 23
Thanks!
tObber166 is offline   Reply With Quote
Old 12th January 2014, 09:30   #483  |  Link
BBA163
Registered User
 
Join Date: Feb 2013
Location: China
Posts: 13
load avs in megui it's was crash
(My English is bad and reply was slow,sorry)
BBA163 is offline   Reply With Quote
Old 12th January 2014, 12:29   #484  |  Link
innocenat
Registered User
 
innocenat's Avatar
 
Join Date: Dec 2011
Posts: 77
Quote:
Originally Posted by BBA163 View Post
load avs in megui it's was crash
(My English is bad and reply was slow,sorry)
Please provide more information: script used, etc.
innocenat is offline   Reply With Quote
Old 12th January 2014, 15:40   #485  |  Link
BBA163
Registered User
 
Join Date: Feb 2013
Location: China
Posts: 13
Just use ffvideosource,can you load avisynth+'s avs file in megui?
If you can…that's my problem
BBA163 is offline   Reply With Quote
Old 12th January 2014, 18:26   #486  |  Link
Zathor
Registered User
 
Join Date: Nov 2009
Posts: 2,402
Yes, I can load such avs files without any problems.
Zathor is offline   Reply With Quote
Old 12th January 2014, 22:39   #487  |  Link
ajp_anton
Registered User
 
ajp_anton's Avatar
 
Join Date: Aug 2006
Location: Stockholm/Helsinki
Posts: 782
What happened to index.htm in the documentation folder?
ajp_anton is offline   Reply With Quote
Old 12th January 2014, 23:15   #488  |  Link
ultim
AVS+ Dev
 
ultim's Avatar
 
Join Date: Aug 2013
Posts: 359
Quote:
Originally Posted by ajp_anton View Post
What happened to index.htm in the documentation folder?
MIA (by mistake).

ps.: Wow, there *are* some people reading the offline docs. Well good for you, it's about to get updated
__________________
AviSynth+
ultim is offline   Reply With Quote
Old 13th January 2014, 04:59   #489  |  Link
BBA163
Registered User
 
Join Date: Feb 2013
Location: China
Posts: 13
So strange with my PC to load it…
BBA163 is offline   Reply With Quote
Old 15th January 2014, 08:33   #490  |  Link
ultim
AVS+ Dev
 
ultim's Avatar
 
Join Date: Aug 2013
Posts: 359
So here is a small update on the status of the MT version of avs+. I'm planning on stabilizing this ASAP now, merging it to my usual main branch this week. This also means that all pull requests and even non-MT work will end up in an MT-enabled build from now on.

I spent most of my development time last weekend hunting down the source of some uninitialized memory, so I got somewhat delayed, but hopefully by the end of this week I'll publish a new experimental build, and for plugin developers most importantly, I'm also pushing the whole work to GitHub. There are only a couple of things left on my to-do list, with one exception (addressing a theoretical deadlock) just build- or performance enhancements.

A slight difference to previous plans is that I'm splitting the current threadpool into two, one for the core threads and one for filter-initiated threads. This is made necessary to avoid the previously mentioned theoretical deadlock, 'coz any other alternative (instead of the threadpool split) that comes to my mind would involve some sophisticated (and error-prone!) locking trickery with questionable benefits. The split will simplify code a lot compared to other fixes, and should not hurt performance.

It would be nice to have the new documentation ready by then, extended with all the Avs+ and new MT-specific stuff, so that interested developers could consult it at once, but that won't be done by this week for sure. That's because even though qyot has done most of the hard work on converting the docs format (oh Lord it's awesome), there is still some left to be done, and coupled with my other to-do items, the weekend just won't be enough.

One way you guys can help me to make MT usable as soon as possible now, is to help collect what MT modes existing filters need. The three supported MT modes are the same as for SEt's version, 1 - no protection needed at all, 2 - multiple filter instances per call (one per thread), and 3 - just one filter for all threads but protected by exclusive area. It'd be our collective interest to collect what each filter needs, or if there is maybe already a list like that, to extend/update it. The rules could ship with avs+ then to make it readily usable. So can I leave you to assemble this list? Maybe on a Wiki page?

Active plugin developers can include the rules for their filters inside their own plugin, so those do not need to be on the list. They will be able to start including the functionality as soon as I push the new avisynth.h this week. Moreover, they can do so while still staying compatible with classic (non-plus) Avs.
__________________
AviSynth+

Last edited by ultim; 15th January 2014 at 09:17.
ultim is offline   Reply With Quote
Old 15th January 2014, 08:36   #491  |  Link
innocenat
Registered User
 
innocenat's Avatar
 
Join Date: Dec 2011
Posts: 77
Does this mean new plugin won't work with 2.6a5 anymore?
innocenat is offline   Reply With Quote
Old 15th January 2014, 09:04   #492  |  Link
ultim
AVS+ Dev
 
ultim's Avatar
 
Join Date: Aug 2013
Posts: 359
Quote:
Originally Posted by innocenat View Post
Does this mean new plugin won't work with 2.6a5 anymore?
It will be compatible. New plugins will still work with 2.6a5. The only limitation is that they will need a 2.6 header, so it won't work with 2.5.
__________________
AviSynth+
ultim is offline   Reply With Quote
Old 15th January 2014, 12:03   #493  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 1,274
for me mode 2 work in 90% of filters, Especially in the last SEt builders, by now I use mode 2 only even with tdecimate 2pass vfr Which were not compatible in the past

Waiting for the new header and MT

thanks
real.finder is offline   Reply With Quote
Old 15th January 2014, 21:38   #494  |  Link
MasterNobody
Registered User
 
Join Date: Jul 2007
Posts: 519
As I understand due to new way of auto loading plugins (pending them to the later time) avs_function_exists from C-interface fails to find out that DirectShowSource is available. This result in fail to open video files in x264 when you specify as input media file (any mkv file and --demuxer avs to be sure not to use lavf input) and not the avs script file. Is there is way to fix it from AviSynth+ side or what have to be added from x264 side so avs_function_exists will work?
MasterNobody is offline   Reply With Quote
Old 15th January 2014, 23:23   #495  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,057
Quote:
Originally Posted by MasterNobody View Post
As I understand due to new way of auto loading plugins (pending them to the later time) avs_function_exists from C-interface fails to find out that DirectShowSource is available. This result in fail to open video files in x264 when you specify as input media file (any mkv file and --demuxer avs to be sure not to use lavf input) and not the avs script file. Is there is way to fix it from AviSynth+ side or what have to be added from x264 side so avs_function_exists will work?
It's actually failing to find any source filters, not just DirectShowSource.
Code:
>x264 --preset ultrafast --crf 18 -o test.mkv "Qyot27 - Daybreak [XviD+MP3].mkv" --frames 10 --demuxer avs --verbose
avs [debug]: using avisynth version 2.60
avs [info]: trying FFmpegSource2... not found
avs [info]: trying DSS2... not found
avs [info]: trying DirectShowSource... not found
avs [error]: unable to find source filter to open `Qyot27 - Daybreak [XviD+MP3].mkv'
x264 [error]: could not open input file `Qyot27 - Daybreak [XviD+MP3].mkv'
So I doubt it's related to the C-plugin autoloading (the copy of FFMS2 that failed is a C-plugin). Looking at avs_core/core/PluginManager.cpp, it seems to be under avsplus' new experimental IScriptEnvironment2 class. I think that's more likely to be the issue, but I don't know anything about C++.
qyot27 is offline   Reply With Quote
Old 15th January 2014, 23:49   #496  |  Link
MasterNobody
Registered User
 
Join Date: Jul 2007
Posts: 519
Looks like I found the way how to fix it from x264 side by adding invoke of AutoloadPlugins(): patch
MasterNobody is offline   Reply With Quote
Old 16th January 2014, 10:29   #497  |  Link
ultim
AVS+ Dev
 
ultim's Avatar
 
Join Date: Aug 2013
Posts: 359
Avs+ autoloads plugins if any of the following happens:
- AutoloadPlugins() is called
- LoadPlugin() is called
- A yet unknown (non-internal) function is called

avs_function_exists does not find the external source filter in this case because none of the above happened. So MasterNobody's patch is the right thing to do.
__________________
AviSynth+
ultim is offline   Reply With Quote
Old 16th January 2014, 10:50   #498  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,380
Quote:
Originally Posted by ultim View Post
Avs+ autoloads plugins if any of the following happens:
- AutoloadPlugins() is called
- LoadPlugin() is called
- A yet unknown (non-internal) function is called

avs_function_exists does not find the external source filter in this case because none of the above happened. So MasterNobody's patch is the right thing to do.
How about having env->FunctionExists() (which is called by avs_function_exists) autoload plugins if a yet unknown function name is passed? Then it is transparent to client applications.
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote
Old 16th January 2014, 12:02   #499  |  Link
ultim
AVS+ Dev
 
ultim's Avatar
 
Join Date: Aug 2013
Posts: 359
Quote:
Originally Posted by Gavino View Post
How about having env->FunctionExists() (which is called by avs_function_exists) autoload plugins if a yet unknown function name is passed? Then it is transparent to client applications.
Hmm, I didn't like the idea at first, but thinking about it some more, it does make sense. The fact that FunctionExists() never autoloads while a function call can do it means that it is possible to call functions for which FunctionExists() returned false. That is not only inconsistent, but it can be argued it is a bug.

On the other hand, the reason I'm not perfectly satisfied with FunctionExists() autoloading is because FunctionExists() has the semantics of a getter function. It is pretty unexpected that it changes the internal state greatly (even if we are talking about non-observable state). I have to conclude though that this rather ideological argument is outweighed by the proposed solution's practical relevance.

So I guess I will correct this in Avisynth+ after all.
__________________
AviSynth+
ultim is offline   Reply With Quote
Old 17th January 2014, 16:52   #500  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 1,274
hi

I have two aWarpSharp in autoload folder, aWarpSharp and aWarpSharp2 by SEt

In normal avs if I use

Code:
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\aWarpSharp.dll")
someSource("E:\New.mkv")
aWarpSharp
green border will appear which mean that old aWarpSharp is using

but in avs+ only aWarpSharp2 will be used

I use this method in other cases also
real.finder 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 15:26.


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