AlUlkesh / sd_save_intermediate_images

Save intermediate images during the sampling process
The Unlicense
110 stars 17 forks source link

how to speed up the video? #36

Open xyzDist opened 1 year ago

xyzDist commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.