Is it possible to open a certain frame in a video file?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Art4D
Newbie
Posts: 9
Joined: Fri Oct 08, 2021 3:33 pm
itch: launcher
Contact:

Is it possible to open a certain frame in a video file?

#1 Post by Art4D »

Hello. I have a video file containing 30 frames.
Can I use renpy to run certain frame(s) from this video file?
For example, show only the 15th frame on the screen.

User avatar
Andredron
Miko-Class Veteran
Posts: 719
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: Is it possible to open a certain frame in a video file?

#2 Post by Andredron »

Why renpy is not friendly with video and can't pause video.

The whole problem is in modern video formats.

The modern file format for video does not store frames one frame after the other, but instead uses "delta frames" which store only the changes from one frame to the next. Other considerations, such as variable frame rate video, make it difficult.
And because of this, you can’t pause the video in the renpy and you have to scatter the video frame by frame images and work in the renpai with the help of alt.

And the same for gif

Post Reply

Who is online

Users browsing this forum: Google [Bot]