In Flow Nodes have two 2D visual types represented by pixels; video and graphic.
<aside> đź’ˇ
To get the frame count of a video, use the metadata node.
</aside>
Sampling
To sample a video frame into a graphic, use the Sample node.
Once you got the video frame, you can apply any graphic effect to it.
Editing
To edit every frame in a video, a Video Edit node is required. It will loop through every frame in the video and apply the edit you specify. This map node takes two video inputs, the source and destination. Destination can be an empty video State node.
Seeking
If you want to seek the video with a slider, see the demo in the app or follow this guide:
Add a video State node and load in your video.
Add a video Metadata node, this node can read the resolution along with the frame count.
Add a Slider node
Add a Float State node, this will be the “source of truth” of the seek value.
Add two Math Operation nodes, these will be used to map the sliders float value between 0.0
and 1.0
to the frame index.
1
from the frame count. As the last frame index is frame count minus one.Finally add a Sample node and wire the second operation outlet to the frame index and the wire in the video.
Now you should be able to seek the video with the slider.