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

VS ResampleHQ error with some resizers #1359

Closed
Elgohan2 opened this issue May 15, 2024 · 1 comment
Closed

VS ResampleHQ error with some resizers #1359

Elgohan2 opened this issue May 15, 2024 · 1 comment

Comments

@Elgohan2
Copy link

Elgohan2 commented May 15, 2024

Describe the bug
When choosing some resizer in ResampleHQ on VapourSynth filter, an error message is shown and we can't encode with that resizer.

Expected behavior
Encoding with chosen resizer.

How to reproduce the issue

  1. Open a source file
  2. Choose "VS Filters"
  3. On "Resize" filter, choose one of them: "Rect", "Blackman", "Blackmanminlobe", "Spline64", "Gauss" or "Sinc"
  4. Error message appear at the bottom of the windows and we can't click on "Accept / Next" button

Provide information

The error message is:

Script Error

Python exception: cannot access local variable 'scaler' where it is not associated with a value

Traceback (most recent call last):
  File "src\\cython\\vapoursynth.pyx", line 3233, in vapoursynth._vpy_evaluate
  File "src\\cython\\vapoursynth.pyx", line 3234, in vapoursynth._vpy_evaluate
  File "E:\dir_temp\movie.vpy", line 13, in <module>
    clip = resamplehq.resample_hq(clip, 1280, 720, kernel='Sinc')
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\StaxRip-v2.39.1-x64\Apps\Plugins\VS\Scripts\resamplehq.py", line 152, in resample_hq
    clip = scaler(clip, **scaler_opts)
           ^^^^^^
UnboundLocalError: cannot access local variable 'scaler' where it is not associated with a value

Used StaxRip version: 2.39.1

@Dendraspis
Copy link
Collaborator

Thanks for the catch, I'll remove them.

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

No branches or pull requests

2 participants