Question / Help Implementing a source plugin and how can I preview frames?

Peter Zhao

New Member
I'm learning and trying to implement a source plugin to interfacing with a camera right now, looks like the plugin do get the frame data from the camera but I couldn't see anything in the screen. Do I have to call any specific functions from OBS after obs_source_output_video(m_source, &currentFrame) to render the frame?

I have no idea why I can see a red rectangle window in the preview screen but nothing was rendered.

EDIT:
Is timestamps matter? I mean does it have be non-zero-start.

Appreciate your help!
 
Last edited:
Top