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

AverageFrames incorrectly averages across scene changes #833

Closed
HolyWu opened this issue Nov 11, 2021 · 0 comments
Closed

AverageFrames incorrectly averages across scene changes #833

HolyWu opened this issue Nov 11, 2021 · 0 comments

Comments

@HolyWu
Copy link
Collaborator

HolyWu commented Nov 11, 2021

import vapoursynth as vs
core = vs.core

black = core.std.BlankClip(format=vs.YUV420P8, length=1, color=[16, 128, 128])
white = core.std.BlankClip(format=vs.YUV420P8, length=1, color=[235, 128, 128])
clip = core.std.Splice([black, white] * 3)
clip = core.misc.SCDetect(clip)
#clip = core.text.FrameProps(clip)  # see if the props are actually set
clip = core.std.AverageFrames(clip, weights=[1] * 3, scenechange=True)

clip.set_output()

VS R57

AkarinVS pushed a commit to AmusementClub/vapoursynth-classic that referenced this issue Nov 26, 2021
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