Bug Report RAM usage problem when streaming.

Velediron

New Member
So I recently took on using OBS instead of Xsplit both because of the praise I've heard and because it seems to work like a charm on my not-that-high end PC, managing to squeeze out awesome quality with barely any effect on FPS when gaming. However, there's a problem I have when streaming. The OBS.exe starts suddenly using a lot of ram, going from 250-300mb to up to 1.30Gb every five seconds or so. The ram just builds up and resets down to 300Mb before beginning the cycle anew. There is no delay between these cycles.

This is troublesome because I'm limited to only having 4Gb of RAM and when gaming, a streaming software that uses more than a quarter of what is available (not to mention windows and other programs already using something like 2Gb) it becomes troublesome to maintain fluid gaming.

I tried searching around for several issues but found no topics about this. Any help would be appreciated. Thanks in advance!
 

Velediron

New Member
Open Broadcaster Software v0.466a - 32bit (´・ω・`)
-------------------------------
CPU Name: AMD Phenom(tm) II X4 965 Processor
CPU Speed: 3398MHz
Physical Memory: 2047MB Total, 1525MB Free
stepping id: 3, model 4, family 15, type 0, extmodel 8, extfamily 0, HTT 1, logical cores 4, total cores 4
Windows Version: 6.0 Build 6002 S
Aero is Disabled
------------------------------------------
Adapter 1
Video Adapter: ATI Radeon HD 5670
Video Adapter Dedicated Video Memory: 1064939520
Video Adapter Shared System Memory: 1341747200
=====Stream Start=====================================================================
Multithreaded optimizations: On
Base resolution: 1600x900
Output resolution: 1600x900
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Mikrofoni (2- USB PnP Sound Device)
------------------------------------------
Audio Encoding: MP3
bitrate: 128
------------------------------------------
Video Encoding: x264
fps: 30
width: 1600, height: 900
preset: veryfast
CBR: no
max bitrate: 1000
buffer size: 1000
quality: 8
------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Warning -- DShowPlugin: Could not get device video pin
Warning -- D3D10Texture::CreateTexture: CreateTexture2D failed, result = 0x80070057
Using directshow input
Using Monitor Capture
Total frames rendered: 5532, number of frames that lagged: 23 (0.42%) (it's okay for some frames to lag)
=====Stream End=======================================================================
=====Stream Start=====================================================================
Multithreaded optimizations: On
Base resolution: 1600x900
Output resolution: 1600x900
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Mikrofoni (2- USB PnP Sound Device)
------------------------------------------
Audio Encoding: MP3
bitrate: 128
Using Monitor Capture
------------------------------------------
Video Encoding: x264
fps: 30
width: 1600, height: 900
preset: veryfast
CBR: no
max bitrate: 1000
buffer size: 1000
quality: 8
------------------------------------------
Total frames rendered: 110, number of frames that lagged: 4 (3.64%) (it's okay for some frames to lag)
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
=====Stream End=======================================================================
=====Stream Start=====================================================================
Multithreaded optimizations: On
Base resolution: 1600x900
Output resolution: 1600x900
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Mikrofoni (2- USB PnP Sound Device)
------------------------------------------
Audio Encoding: MP3
bitrate: 128
Using Monitor Capture
------------------------------------------
Video Encoding: x264
fps: 30
width: 1600, height: 900
preset: veryfast
CBR: no
max bitrate: 1000
buffer size: 1000
quality: 8
------------------------------------------
Using RTMP service: Own3D.tv
Server selection: rtmp://live.eu.own3d.tv/live
bufferTime: 1401, outputRateWindowTime: 1000, dropThreshold: 1901
Warning -- Capture BitBlt failed.. just so you know
Total frames rendered: 89101, number of frames that lagged: 1077 (1.21%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of b-frames dropped: 118 (0.058%), Number of p-frames dropped: 118 (0.058%), Total 236 (0.12%)
=====Stream End=======================================================================
=====Stream Start=====================================================================
Multithreaded optimizations: On
Base resolution: 1600x900
Output resolution: 1600x900
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Mikrofoni (2- USB PnP Sound Device)
------------------------------------------
Audio Encoding: MP3
bitrate: 128
Using Monitor Capture
------------------------------------------
Video Encoding: x264
fps: 30
width: 1600, height: 900
preset: veryfast
CBR: no
max bitrate: 1000
buffer size: 1000
quality: 8
------------------------------------------
Using RTMP service: Own3D.tv
Server selection: rtmp://live.eu.own3d.tv/live
bufferTime: 1491, outputRateWindowTime: 1000, dropThreshold: 1991
RTMPPublisher::BufferedSend: Buffer is full (144341 / 144384 bytes), waiting to send 423 bytes
RTMPPublisher::BufferedSend: Buffer is full (144341 / 144384 bytes), waiting to send 423 bytes
RTMPPublisher::BufferedSend: Buffer is full (144337 / 144384 bytes), waiting to send 427 bytes
Total frames rendered: 155633, number of frames that lagged: 3980 (2.56%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of b-frames dropped: 679 (0.19%), Number of p-frames dropped: 668 (0.18%), Total 1347 (0.37%)
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 21.058 ms] [avg calls per frame: 1] [children: 95.8%] [unaccounted: 4.17%]
| scene->Preprocess - [50.3%] [avg time: 10.592 ms] [avg calls per frame: 0]
| video encoding and uploading - [45.5%] [avg time: 9.588 ms] [avg calls per frame: 1] [children: 18.4%] [unaccounted: 27.2%]
| | CopyResource - [0.494%] [avg time: 0.104 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.038%] [avg time: 0.008 ms] [avg calls per frame: 0]
| | call to encoder - [17.7%] [avg time: 3.726 ms] [avg calls per frame: 0]
| | sending stuff out - [0.147%] [avg time: 0.031 ms] [avg calls per frame: 0]
==============================================================
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
I appreciate it. Does this only happen when the app is minimized, or does it always happen? I think this may be something to do with directx, but I don't quite know for sure. Windows vista as well? hmm.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
I knew it! ...I also have no idea why. Although then again I suppose I can theorize. Let's see.. When minimized, D3D10's Present is not getting called. Maybe then it decides to start buffering data/commands/etc because it thinks the scene is not complete. Another annoying thing is that this does not seem to happen on my computer. Why though, I have no idea. Complete theory, but it's the best I've got.

Perhaps I can call the Flush command.. would have to use you as a tester. You should come around chat some time for some testing, if I'm awake in there.
 

fokinsi

New Member
I have the same effect on my Vista and it makes the RAM jump up to 2GB. I've found out that when disabling the preview in OBS, the bug is always happening whether it's minimized or not. I think that having the Settings window open prevents it from ever becoming minimized (even if playing a fullscreen game) and seems to be a workaround.

It must be something about something being generated, but the flushing code at the end of the preview code not getting ran.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
This is kind of an ancient thread and this problem was actually solved a long time ago, and I haven't heard of the problem since. Honestly, I would highly recommend getting windows 7. Vista is not bad, but microsoft really threw it under the bus (then again they do that with all older versions of their software)
 
Top