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
How to conditionally chain effects? #138
Comments
All transformations are outplace so write |
when I tried that it never finished. It would just run ffmpeg at full speed in and out for the whole night on a clip that should take no more than 10 minutes to render. |
Yes but did it work ? Have you tried this on a subclip ? My guess would be that the painting effect is slowing everything down. |
No, I killed the process in the morning. Its really slow:
Editing 30s file shouldn't take this long to render. When I just concatenate them like
it takes only about a minute to render. |
That's not logical, there must be a difference between your scripts . You'll have to give me two complete examples with the resulting speeds (iters/sec) of each |
Yes, here is the code:
I ran both under exact same settings, just the second ones are hardcoded (but matching 100%). clip1 is slow:
clip2 is 30x+ faster:
|
I have no idea what effects clip1 has because of the conditionality, but I guess you are using the "cartoon" effect, and that's why it is very slow. |
I am not using cartoon effect in either. Furthermore, its very slow if I use no effects at all (25min eta on just speed-up, resize & fadein). I think when its done conditionally, something gets messed up internally. |
I can't see what could get "messed up internally". Either it applies the effect, or it doesn't, but when it does, it's really equivalent to what you do with clip2. Can you provide the parameters used for clip1 ? I can't help you if you don't provide the complete script. |
Sorry, nevermind. I am a complete retard. I had a bug in one of parameters (zoom), it would zoom in 7 instead of 1.07. This caused the slow-down. I am sorry for wasting your time with my stupidity. |
This is some horrible python code that will make you cringe (sorry, I barely know any python), but what I'm trying to do is conditionally chain the effects:
Unfortunately, this naive implementation doesn't work. The state from calling a function on
clip1
insn't preserved.Is there any built in utility that could handle this problem? Any language feature I am unaware of?
The text was updated successfully, but these errors were encountered: