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

how to speed up the video? #36

Open
xyzDist opened this issue Sep 10, 2023 · 2 comments
Open

how to speed up the video? #36

xyzDist opened this issue Sep 10, 2023 · 2 comments

Comments

@xyzDist
Copy link

xyzDist commented Sep 10, 2023

I have no idea how to control the speed of final video?
I want the video faster, but no matter I tried all the paramter just doesn't work for me.
what is the suggestion?

@xyzDist
Copy link
Author

xyzDist commented Sep 10, 2023

I figured it was the smoothing/interpolate function causing it, as long as I turn off, it respect the fps, and is the expected speed I after.
is that a bug?

@AlUlkesh
Copy link
Owner

No, interpolation is just more complicated...

Here I needed to calculate a "pts" (presentation timestamp).

The formula is pts = seconds / fps. Since pts has to be at least 1, everything <1 is set to 1.

That means that seconds has to be > fps to have an effect.

Another factor is, how many images there are to works with, that would be the "steps" number.

I suggest you try different values for those 3 parameters with this im mind.

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