Skip to content

Settings that equal video seconds #20

Answered by rkhamilton
gateway asked this question in Q&A
Discussion options

You must be logged in to vote

Good question, and I hope I can clarify this.

In your example, video_frames will create 4000 iterations. Every 10ths iteration will be saved to disk as a sequentially named PNG. So in this case you end up with 400 frames of video.

The duration of the video is determined when you run encode_video. FFMPEG will take your 400 frames of video and encode them based on the output_framerate parameter. If you wanted to treat that as 24 fps footage, you set output_framerate=24, and then you would get 400/24 = 16.6 seconds of footage.

So the final duration is
iterations / save_every / output_framerate = seconds of footage.

You can also add ffmpeg interpolation to that output footage if you use the o…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@gateway
Comment options

Answer selected by rkhamilton
Comment options

You must be logged in to vote
2 replies
@gateway
Comment options

@rkhamilton
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants