![]() ![]()
Search for those variables in this file: the file is only 700 lines, so the video backend isn’t too terribly complicated. Yes, higher FPS would give you lower latency just due to that nature Obs.c, obs-video.c and obs-internal.h I would be willing to point you to the variables and lines, but after that I’d have to let you take it from thereĭoes that mean if I use like 5fps i’ll get better latency? On-the-spot, just would require graphics knowledge and some tinkering with the backend. So it’s 1FPS in conjunction with the compositor’s graphics render/conversion/download actionsĪt least 3-4 frames are going to be buffered so at 1fps, always going to have 3-4 seconds of latency Oh, and it waits a frame for frame download from the GPU That 1fps thing is just what’s getting you So you’re going to naturally get a more instant result there ![]() it can just decode whatever you’re doing and convert on the spot, typically via CPU Unless you’re educated with graphics programming it’s probably not going to be something that you’re going to be able to fix easily on your own for FFmpeg, it does not need to do any of those things. Unless you performed every one of the video subsystem actions all at once (which would stall the graphics pipeline), you’re not going to be able to do anything about it then it converts the backbuffer to YUV, which may require another frame or two to process in fullīasically, it’s solely the fact that you’re running at 1fps that’s causing the problem, and due to the fact that there’s always a minimum of 2-4 frames buffering running OBS at 1fps means that you’re going to see an effect there, because it waits a frame between certain video subsystem actions(edited)įirst it renders the backbuffer, then waits a frame. What’s probably getting you there is the video subsystem. Kind of a complex system I wrote to ensure minimal audio latency the audio latency is designed to dynamically increase, but only as needed Not sure, the audio latency is already as minimal as can be, although you may gain up to a second of audio latency depending on what you do. OBS STUDIO WINDOWS 10 CODEWhen streaming a dummy video directly to my server with ffmpeg using the same x264 settings, the delay is almost non-existent.Ĭan someone point me to the parts of OBS source code so I can maybe recompile and make OBS work for my (weird) use case? I’m using 1fps, zerolatency, and 1 second key frames. If this doesn’t work, you might need to set CMAKE_PREFIX_PATH. Open that executable file to run OBS Studio.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |