Changing media source path while hidden causing render lag

noizeproxy

Member
For test purposes it is better to make duplicate (or even make new) Scene Collection and Profile in OBS.

And you may set format other than MJPEG for your camera device and see if these warnings (it is not errors, so can be ignored) will be in place or gone:
Code:
15:37:00.549: warning: EOI missing, emulating
...
15:36:56.575: warning: deprecated pixel format used, make sure you did set range correctly

About memory leaks.
Less actions = less leaks. If some external plugin or script written in the way that it leaves some old data in memory without freeing it in time (the "leaks") then this number in the end of the OBS log may depend on number of internal calls to this script/plugin. Longer session = more actions by user or more external/internal events = more leaks. Sometimes leaks are small, only tens of bytes, because it is usually text string (for example full path to file). Of course, it is better to find the source of leakage and inform creator of the plugin or script, so creator can fix it in the next releases (it is not your fault or wrong setting).
i honestly don't know where i would change the format from MJPEG to anything else. Is that in properties? I don't remember ever seeing that... Also, I read what you said about memory leaks like 3 times and I'm not really sure if I fully understand it or what it means for me... sorry, maybe my reading comp skills are going with my hearing. lol
 

rockbottom

Active Member
More actions, more leaks. Plugins are generally the cause of them.

Your Cam Link & Elgato are using NV12, these are set to MJPEG.

16:14:25.624: [DShow Device: 'OVERHEAD'] settings updated:
16:14:25.624: video device: Logitech StreamCam
16:14:25.624: video path: \\?\usb#vid_046d&pid_0893&mi_00#6&11f04fd1&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
16:14:25.624: resolution: 1920x1080
16:14:25.624: flip: 0
16:14:25.624: fps: 60.00 (interval: 166666)
16:14:25.624: format: MJPEG
16:14:25.624: buffering: disabled
16:14:25.624: hardware decode: disabled
16:14:25.627: DShow: Elgato UVC device (PID = 0x008A) tonemapper enable=1
16:14:25.628: DShow: Elgato UVC device (PID = 0x008A) tonemapper enable=1
16:14:25.650: DShow: Elgato UVC device (PID = 0x008A) tonemapper enable=1
16:14:25.682: ---------------------------------
16:14:25.682: [DShow Device: 'WINDOW'] settings updated:

16:14:25.682: video device: OBSBOT Meet 2 StreamCamera
16:14:25.682: video path: \\?\usb#vid_3564&pid_fefb&mi_00#8&8ae8d00&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
16:14:25.682: resolution: 1920x1080
16:14:25.682: flip: 0
16:14:25.682: fps: 60.00 (interval: 166666)
16:14:25.682: format: MJPEG
16:14:25.682: buffering: disabled
16:14:25.682: hardware decode: disabled
16:14:25.712: DShow: Elgato UVC device (PID = 0x008A) tonemapper enable=1
16:14:25.714: ---------------------------------
16:14:25.714: [DShow Device: 'SHELF'] settings updated:

16:14:25.714: video device: OBSBOT Meet 2 StreamCamera
16:14:25.714: video path: \\?\usb#vid_3564&pid_fefb&mi_00#6&9129b0&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
16:14:25.714: resolution: 1920x1080
16:14:25.714: flip: 0
16:14:25.714: fps: 60.00 (interval: 166666)
16:14:25.714: format: MJPEG
16:14:25.714: buffering: disabled
16:14:25.714: hardware decode: disabled

Your plugins look to be the latest, think I checked them all. But, I'm not sure about StreamFX, last version I can find on this forum looks older than what's installed. Has it been updated for OBS v31?
 

noizeproxy

Member
More actions, more leaks. Plugins are generally the cause of them.

Your Cam Link & Elgato are using NV12, these are set to MJPEG.

16:14:25.624: [DShow Device: 'OVERHEAD'] settings updated:
16:14:25.624: video device: Logitech StreamCam
16:14:25.624: video path: \\?\usb#vid_046d&pid_0893&mi_00#6&11f04fd1&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
16:14:25.624: resolution: 1920x1080
16:14:25.624: flip: 0
16:14:25.624: fps: 60.00 (interval: 166666)
16:14:25.624: format: MJPEG
16:14:25.624: buffering: disabled
16:14:25.624: hardware decode: disabled
16:14:25.627: DShow: Elgato UVC device (PID = 0x008A) tonemapper enable=1
16:14:25.628: DShow: Elgato UVC device (PID = 0x008A) tonemapper enable=1
16:14:25.650: DShow: Elgato UVC device (PID = 0x008A) tonemapper enable=1
16:14:25.682: ---------------------------------
16:14:25.682: [DShow Device: 'WINDOW'] settings updated:

16:14:25.682: video device: OBSBOT Meet 2 StreamCamera
16:14:25.682: video path: \\?\usb#vid_3564&pid_fefb&mi_00#8&8ae8d00&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
16:14:25.682: resolution: 1920x1080
16:14:25.682: flip: 0
16:14:25.682: fps: 60.00 (interval: 166666)
16:14:25.682: format: MJPEG
16:14:25.682: buffering: disabled
16:14:25.682: hardware decode: disabled
16:14:25.712: DShow: Elgato UVC device (PID = 0x008A) tonemapper enable=1
16:14:25.714: ---------------------------------
16:14:25.714: [DShow Device: 'SHELF'] settings updated:

16:14:25.714: video device: OBSBOT Meet 2 StreamCamera
16:14:25.714: video path: \\?\usb#vid_3564&pid_fefb&mi_00#6&9129b0&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
16:14:25.714: resolution: 1920x1080
16:14:25.714: flip: 0
16:14:25.714: fps: 60.00 (interval: 166666)
16:14:25.714: format: MJPEG
16:14:25.714: buffering: disabled
16:14:25.714: hardware decode: disabled

Your plugins look to be the latest, think I checked them all. But, I'm not sure about StreamFX, last version I can find on this forum looks older than what's installed. Has it been updated for OBS v31?
okay, so i should switch my cameras to NV12? And yeah, StreamFX is up to date. The two plugins I use the most are Move and Shaderfilter. Composite Blur for my BRB, but it doesn't cause me any issues
 

noizeproxy

Member
Update: I installed ImDisk and created a drive for my OBS media. We'll see how this goes. Not 100% sure I did the right stuff, but I'm streaming tonight, so I'll let you know how it goes.
 

noizeproxy

Member
Well... it's not OBS 31. Duplicated my portable and tried rolling back to my previous version, same thing happens. Also, definitely not the file size of the media, because I tried a 1.3 GB vid and it performed the same basically. RAMDisk hasn't help either, at least with this issue... still getting memory leaks and still getting that EOI error
 

rockbottom

Active Member
It's most likely something in your current Profile.

I'm betting if you test using a New Scene Collection with just (1) Scene/Source the rendering lag will go away along with the encoding lag.
16:17:06.221: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 13 (0.2%)
16:17:06.221: ==== Recording Stop ================================================
16:17:06.222: Video stopped, number of skipped frames due to encoding lag: 13/5921 (0.2%)

Even if some encoding lag remained, just use the recommended Preset P5 instead of P7.
 

rockbottom

Active Member
This thread may help with the EOI warnings. Try setting the device @ 30FPS.

 
Top