[Python] Registering a new output?

murali

New Member
Hello, I'm just starting to develop a new python script for OBS v21 that requires registering a new output handler. Basically, I need to pull a frame every second, which I then send off for some processing.

I first looked at if there's a way to pull the currently playing frame. I figured combining that with a timer would work. However, it doesn't look like you can just access the video stream that way.

So now I'm looking at registering an output handler, so that I get the full video stream, and will do the skipping / etc. myself. However, I can't seem to translate the C++ instructions on the reference webpages to appropriate python calls.

So first off, I'd like to ask is this even possible with Python? Do the scripting capabilities allow access to raw or encoded video data for a python script? And if so, does anyone know how I can do it? Thanks!
 
Top