Replay Video Node
mp4, avi, mkv, ...) or from both video and metadata files (recorded using the RecordVideo node).How to place it
Python
C++
Python
Python
1with dai.Pipeline() as pipeline:
2 replay = pipeline.create(dai.node.ReplayVideo)Inputs and Outputs
Usage
Python
C++
Python
Python
1with dai.Pipeline() as pipeline:
2 replay = pipeline.create(dai.node.ReplayVideo)
3 replay.setReplayVideoFile("video.mp4")
4 replay.setReplayMetadataFile("metadata.mcap")
5 replay.setOutFrameType(dai.ImgFrame.Type.BGR888i)
6 replay.setSize(600, 480)
7 replay.setFps(30)
8 replay.setLoop(False)Examples of functionality
Reference
class
dai::node::ReplayVideo
variable
Output out
Output for any type of messages to be transferred over XLink streamDefault queue is blocking with size 8
function
void run()function
std::filesystem::path getReplayMetadataFile()function
std::filesystem::path getReplayVideoFile()function
ImgFrame::Type getOutFrameType()function
std::tuple< int, int > getSize()function
float getFps()function
bool getLoop()function
ReplayVideo & setReplayMetadataFile(const std::filesystem::path & replayFile)function
ReplayVideo & setReplayVideoFile(const std::filesystem::path & replayVideo)function
ReplayVideo & setOutFrameType(ImgFrame::Type outFrameType)function
ReplayVideo & setSize(std::tuple< int, int > size)function
ReplayVideo & setSize(int width, int height)function
ReplayVideo & setFps(float fps)function
ReplayVideo & setLoop(bool loop)Need assistance?
Head over to Discussion Forum for technical support or any other questions you might have.