Log in

View Full Version : avisynth internal Directshowsource hangs players


budman1
3rd January 2014, 06:24
When I create a directshowsource script in AVISynth and try to play in several players (potplayer, Media Player and VLC) the script hangs and I cannot even close the viewer. If I load Directshowsource (01.27.2010 v.2588) as a 'loadplugin' everything works perfect. This happens with AVISynth 2.58 and 2.60.

It fails on many mp4, mpg and flv files so it is not any one codec/type/format and I have even created a useable GRF file and tried to use this, but it too hangs. Does anyone know why or what level Directshowsource is used in the internal filter for AVISynth?

:thanks:

manolito
3rd January 2014, 11:16
There is no such thing as "AviSynth Internal DirectShowSource". DirectShowSource is an external DLL file which is automatically installed into the AviSynth\Plugins folder upon installation. This means the DLL will autoload whenever needed.

You can override this DirectShowSource version by using "LoadPlugin" to load a different version. (But then you could just as well copy the version you want into the Plugins folder and overwrite the older one).

So if you say that using LoadPlugin works and autoloading causes hangs and crashes, it can only be the different version which matters. Note that there is a newer version of DirectShowSource for AviSynth 2.60 available, but this version will not work under AviSynth 2.5x.


And then you should be aware that most problems with DirectShowSource are caused by the actual decoders which are called by DirectShowSource. These decoders could be ffdshow, LAV filters, other decoders installed by some software (like Quicktime or DVD players), or maybe you have installed a codec pack. It can be very time consuming to debug this stuff.

And you also could try to avoid DirectShowSource altogether and use other source filters like FFMPEGSource2 or DSS2.


Cheers
manolito

budman1
3rd January 2014, 14:26
Okay iguess I am a little confused because my avsi type plugins seem to load automatically and if I remove the directshow.dll from the plugins folder it still works in a script. (?) I have always had to loadplugins if they were dll.

As far as the filters it calls, I thought it was always the one normally used by the merit rating on my computer. I know the other filters as ffms2 are better than directshow and I can use them also. Thank you.

UPDATE: Double checking my registry shows my path is listed in (Windows 7 64 bit) HKEY_Local Machine\software\wow6432node\avisynth\avisynth 2.5\plugins. I verified that directshowsource works if I remove the dll file with that name from the plugins directory and that avsi filters load automatically so I guess my machine is a little messed up and until get it figured out, I will just load directshowsource or use ffms2 in my scripts.

Thank you for the explanation.

UPDATE Final: Okay looks like a had an 'RGB.avsi' and "xxxDirectshowsource.dll.old' (must have done that in debugging at some time) and either/both would cause the error in Players playing script with directshowsource. Don't ask me why they caused it but the final result is With out your knowledgeable information I would still be chasing and wondering so Thank you Very Much. My PC is Pure again!!! LOL.

manolito
3rd January 2014, 23:29
My pleasure...

Right now I am learning a bunch of new things about DirectShowSource myself (see the thread "More DirectShow woes").


Cheers
manolito

budman1
4th January 2014, 23:18
BTW... if anyone is interested in further information... I have a LOT of messed up videos that I try to fix and the only version of 16 different Directshowsource.dll files that plays everything is the one dated 01/27/2010 20:10.

I obtained this from a file called Directshowsource_2588.zip at http://sourceforge.net/projects/avisynth2/files/AviSynth%202.5/AviSynth%202.5.8/DirectShowSource_2588.zip/download referenced here on thread http://forum.doom9.org/archive/index.php/t-154685.html

It works great on some pretty messed up videos, including MPG with indexing problems.

manolito
5th January 2014, 03:47
Yes, this is the version I have been using for some time now, and it is very reliable. This version can also be used under AviSynth 2.56a and 2.57.


Cheers
manolito