Controlling video playback #872
-
I'd like to be able to control the current frame of a video texture in order to build some sort of video scratching patch. Is this possible? Being fairly new to cables, my naive approach was to checkout the I could only find the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Set Time is what you are looking for. It is relative to length of video. But... To have a smooth playback, you need intraframe-only encoded movie file. In this type of encoding, each frame is encoded as a standalone full frame (a keyframe), without referencing other frames for compression. This is in contrast to interframe compression, where some frames (non-keyframes) only store changes relative to other frames (e.g., P-frames and B-frames). Doing this on the web seems to be a little bit tricking due to some player limitation. Here is a patch and issue about it. You need to wait untill the player load all frames to be able to do it, but it work at the end for me. In the standalone version of cables, there is currently a bug with ffmpeg when opening some .mp4 movies, hoping it will be fixed soon... |
Beta Was this translation helpful? Give feedback.
Set Time is what you are looking for. It is relative to length of video.
But...
To have a smooth playback, you need intraframe-only encoded movie file. In this type of encoding, each frame is encoded as a standalone full frame (a keyframe), without referencing other frames for compression. This is in contrast to interframe compression, where some frames (non-keyframes) only store changes relative to other frames (e.g., P-frames and B-frames).
Doing this on the web seems to be a little bit tricking due to some player limitation.
I want to to this also and really think we are close to it...
Here is a patch and issue about it. You need to wait untill the player load all frames to be able to …