Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.7.3 r4003 - TimeStretch does not have a named argument "rate" #426

Open
FlintEastwood opened this issue Feb 7, 2025 · 6 comments
Open

Comments

@FlintEastwood
Copy link

The TimeStretch filter is broken. It doesnt recognize the arguments tempo, rate, pitch.
I always get the message:
TimeStretch does not have a named argument "rate"

The integer arguments like "rate_n", "rate_d" are still recognized.

Or are the arguments tempo, rate and pitch depreciated but the doku has not been changed?

@pinterf
Copy link

pinterf commented Feb 9, 2025

TimeStretch still has two different versions. How to read: type characters 'i'=integer, 'f'-floating point, they follow [parameter_name].

c[tempo]f[rate]f[pitch]f[sequence]i[seekwindow]i[overlap]i[quickseek]b[aa]i
and
c[tempo_n]i[tempo_d]i[rate_n]i[rate_d]i[pitch_n]i[pitch_d]i[sequence]i[seekwindow]i[overlap]i[quickseek]b[aa]i

It seems to me if you'd provide floating point for rate and floating point for the preceding tempo (and not tempo_n), it would recognize?

Provide please your calling line.

@FlintEastwood
Copy link
Author

I used this line:

TimeStretch(rate=100.2059891)

Is that wrong?

@pinterf
Copy link

pinterf commented Feb 11, 2025

Works fine on my system. r4003 was the 3.7.3 release, and I used the bundled TimeStretch.dll

Colorbars()
TimeStretch(rate=100.2059891)

There must be another TimeStretch.dll on your system. Download AVSMeter64.exe (for 64 bit systems) and run it with the avsinfo option, it will list all your plugins and dates and versions.

My version:
C:\Program Files (x86)\AviSynth+\plugins64+\TimeStretch.dll [2023-02-23]

@FlintEastwood
Copy link
Author

Your version is older. It is not the version shipped with the 3.7.3 installer.

64 bit:

AVSMeter 3.0.9.0 (x64), (c) Groucho2004, 2012-2021

VersionString:              AviSynth+ 3.7.3 (r4003, 3.7, x86_64)
VersionNumber:              2.60
File / Product version:     3.7.3.0 / 3.7.3.0
Interface Version:          10
Multi-threading support:    Yes
Avisynth.dll location:      C:\Windows\SYSTEM32\avisynth.dll
Avisynth.dll time stamp:    2023-07-15, 22:48:08 (UTC)
PluginDir2_5 (HKLM, x64):   C:\Program Files (x86)\AviSynth+\plugins64
PluginDir+   (HKLM, x64):   C:\Program Files (x86)\AviSynth+\plugins64+


[C++ 2.6 Plugins (64 Bit)]  [Version, Time stamp]
...
C:\Program Files (x86)\AviSynth+\plugins64+\TimeStretch.dll  [n/a, 2023-07-15]
...

32bit:

AVSMeter 3.0.9.0 (x86), (c) Groucho2004, 2012-2021

VersionString:              AviSynth+ 3.7.3 (r4003, 3.7, i386)
VersionNumber:              2.60
File / Product version:     3.7.3.0 / 3.7.3.0
Interface Version:          10
Multi-threading support:    Yes
Avisynth.dll location:      C:\Windows\SysWOW64\avisynth.dll
Avisynth.dll time stamp:    2023-07-15, 23:00:38 (UTC)
PluginDir2_5 (HKLM, x86):   C:\Program Files (x86)\AviSynth+\plugins
PluginDir+   (HKLM, x86):   C:\Program Files (x86)\AviSynth+\plugins+


[C++ 2.5 Plugins (32 Bit)]  [Version, Time stamp]
C:\Program Files (x86)\AviSynth+\plugins+\equlines.dll  [0.3.0.0, 2025-02-06]

[C++ 2.6 Plugins (32 Bit)]  [Version, Time stamp]
...
C:\Program Files (x86)\AviSynth+\plugins+\TimeStretch.dll  [n/a, 2023-07-15]
...

@qyot27
Copy link
Member

qyot27 commented Feb 13, 2025

What application are you using to open the script when you see the parameter errors, and who built it?

@FlintEastwood
Copy link
Author

I nailed down the problem a bit more.
It is NOT application dependent. It happens with VirtualDub, AVSPmod, MPC-HC, etc. .
It is a problem with the 3.7.3 TimeStretch.dll's.
I wrote a short test script, that didn't crash:

ColorBars(width=720, height=576,pixel_type="YV24")
TimeStretch(rate=100.209)

But that is not the usual way I'm writing avisynth scripts. My scripts look like this:

cv = ColorBars(width=720, height=576,pixel_type="YV24")
cv = TimeStretch(cv, rate=100.209)
return cv

And that script crashes. I tried this on a second PC with a fresh 3.7.3 install and it crashed there too.
That is the error with my video script:
Image

But now the best:
If I'm using the TimeStretch.dll's from the 3.7.2 release (2022-03-18), then I don't get the error:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants