Individual frames

rich2020

New Member
Is it possible for me to access the individual frames streamed?

I would like to calculate how long it takes for a frame rendered on the server to arrive on the client.
I'd also like to have the ability to intercept individual frames and say, drop one/many, etc.

Where should I look in the source to accomplish this? Any advice?

Many thanks
 

rich2020

New Member
I'm sorry, I'm not really sure how else to phrase my question. I'd like to access the frame before it is sent over the network to the client machine. I have OBS running on an Amazon EC2 instance and I'd like to, before OBS streams the frame over the network, to access that frame.
 

dodgepong

Administrator
Community Helper
To what end? It sounds like a strange thing to want to do.

I ask because I could just answer your question (kind of a complicated answer), but in my experience, when people ask strange questions like this, it's because they are trying to do something where there is a better solution available to them.
 

rich2020

New Member
I want to understand how OBS-MP is hooking into an application and intercepting the draw calls. I'd like to, for experimental and learning purposes, know where OBS does the injection, but also where it captures the frames. I have had a look through graphics.c and obs-video.c (specifically at output_frame & output_video_data), but I am unsure of how to work with the frame. How could I pipe that frame to a .PNG file, for example?
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
If you want to access raw frame data you'd just create a custom output for it. Custom outputs aren't entirely supported in the "basic" front-end though at the moment, so you'd probably want to write a test front-end if you're just testing things. It's actually not very difficult to set up.
 
Top