Hey,
I'm trying get an idea of going about writing a filter plugin that would define a start/end point for a video source. I'm not an expert in C/C++ but I've been looking through the docs and wanted to check if I'm on the right track.
From what I can tell most of the functionality to do this would be in obs-source.h. My thinking is the filter is associated with/wraps a particular video source and the user is able to preview and select a particular start/end frame in the UI. This frame/timestamp data is stored and when the source renders it starts/stops playback at the specified points. I'm guessing the default action is to play a video from frame 0 to frame N so would you just be able to instead specify these frames at render via the filter?
I only have a vague understanding of this at the moment so I might be way off but If anyone is able to show me a place to start with this I'd appreciate it.
Thanks
I'm trying get an idea of going about writing a filter plugin that would define a start/end point for a video source. I'm not an expert in C/C++ but I've been looking through the docs and wanted to check if I'm on the right track.
From what I can tell most of the functionality to do this would be in obs-source.h. My thinking is the filter is associated with/wraps a particular video source and the user is able to preview and select a particular start/end frame in the UI. This frame/timestamp data is stored and when the source renders it starts/stops playback at the specified points. I'm guessing the default action is to play a video from frame 0 to frame N so would you just be able to instead specify these frames at render via the filter?
I only have a vague understanding of this at the moment so I might be way off but If anyone is able to show me a place to start with this I'd appreciate it.
Thanks