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

Incompatible with latest Vapoursynth versions? #3

Open
adworacz opened this issue Aug 15, 2022 · 1 comment
Open

Incompatible with latest Vapoursynth versions? #3

adworacz opened this issue Aug 15, 2022 · 1 comment

Comments

@adworacz
Copy link

Just tried running this with v59 of Vapoursynth, got the following error:

    self.img = np.dstack([np.array(f.get_read_array(p), copy=False) for p in [2,1,0]])
AttributeError: 'vapoursynth.VideoFrame' object has no attribute 'get_read_array'. Did you mean: 'get_read_ptr'?

Looks like the Vapoursynth API has changed since this project was last updated?

@adworacz
Copy link
Author

Ahh yup, looks like the were replaced with get_frame: https://github.com/vapoursynth/vapoursynth/blob/8b784095663e519f8117b62ca840a449179baa2b/APIV4%20changes.txt#L108-L110

Might take a look at fixing this locally when I find the time. Should be an easy fix.

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

1 participant