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

Error when trying to use tonemapping placebo #1360

Closed
githubbabby opened this issue May 18, 2024 · 5 comments
Closed

Error when trying to use tonemapping placebo #1360

githubbabby opened this issue May 18, 2024 · 5 comments

Comments

@githubbabby
Copy link

Describe the bug
When trying to add tonemapping to an HDR file, I get this error:

Script Error

Python exception: No attribute with the name placebo exists. Did you mistype a plugin namespace or forget to install a plugin?

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 "C:\Users\ayybased\Videos\staxrip\Godzilla.Minus.One.2023.UHD.Bluray.2160p.TrueHD.7.1.Atmos.DV.HEVC.REMUX-GojiraDidNothingWrong_temp\Godzilla.Minus.One.2023.UHD.Bluray.2160p.TrueHD.7.1.Atmos.DV.HEVC.REMUX-GojiraDidNothingWrong_staxrip.vpy", line 15, in
clip = core.placebo.Tonemap(clip, src_csp=1, dst_csp=0, dynamic_peak_detection=1, tone_mapping_function=5, tone_mapping_mode=0)
^^^^^^^^^^^^
File "src\cython\vapoursynth.pyx", line 2741, in vapoursynth._CoreProxy.getattr
File "src\cython\vapoursynth.pyx", line 2564, in vapoursynth.Core.getattr
AttributeError: No attribute with the name placebo exists. Did you mistype a plugin namespace or forget to install a plugin?

If you can't (or don't) share your log file, give us at least this information:

  • Used StaxRip version: 2.39.1
@Dendraspis
Copy link
Collaborator

Which GPU is installed?

@githubbabby
Copy link
Author

Only integrated graphics from intel cpu is used.

@Dendraspis
Copy link
Collaborator

Load your project, right-click on the filters, click on Preview Code and share the resulting script with me.

The loading of the DLL should be prevented because of not fulfilling the requirements, meaning a Vulkan compatible GPU that is needed.

@githubbabby
Copy link
Author

githubbabby commented May 22, 2024

sorry for the wait, here it is:

  1: import os, sys
  2: import vapoursynth as vs
  3: core = vs.core
  4: 
  5: sys.path.append(r"C:\Users\ayybased\scoop\apps\staxrip\current\Apps\Plugins\VS\Scripts")
  6: core.std.LoadPlugin(r"C:\Users\ayybased\scoop\apps\staxrip\current\Apps\Plugins\VS\fmtconv\fmtconv.dll", altsearchpath=True)
  7: # !! The following line is commented out by StaxRip, because the system does not fulfill all requirements to execute it !!
  8: #core.std.LoadPlugin(r"C:\Users\ayybased\scoop\apps\staxrip\current\Apps\Plugins\VS\libvs_placebo\libvs_placebo.dll", altsearchpath=True)
  9: core.std.LoadPlugin(r"C:\Users\ayybased\scoop\apps\staxrip\current\Apps\Plugins\Dual\L-SMASH-Works\LSMASHSource.dll", altsearchpath=True)
 10: 
 11: clip = core.lsmas.LWLibavSource(r"C:\Users\ayybased\Videos\staxrip\Godzilla.Minus.One.2023.UHD.Bluray.2160p.TrueHD.7.1.Atmos.DV.HEVC.REMUX-GojiraDidNothingWrong_temp\Godzilla.Minus.One.2023.UHD.Bluray.2160p.TrueHD.7.1.Atmos.DV.HEVC.REMUX-GojiraDidNothingWrong.h265", cachefile=r"C:\Users\ayybased\Videos\staxrip\Godzilla.Minus.One.2023.UHD.Bluray.2160p.TrueHD.7.1.Atmos.DV.HEVC.REMUX-GojiraDidNothingWrong_temp\temp.lwi")
 12: clip = core.resize.Bicubic(clip, 1920, 1080)
 13: clip = core.fmtc.bitdepth(clip, bits=16)
 14: clip = core.placebo.Tonemap(clip, src_csp=1, dst_csp=0, dynamic_peak_detection=1, tone_mapping_function=0, tone_mapping_mode=0)
 15: # clip = clip.resize.Bicubic(format = vs.YUV420P10)
 16: 
 17: clip.set_output()

@Dendraspis
Copy link
Collaborator

Look at line 7 and you will know why this happens.

Just to check what happens anyway, you can copy line 8 and insert it without hashtag at the top of your filter, so it gets loaded before the call.

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

2 participants