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

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 22nd February 2017, 10:37   #3061  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by tcope View Post
AVSMeter.exe -avsinfo
Code:
VersionString:              AviSynth+ 0.1 (r2420, MT, i386)
VersionNumber:              2.60
File version:               0.0.0.0
Interface Version:          6
Multi-threading support:    Yes
Linker/compiler version:    14.0
Avisynth.dll location:      
Avisynth.dll time stamp:    Cannot determine timestamp
PluginDir2_5 (HKLM, x86):   C:\Program Files\AvisynthRepository\AVSPLUS_x86\plugins
Looks like a bunch of Win32 API functions don't work under Wine, it's quite safe to assume that other things in AVSMeter such as the DLL dependency checks don't work either.
__________________
Groucho's Avisynth Stuff

Last edited by Groucho2004; 22nd February 2017 at 10:40.
Groucho2004 is offline  
Old 22nd February 2017, 12:05   #3062  |  Link
sl1pkn07
Pajas Mentales...
 
Join Date: Dec 2004
Location: Spanishtán
Posts: 496
Dependency check throught asvmeter under wine works with MvTools2 2.7.14.22 is FFT3W is not installed, for example.

then i assume this funcionality works ok

also works the version of the plugins in some cases (if has implemented)

Code:
┌─┤[$]|[sl1pkn07]|[sL1pKn07]|[~/aplicaciones/breeze-gtk-git]|
└───╼  mv /home/wine-Avisynth/drive_c/windows/syswow64/libfftw3f-3.dll /home/wine-Avisynth/drive_c/windows/syswow64/libfftw3f-3.dll.old
┌─┤[$]|[sl1pkn07]|[sL1pKn07]|[~/aplicaciones/breeze-gtk-git]|
└───╼  avsmeter -avsinfo
wine: cannot find L"C:\\windows\\system32\\winemenubuilder.exe"

AVSMeter 2.4.9 (x86) - Copyright (c) 2012-2017, Groucho2004
                                                                               
VersionString:              AviSynth+ 0.1 (r2420, MT, i386)
VersionNumber:              2.60
File version:               0.0.0.0
Interface Version:          6
Multi-threading support:    Yes
Linker/compiler version:    14.0
Avisynth.dll location:      
Avisynth.dll time stamp:    Cannot determine timestamp
PluginDir+   (HKLM, x86):   C:\Program Files (x86)\AviSynth+\plugins+
PluginDir2_5 (HKLM, x86):   C:\Program Files (x86)\AviSynth+\plugins


[CPP 2.5 / 32 Bit plugins]
C:\Program Files (x86)\AviSynth+\plugins\AddGrainC.dll  [1.7.1.0]
C:\Program Files (x86)\AviSynth+\plugins\avstp.dll  [1.0.3.0]
C:\Program Files (x86)\AviSynth+\plugins\dfttest.dll  [1.9.4.0]
C:\Program Files (x86)\AviSynth+\plugins\dither.dll
C:\Program Files (x86)\AviSynth+\plugins\flash3kyuu_deband.dll
C:\Program Files (x86)\AviSynth+\plugins\LSMASHSource.dll

[CPP 2.6 / 32 Bit plugins]
C:\Program Files (x86)\AviSynth+\plugins+\ConvertStacked.dll
C:\Program Files (x86)\AviSynth+\plugins+\DePan.dll  [2.13.1.2]
C:\Program Files (x86)\AviSynth+\plugins+\DePanEstimate.dll  [2.10.0.1]
C:\Program Files (x86)\AviSynth+\plugins+\DirectShowSource.dll
C:\Program Files (x86)\AviSynth+\plugins+\ffms2.dll
C:\Program Files (x86)\AviSynth+\plugins+\ImageSeq.dll
C:\Program Files (x86)\AviSynth+\plugins+\KNLMeansCL.dll
C:\Program Files (x86)\AviSynth+\plugins+\masktools2.dll  [2.2.1.0]
C:\Program Files (x86)\AviSynth+\plugins+\mvtools2.dll  [2.7.14.22]
C:\Program Files (x86)\AviSynth+\plugins+\RgTools.dll  [0.94.0.0]
C:\Program Files (x86)\AviSynth+\plugins+\SangNom2.dll
C:\Program Files (x86)\AviSynth+\plugins+\Shibatch.dll
C:\Program Files (x86)\AviSynth+\plugins+\TimeStretch.dll
C:\Program Files (x86)\AviSynth+\plugins+\VDubFilter.dll


[Plugin errors/warnings]
------------------------------------------------------------------------------

"C:\Program Files (x86)\AviSynth+\plugins\dfttest.dll"

Dependencies that could not be loaded:
    libfftw3f-3.dll

Note: "libfftw3f-3.dll can be downloaded here:
      http://www.fftw.org/install/windows.html

      libfftw3f-3.dll must be placed in a directory to which the
      'PATH' environment variable points, i.e. System32/SysWOW64"

------------------------------------------------------------------------------

"C:\Program Files (x86)\AviSynth+\plugins+\DePanEstimate.dll"

Dependencies that could not be loaded:
    libfftw3f-3.dll

Note: "libfftw3f-3.dll can be downloaded here:
      http://www.fftw.org/install/windows.html

      libfftw3f-3.dll must be placed in a directory to which the
      'PATH' environment variable points, i.e. System32/SysWOW64"

------------------------------------------------------------------------------

"C:\Program Files (x86)\AviSynth+\plugins+\mvtools2.dll"

Dependencies that could not be loaded:
    libfftw3f-3.dll

Note: "libfftw3f-3.dll can be downloaded here:
      http://www.fftw.org/install/windows.html

      libfftw3f-3.dll must be placed in a directory to which the
      'PATH' environment variable points, i.e. System32/SysWOW64"

------------------------------------------------------------------------------
┌─┤[$]|[sl1pkn07]|[sL1pKn07]|[~/aplicaciones/breeze-gtk-git]|
└───╼
if can detect the plugins path and version, idk why not detect the path/version of avisynth.dll (or is different implementation?)

greetings
__________________
[AUR] Vapoursynth Stuff
[AUR] Avisynth Stuff

Last edited by sl1pkn07; 22nd February 2017 at 12:31.
sl1pkn07 is offline  
Old 22nd February 2017, 12:23   #3063  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by sl1pkn07 View Post
if can detect the plugins path and version, idk why not detect the path/version of avisynth.dll (or is different implementation?)

greetings
I think I figured it out. In order to determine the correct location of avisynth.dll on 64 bit Windows and avoiding file re-direction problems (which happen on some Windows versions) I'm using code that is only supported on a native Windows platform. I'll have a look if I can rectify this.
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline  
Old 22nd February 2017, 12:44   #3064  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
Also the kind of dependency is different. AviSynth plugins which need libfftw3f-3.dll would use exported functions from within this DLL to be functional at all. But I believe they won't use any function from within avisynth.dll, there is probably no necessary runtime dependency in this direction. Vice versa, avisynth.dll instead uses exported functions from within the plugin DLL's (when used in the script).
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline  
Old 22nd February 2017, 17:17   #3065  |  Link
tcope
Digital Artifact
 
tcope's Avatar
 
Join Date: Sep 2015
Location: Houston Texas
Posts: 37
Quote:
Originally Posted by sl1pkn07 View Post
PluginDir+ (HKLM, x86): C:\Program Files (x86)\AviSynth+\plugins+
PluginDir2_5 (HKLM, x86): C:\Program Files (x86)\AviSynth+\plugins
The switcher script currently only sets one plugin path.
A second for + is an easy addition.
Am I remembering correctly that multiple plugin
paths are only supported by Avisynth+ ?

Looking for an elegant solution to use a standard
plugin repo along with the unique plugins within
the switcher, but not know enough about the
internal loading mechanism.

Can plugin directories be nested and will all synth
versions look into all sub directories for plugins ?
tcope is offline  
Old 22nd February 2017, 18:10   #3066  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by tcope View Post
The switcher script currently only sets one plugin path.
A second for + is an easy addition.
Am I remembering correctly that multiple plugin
paths are only supported by Avisynth+ ?
Correct.


Quote:
Originally Posted by tcope View Post
Can plugin directories be nested and will all synth
versions look into all sub directories for plugins ?
No Avisynth version supports nested plugin directories.
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline  
Old 22nd February 2017, 18:23   #3067  |  Link
tcope
Digital Artifact
 
tcope's Avatar
 
Join Date: Sep 2015
Location: Houston Texas
Posts: 37
I further narrowed the issue with avisynth+ and
the Authors.avs down to this internal function.

+chr(13)+

Code:
ovText = "AviSynth Authors:"+chr(13)+
	\ "----------------------------"+chr(13)+
none of the authors will render,
but this does run.
Code:
ovText = "AviSynth Authors:"
tcope is offline  
Old 22nd February 2017, 19:09   #3068  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by tcope View Post
I further narrowed the issue with avisynth+ and
the Authors.avs down to this internal function.

+chr(13)+

Code:
ovText = "AviSynth Authors:"+chr(13)+
	\ "----------------------------"+chr(13)+
none of the authors will render,
but this does run.
Code:
ovText = "AviSynth Authors:"
just test it with

Code:
ovText = "AviSynth Authors:"+chr(13)+
	\ "----------------------------"+chr(13)
MessageClip(ovText)


work fine in avs26 and avs+ x64, your code is not correct in normal avs26 btw so I did't test it in avs+
__________________
See My Avisynth Stuff
real.finder is offline  
Old 22nd February 2017, 21:42   #3069  |  Link
tcope
Digital Artifact
 
tcope's Avatar
 
Join Date: Sep 2015
Location: Houston Texas
Posts: 37
I do not have 64 bit wine installed so I can only test 32 bit.

The Authors.avs runs correctly for me in all flavors of avs26
except for avs+ x32.

Code:
ovText = "AviSynth Authors:"+chr(13)+
	\ "----------------------------"+chr(13)
MessageClip(ovText)
Every combination of options I have tried fails
to run on avs+ x32 until I remove the +chr(13)+

Please share your experience so I can improve compatibility.
Quote:
your code is not correct in normal avs26 btw so I did't test it in avs+
tcope is offline  
Old 22nd February 2017, 22:30   #3070  |  Link
videoFred
Registered User
 
videoFred's Avatar
 
Join Date: Dec 2004
Location: Terneuzen, Zeeland, the Netherlands, Europe, Earth, Milky Way,Universe
Posts: 689
Thanks to Groucho's exellent Avisynth installer I discovered Avisynth Plus.
With MT enabled it runs my scripts 3-4 times faster!



Fred.
__________________
About 8mm film:
http://www.super-8.be
Film Transfer Tutorial and example clips:
https://www.youtube.com/watch?v=W4QBsWXKuV8
More Example clips:
http://www.vimeo.com/user678523/videos/sort:newest
videoFred is offline  
Old 23rd February 2017, 11:03   #3071  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
tCope, have you tried replacing Chr(13) with Chr(10) # Carriage Return -> Line Feed.
I personally would never use Chr(13) for such a task.

EDIT: On AVS v2.6 standard, both Chr(10) and Chr(13) work as expected.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 23rd February 2017 at 11:10.
StainlessS is offline  
Old 23rd February 2017, 15:08   #3072  |  Link
tcope
Digital Artifact
 
tcope's Avatar
 
Join Date: Sep 2015
Location: Houston Texas
Posts: 37
Thanks for the suggestion, but no joy.
cr(10) and cr(13) work for me in avs.2.6
but neither are working in avs+
tcope is offline  
Old 23rd February 2017, 16:04   #3073  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
Quote:
Originally Posted by tcope View Post
Thanks for the suggestion, but no joy.
cr(10) and cr(13) work for me in avs.2.6
but neither are working in avs+
Hi!

Here is the code for MessageClip
https://github.com/pinterf/AviSynthP...ource.cpp#L436

There is a GetTextBoundingBox call that establishes the dimensions of a rendered text to get the video width and height. It uses \n for separators.
https://github.com/pinterf/AviSynthP...rlay.cpp#L2569

These codes were not changed since the classic Avisynth versions (aside from an anti-warning int cast)
pinterf is offline  
Old 23rd February 2017, 16:46   #3074  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,419
MessageClip isn't the thing erroring out. The Authors.avs tcope is referring to is this, which hasn't been updated since 2007. There's something 'clever' that the video block is doing that causes AviSynth+ to crash, and it's not a simple MessageClip invocation. My bet is something in Overlay, given the variable tango going on in there.

Last edited by qyot27; 23rd February 2017 at 16:49.
qyot27 is offline  
Old 23rd February 2017, 17:07   #3075  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
Quote:
Originally Posted by qyot27 View Post
MessageClip isn't the thing erroring out. The Authors.avs tcope is referring to is this, which hasn't been updated since 2007. There's something 'clever' that the video block is doing that causes AviSynth+ to crash, and it's not a simple MessageClip invocation. My bet is something in Overlay, given the variable tango going on in there.
There is a line in the error log:
Code:
Exception while processing ScriptEnvironment::ThrowError().
This exception was raised here:
Code:
static std::string FormatString(const char *fmt, va_list args)
{
  va_list args2;
  va_copy(args2, args);
  _locale_t locale = _create_locale(LC_NUMERIC, "C"); // decimal point: dot

  int count = _vsnprintf_l(NULL, 0, fmt, locale, args); 
  std::vector<char> buf(count + 1);
  _vsnprintf_l(buf.data(), buf.size(), fmt, locale, args2);

  _free_locale(locale);
  va_end(args2);

  return std::string(buf.data());
}
There is a _create_locale and _vsnprintf_l call here, I don't know that they are supported in wine or not.
pinterf is offline  
Old 24th February 2017, 01:05   #3076  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,419
Wine acts a little differently than a native Windows distribution, but since the crash I was referring to happened on Windows 10, I'd think that the Exception may happen in Windows too, but that error message isn't readily available in Windows unless you dive into a debugging session - in Wine, it's front and center in the Terminal you ran the program from.

EDIT: Somewhat never mind, I updated to r2420 and the crash on Windows disappeared, and I could verify that that Exception error message shows up under Wine 2.2 on Ubuntu 16.10, regardless of trying to use 32-bit or 64-bit.

Last edited by qyot27; 24th February 2017 at 03:49.
qyot27 is offline  
Old 24th February 2017, 03:22   #3077  |  Link
tcope
Digital Artifact
 
tcope's Avatar
 
Join Date: Sep 2015
Location: Houston Texas
Posts: 37
What ever is happening is deff unique
to avs+ .. all the other versions of avs
run it with no issues.

With absolutely no other changes to
Authors.avs than changing this
Code:
ovText = "AviSynth Authors:"+chr(13)+
to this
Code:
ovText = "AviSynth Authors:"
it will then run as expected. Granted none of
the author info below that line gets rendered
but the script runs with no issues.

tcope is offline  
Old 24th February 2017, 08:39   #3078  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
I hope there are syntactically correctly following terms after the last "plus". Unfortunately this is omitted in your examples.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline  
Old 24th February 2017, 08:53   #3079  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
Quote:
Originally Posted by qyot27 View Post
EDIT: Somewhat never mind, I updated to r2420 and the crash on Windows disappeared, and I could verify that that Exception error message shows up under Wine 2.2 on Ubuntu 16.10, regardless of trying to use 32-bit or 64-bit.
I don't know which version was crashing for you, but I fixed bug earlier that could cause crash, for me it was only a garbaged error display, but it would show up as crash under other conditions.
20161222 r2347dev
- Fix: ScriptClip would show garbage text when internal exception occurs instead of the error message


Regarding the wine issue, I will make a special release and post the link to you and tcope.
pinterf is offline  
Old 24th February 2017, 15:08   #3080  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,493
Quote:
Originally Posted by LigH View Post
I hope there are syntactically correctly following terms after the last "plus". Unfortunately this is omitted in your examples.
There is this snippet from earlier:

Code:
ovText = "AviSynth Authors:"+chr(13)+
	\ "----------------------------"+chr(13)
Is it something to do with the placement of the backslash? Doesn't it normally go at the end of a continued line, rather than at the beginning of the continuation?

Since the --------- doesn't show in tcope's screenshot, I'm guessing he's got confused over line continuations.

tcope - post your full working and broken scripts in order to get an accurate diagnosis.

Edit: perhaps by putting the backslash on the beginning of the line, the rest of the line is being ignored?
__________________
My AviSynth filters / I'm the Doctor

Last edited by wonkey_monkey; 24th February 2017 at 15:10.
wonkey_monkey is offline  
Closed Thread

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


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