Video

This function block facilitates input and playback of video files within the software. It allows users to select a video file, play it back, and retrieve frames along with a timestamp.

📥 Inputs

Restart A boolean input that, when activated, restarts the video playback from the beginning.

📤 Outputs

Image Any This output provides the current frame from the video.

Timestamp A string that indicates the current timestamp of the video playback in HH:MM:SS format.

Restarted A boolean output that indicates whether the video playback has restarted.

🕹️ Controls

Select Video File A button allowing you to browse and select a video file from your system.

Real-time Playback A switch that allows you to toggle between real-time playback and sequential frame reading.

🎨 Features

Video File Selection Users can easily select video files which are then registered for playback.

Frame Rate Management The function handles video frames using the frame rate, ensuring smooth playback.

Playback Control Provides the ability to restart playback dynamically and provides feedback regarding playback status.

📝 Usage Instructions

  1. Load Video File: Click on the Select video file button to browse and choose a video file for playback.

  2. Adjust Playback: Use the Real-time switch to decide whether to play in real-time or to read frames sequentially.

  3. Receive Outputs: The current frame and timestamp are available as outputs which can be used by other function blocks.

📊 Evaluation

When activated, this function block will fetch the current frame from the specified video and return it along with the playback timestamp and restart status.

💡 Tips and Tricks

Ensure Video Compatibility

Make sure that the video format is compatible with the player. Common formats include MP4, AVI, and MKV.

Optimal performance

For optimal performance, ensure that the video resolution does not exceed your system's processing capabilities, especially when using the Real-time feature.

Error Handling

If you encounter playback issues, ensure that the input video file path is valid and that the file is accessible.

🛠️ Troubleshooting

No Video Playing

If you see no video output, ensure that a valid video file is selected and that it opens successfully within the node.

Frame Retrieval Issues

If frames are not being retrieved, check if the video has reached its end. The Restart input can be activated to reset playback.

Last updated