dcmouser
Member
I have been trying to solve this issue sporadically over many months, often spending hours messing with the OBS source code trying to identify at least the proximal location of this problem, with no luck. I've tried on different installs of OBS, with a clean set of only two scenes.
I initially thought the problem had to do with the capture card but having now tried with a different 4k capture card and find the problem persists, so something more fundamental is going wrong.
Here's the issue: When switching to a scene with a 4k source, after a few minutes of being away from that scene, there is a hiccup where it experiences about 10-20 missed frames (this is a 30fps stream), and dips into high frame rendering times. After this hiccup it is happy on the scene and is rendering frames in the 1ms range and holds steady there.
So it is trivially rendering the 4k sources easily, except that after it's been off the source for a few minutes and switches back to it, that it chokes for a half a second or so. (note that you can see the choke/hiccup regardless of what transition you use, including a cut).
It's particularly frustrating since the PC is having such an easy time rendering the scenes, it's not being taxed at all -- i could throw four 4k sources on the scene with no problem.
It's also completely reliably reproducible. To further add to the mystery, remember that if i transition between these scenes and sources with less than a minute or two delay, no hiccup at all.. It only happens if i've been off the scene for more than a minute or so.. WEIRD.
Like I said I have spend many hours in the source code trying to figure out where the problem is happening, looking into aynchronous video source caching, etc. but I cannot seem to figure out even WHERE the problem is happening. If I could figure out where maybe I could have some luck solving the problem.
I have tried every configuration I can think of regarding camera outputs, framerates, encoders, canvas sizes, and I've run logs through the obs log analyzers, and cannot figure out what is going on. The sources are not set to deactivate when not showing, and.
If anyone can help, I'm desperate to figure out this problem in an otherwise joyous OBS experience, and I'm happy to experiment with OBS source code if I can figure out some clue as to the nature of the problem.
Thank you in advance.
ps. Here is an earlier thread where I have been trying to figure out the problem thinking it might be specific to the BlackMagic decklink capture plugin: https://obsproject.com/forum/thread...agic-4k-decklink-plugin-capture-source.162687
I initially thought the problem had to do with the capture card but having now tried with a different 4k capture card and find the problem persists, so something more fundamental is going wrong.
Here's the issue: When switching to a scene with a 4k source, after a few minutes of being away from that scene, there is a hiccup where it experiences about 10-20 missed frames (this is a 30fps stream), and dips into high frame rendering times. After this hiccup it is happy on the scene and is rendering frames in the 1ms range and holds steady there.
So it is trivially rendering the 4k sources easily, except that after it's been off the source for a few minutes and switches back to it, that it chokes for a half a second or so. (note that you can see the choke/hiccup regardless of what transition you use, including a cut).
It's particularly frustrating since the PC is having such an easy time rendering the scenes, it's not being taxed at all -- i could throw four 4k sources on the scene with no problem.
It's also completely reliably reproducible. To further add to the mystery, remember that if i transition between these scenes and sources with less than a minute or two delay, no hiccup at all.. It only happens if i've been off the scene for more than a minute or so.. WEIRD.
Like I said I have spend many hours in the source code trying to figure out where the problem is happening, looking into aynchronous video source caching, etc. but I cannot seem to figure out even WHERE the problem is happening. If I could figure out where maybe I could have some luck solving the problem.
I have tried every configuration I can think of regarding camera outputs, framerates, encoders, canvas sizes, and I've run logs through the obs log analyzers, and cannot figure out what is going on. The sources are not set to deactivate when not showing, and.
If anyone can help, I'm desperate to figure out this problem in an otherwise joyous OBS experience, and I'm happy to experiment with OBS source code if I can figure out some clue as to the nature of the problem.
Thank you in advance.
ps. Here is an earlier thread where I have been trying to figure out the problem thinking it might be specific to the BlackMagic decklink capture plugin: https://obsproject.com/forum/thread...agic-4k-decklink-plugin-capture-source.162687