OBS 0.52.08 aquaman build - quicksync & capture improvements

Status
Not open for further replies.

Bensam123

Member
Re: OBS 0.52.05 toast build - quicksync

Make sure you have the most recent drivers, which (for AMD at least) include the latest version of OpenCL support.

GPUZ will tell you if your hardware supports it though.
 

ExitSign

Member
Re: OBS 0.52.05 toast build - quicksync

Hey there,

opencl is not working for me, although my discrete gpu (NVidia GTX 560 Ti) supports it (according to GPU-Z)

Here is the log:

16:36:17: Open Broadcaster Software v0.52.05b powdered toast build - 64bit ( ^ω^)
16:36:17: -------------------------------
16:36:17: CPU Name: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
16:36:17: CPU Speed: 3400MHz
16:36:17: Physical Memory: 16281MB Total, 10051MB Free
16:36:17: stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
16:36:17: monitor 1: pos={0, 0}, size={1920, 1080}
16:36:17: monitor 2: pos={1920, 0}, size={1920, 1080}
16:36:17: monitor 3: pos={3840, 0}, size={1920, 1080}
16:36:17: Windows Version: 6.1 Build 7601 S
16:36:17: Aero is Disabled
16:36:17: -------------------------------
16:36:17: OBS Modules:
16:36:17: Base Address Module
16:36:17: 000000003F320000 OBS.exe
16:36:17: 00000000E76D0000 OBSApi.dll
16:36:17: 00000000EBC30000 DShowPlugin.dll
16:36:17: 00000000EC1A0000 GraphicsCapture.dll
16:36:17: 00000000FA3F0000 NoiseGate.dll
16:36:17: 00000000ED820000 scenesw.dll
16:36:17: ------------------------------------------
16:36:17: Adapter 1
16:36:17: Video Adapter: NVIDIA GeForce GTX 560 Ti
16:36:17: Video Adapter Dedicated Video Memory: 1025966080
16:36:17: Video Adapter Shared System Memory: 3220779008
16:36:17: ------------------------------------------
16:36:17: Adapter 2
16:36:17: Video Adapter: Intel(R) HD Graphics 3000
16:36:17: Video Adapter Dedicated Video Memory: 67108864
16:36:17: Video Adapter Shared System Memory: 1711276032
16:36:17: Using automatic low latency mode
16:36:17: =====Stream Start: 2013-06-04, 16:36:17===============================================
16:36:17: Multithreaded optimizations: On
16:36:17: Base resolution: 1920x1080
16:36:17: Output resolution: 1920x1080
16:36:17: ------------------------------------------
16:36:17: Loading up D3D10...
16:36:17: Playback device {0.0.0.00000000}.{8ec28be8-4d7e-4ea0-906b-1833de2dde50}
16:36:17: ------------------------------------------
16:36:17: Using desktop audio input: Speakers (Sennheiser 3D G4ME1)
16:36:17: Using 5.1 speaker setup
16:36:17: ------------------------------------------
16:36:17: Using auxilary audio input: Microphone (Sennheiser 3D G4ME1)
16:36:17: ------------------------------------------
16:36:17: Audio Encoding: AAC
16:36:17: bitrate: 128
16:36:17: Using graphics capture
16:36:17: Using custom x264 settings: "opencl=true 8x8dct=1 aq-mode=2 b-adapt=2 bframes=1 chroma-qp-offset=2 colormatrix=smpte170m deblock=0:0 direct=auto ipratio=1.41 keyint=240 level=3.1 me=umh merange=16 min-keyint=auto mixed-refs=1 no-mbtree=0 partitions=all profile=high psy-rd=0.5:0.0 qcomp=0.6 qpmax=51 qpmin=10 qpstep=4 ratetol=10 rc-lookahead=30 ref=1 scenecut=40 subme=8 threads=0 trellis=2 weightb=1 weightp=2"
16:36:17: The custom x264 command 'min-keyint=auto' failed
16:36:17: x264: frame MB size (120x68) > level limit (3600)
16:36:17: x264: MB rate (244800) > level limit (108000)
16:36:19: ------------------------------------------
16:36:19: Video Encoding: x264
16:36:19: fps: 30
16:36:19: width: 1920, height: 1080
16:36:19: preset: veryfast
16:36:19: CBR: yes
16:36:19: CFR: no
16:36:19: max bitrate: 4000
16:36:19: ------------------------------------------
16:36:19: SharedTexCapture hooked
16:36:21: x264: clEnqueueNDRangeKernel error '-4'
16:36:21: x264: OpenCL: CL_MEM_OBJECT_ALLOCATION_FAILURE error executing CL_COMMAND_NDRANGE_KERNEL on GeForce GTX 560 Ti (Device 0).
16:36:21:
16:36:21: x264: OpenCL: fatal error, aborting encode
Warning -- x264 encode failed
Warning -- x264 encode failed
Warning -- x264 encode failed
Warning -- x264 encode failed
Warning -- x264 encode failed
Warning -- x264 encode failed
Warning -- x264 encode failed
Warning -- x264 encode failed
Warning -- x264 encode failed
 

Invi

New Member
Re: OBS 0.52.05 toast build - quicksync

What driver version are you using? I just had to update my nvidia drivers to get opencl working on my 660ti
 

ExitSign

Member
Re: OBS 0.52.05 toast build - quicksync

Invi said:
What driver version are you using? I just had to update my nvidia drivers to get opencl working on my 660ti

Latest (320.18).

I removed all custom x264 settings I had. Leaving only opencl=true

It worked, but crashes after a few minutes on nvopencl.dll (from nVidia).

I guess opencl is indeed rather unstable for now.
 

Invi

New Member
Re: OBS 0.52.05 toast build - quicksync

I don't know if its something to do with opencl or what, but the quality of my stream seems to of dropped off quite a bit using the same settings :(
 

Geoning

Member
Re: OBS 0.52.05 toast build - quicksync

I think that DarkShikari made a fault in new version x264 and we must wait for fix.
 

matagyula

New Member
Re: OBS 0.52.05 toast build - quicksync

Updated my GPU drivers, but I can't tell wether it is working or not :) The streaming works, no errors show up in the log either.

18:56:19: Loading up D3D10...
18:56:20: Playback device Default
18:56:20: ------------------------------------------
18:56:20: Using desktop audio input: Speakers (4- Creative SB Audigy 2 (WDM))
18:56:20: Using 5.1 speaker setup
18:56:20: ------------------------------------------
18:56:20: Audio Encoding: AAC
18:56:20: bitrate: 112
18:56:20: Using graphics capture
18:56:20: Using custom x264 settings: "opencl=true"
18:56:20: ------------------------------------------
18:56:20: Video Encoding: x264
18:56:20: fps: 30
18:56:20: width: 960, height: 600
18:56:20: preset: fast
18:56:20: CBR: no
18:56:20: CFR: no
18:56:20: max bitrate: 1800
18:56:20: buffer size: 1800
18:56:20: quality: 7
18:56:20: ------------------------------------------
18:56:20: SharedTexCapture hooked
18:56:22: Using RTMP service: Twitch / Justin.tv
18:56:22: Server selection: rtmp://live-ams.justin.tv/app
18:56:24: SO_SNDBUF was at 8192
18:56:24: SO_SNDBUF is now 65536
19:01:57: Total frames rendered: 10040, number of frames that lagged: 39 (0.39%) (it's okay for some frames to lag)
19:01:58: RTMPPublisher::SocketLoop: Aborting due to loop exit
19:01:58: librtmp error: WriteN, RTMP send error 10035 (56 bytes)
19:01:58: librtmp error: WriteN, RTMP send error 10038 (42 bytes)
19:01:58: Number of times waited to send: 69, Waited for a total of 222969 bytes
19:01:58: Number of b-frames dropped: 857 (8.7%), Number of p-frames dropped: 1116 (11%), Total 1973 (20%)
19:01:58: =====Stream End: 2013-06-04, 19:01:58=================================================
19:02:08:
19:02:08: Profiler results:
19:02:08:
19:02:08: ==============================================================
19:02:08: frame - [100%] [avg time: 3.678 ms (cpu time: avg 1.387 ms, total 14773.3 ms)] [avg calls per frame: 1] [children: 38.5%] [unaccounted: 61.5%]
19:02:08: | scene->Preprocess - [6.28%] [avg time: 0.231 ms (cpu time: avg 0.231 ms, total 2464.82 ms)] [avg calls per frame: 1]
19:02:08: | video encoding and uploading - [32.2%] [avg time: 1.186 ms (cpu time: avg 0.719 ms, total 7659.64 ms)] [avg calls per frame: 1] [children: 31.1%] [unaccounted: 1.11%]
19:02:08: | | CopyResource - [0.353%] [avg time: 0.013 ms (cpu time: avg 0.008 ms, total 93.601 ms)] [avg calls per frame: 0]
19:02:08: | | conversion to 4:2:0 - [0.19%] [avg time: 0.007 ms (cpu time: avg 0.002 ms, total 31.2 ms)] [avg calls per frame: 0]
19:02:08: | | call to encoder - [29.9%] [avg time: 1.101 ms (cpu time: avg 0.684 ms, total 7285.24 ms)] [avg calls per frame: 0]
19:02:08: | | sending stuff out - [0.653%] [avg time: 0.024 ms (cpu time: avg 0.013 ms, total 140.401 ms)] [avg calls per frame: 0]
19:02:08: | Convert444Threads - [1.75e+003%] [avg time: 64.2 ms (cpu time: avg 0.756 ms, total 8049.65 ms)] [avg calls per frame: 1]
19:02:08: ==============================================================

The huge frame-drop is internet connection related :o

Can I assume that the custom x264 setting "opencl=true" is working if it produces no errors in the log? In what way exactly does OpenCL contribute to x264 encoding? (Only the lookahead function is being offloaded to the GPU?) How much of a rough performance improvement can we expect from this (if any)?

Edit: The huge frame drop might not be network related afterall :/ after some streaming the encoding FPS just drops to zero, frame-drop increases, while in-game the performance stays the same, also the CPU and GPU utilization, so as some have already suggested, something might be borken ^^
 

matagyula

New Member
Re: OBS 0.52.05 toast build - quicksync

Yup, I have Virtu installed, a secondary monitor connected to the iGPU, and QS working in OBS :] Any questions? :D
 

gmontanola

New Member
Re: OBS 0.52.05 toast build - quicksync

matagyula said:
Yup, I have Virtu installed, a secondary monitor connected to the iGPU, and QS working in OBS :] Any questions? :D

haha I'll have some as soon as I try to replicate your configuration. I'm working ATM, so guess I'll bother you soon.
 

matagyula

New Member
Re: OBS 0.52.05 toast build - quicksync

It's not that hard BTW, this thread is full of help. My only problem was that my drivers for the iGPU were old, an update solved my issue - no need to add OBS in any way to the Virtu Applications list.
 

Geoning

Member
Re: OBS 0.52.05 toast build - quicksync

matagyula said:
Updated my GPU drivers, but I can't tell wether it is working or not :) The streaming works, no errors show up in the log either.

18:56:19: Loading up D3D10...
18:56:20: Playback device Default
18:56:20: ------------------------------------------
18:56:20: Using desktop audio input: Speakers (4- Creative SB Audigy 2 (WDM))
18:56:20: Using 5.1 speaker setup
18:56:20: ------------------------------------------
18:56:20: Audio Encoding: AAC
18:56:20: bitrate: 112
18:56:20: Using graphics capture
18:56:20: Using custom x264 settings: "opencl=true"
18:56:20: ------------------------------------------
18:56:20: Video Encoding: x264
18:56:20: fps: 30
18:56:20: width: 960, height: 600
18:56:20: preset: fast
18:56:20: CBR: no
18:56:20: CFR: no
18:56:20: max bitrate: 1800
18:56:20: buffer size: 1800
18:56:20: quality: 7
18:56:20: ------------------------------------------
18:56:20: SharedTexCapture hooked
18:56:22: Using RTMP service: Twitch / Justin.tv
18:56:22: Server selection: rtmp://live-ams.justin.tv/app
18:56:24: SO_SNDBUF was at 8192
18:56:24: SO_SNDBUF is now 65536
19:01:57: Total frames rendered: 10040, number of frames that lagged: 39 (0.39%) (it's okay for some frames to lag)
19:01:58: RTMPPublisher::SocketLoop: Aborting due to loop exit
19:01:58: librtmp error: WriteN, RTMP send error 10035 (56 bytes)
19:01:58: librtmp error: WriteN, RTMP send error 10038 (42 bytes)
19:01:58: Number of times waited to send: 69, Waited for a total of 222969 bytes
19:01:58: Number of b-frames dropped: 857 (8.7%), Number of p-frames dropped: 1116 (11%), Total 1973 (20%)
19:01:58: =====Stream End: 2013-06-04, 19:01:58=================================================
19:02:08:
19:02:08: Profiler results:
19:02:08:
19:02:08: ==============================================================
19:02:08: frame - [100%] [avg time: 3.678 ms (cpu time: avg 1.387 ms, total 14773.3 ms)] [avg calls per frame: 1] [children: 38.5%] [unaccounted: 61.5%]
19:02:08: | scene->Preprocess - [6.28%] [avg time: 0.231 ms (cpu time: avg 0.231 ms, total 2464.82 ms)] [avg calls per frame: 1]
19:02:08: | video encoding and uploading - [32.2%] [avg time: 1.186 ms (cpu time: avg 0.719 ms, total 7659.64 ms)] [avg calls per frame: 1] [children: 31.1%] [unaccounted: 1.11%]
19:02:08: | | CopyResource - [0.353%] [avg time: 0.013 ms (cpu time: avg 0.008 ms, total 93.601 ms)] [avg calls per frame: 0]
19:02:08: | | conversion to 4:2:0 - [0.19%] [avg time: 0.007 ms (cpu time: avg 0.002 ms, total 31.2 ms)] [avg calls per frame: 0]
19:02:08: | | call to encoder - [29.9%] [avg time: 1.101 ms (cpu time: avg 0.684 ms, total 7285.24 ms)] [avg calls per frame: 0]
19:02:08: | | sending stuff out - [0.653%] [avg time: 0.024 ms (cpu time: avg 0.013 ms, total 140.401 ms)] [avg calls per frame: 0]
19:02:08: | Convert444Threads - [1.75e+003%] [avg time: 64.2 ms (cpu time: avg 0.756 ms, total 8049.65 ms)] [avg calls per frame: 1]
19:02:08: ==============================================================

The huge frame-drop is internet connection related :o

Can I assume that the custom x264 setting "opencl=true" is working if it produces no errors in the log? In what way exactly does OpenCL contribute to x264 encoding? (Only the lookahead function is being offloaded to the GPU?) How much of a rough performance improvement can we expect from this (if any)?

Edit: The huge frame drop might not be network related afterall :/ after some streaming the encoding FPS just drops to zero, frame-drop increases, while in-game the performance stays the same, also the CPU and GPU utilization, so as some have already suggested, something might be borken ^^
Do you have Radeon right?
I see that problem is with Geforce....
 

gmontanola

New Member
Re: OBS 0.52.05 toast build - quicksync

matagyula said:
It's not that hard BTW, this thread is full of help. My only problem was that my drivers for the iGPU were old, an update solved my issue - no need to add OBS in any way to the Virtu Applications list.

Are you using good ol' Virtu or the MVP 2.0 one?
 

matagyula

New Member
Re: OBS 0.52.05 toast build - quicksync

@Geoing - Yes, I have a HD6870, and the latest WHQL drivers for it (was tempted to go for the latest beta drivers, but I'm playing it safe for now). I'll be messing around with OpenCL some more probably, however I'm still not 100% sure wether it is working or not ^^ (I see a ~10% increase in GPU utilization, that could be it ...)
@gmontanola - Using version 1.2.114.21767 :D My mobo does not support newer versions, so I'm stuck with this - it is better than nothing tho :)
 

Geoning

Member
Re: OBS 0.52.05 toast build - quicksync

DarkShikari fault and didnt check OpenCL on Geforce and Intel. :D

I hope that Jim will report this problem and DarkShikari will fix it. :c
 

philosoaper

New Member
Re: OBS 0.52.05 toast build - quicksync

I don't get this OpenCL thing, I added the "opencl=true" in the custom x264 encoder settings and hit the checkbox next to it to enable it but when I do and hit start stream nothing shows up on twitch.. it remains in "offline" mode.. if I just uncheck that use custom checkbox and hit stream, it comes online in seconds.. what up with that?


in the log I get

16:10:02: x264: clEnqueueNDRangeKernel error '-4'
16:10:02: x264: OpenCL: CL_MEM_OBJECT_ALLOCATION_FAILURE error executing CL_COMMAND_NDRANGE_KERNEL on GeForce GTX 560 Ti (Device 0).
16:10:02:
16:10:02: x264: OpenCL: fatal error, aborting encode
Warning -- x264 encode failed

soo.. guess it ain't actually working even tho it appears in the preview window as if it does..
 

Geoning

Member
Re: OBS 0.52.05 toast build - quicksync

philosoaper said:
I don't get this OpenCL thing, I added the "opencl=true" in the custom x264 encoder settings and hit the checkbox next to it to enable it but when I do and hit start stream nothing shows up on twitch.. it remains in "offline" mode.. if I just uncheck that use custom checkbox and hit stream, it comes online in seconds.. what up with that?


in the log I get

16:10:02: x264: clEnqueueNDRangeKernel error '-4'
16:10:02: x264: OpenCL: CL_MEM_OBJECT_ALLOCATION_FAILURE error executing CL_COMMAND_NDRANGE_KERNEL on GeForce GTX 560 Ti (Device 0).
16:10:02:
16:10:02: x264: OpenCL: fatal error, aborting encode
Warning -- x264 encode failed

soo.. guess it ain't actually working even tho it appears in the preview window as if it does..
OpenCL DOESN'T WORK with Geforce's... Read my posts up. :D
 

gmontanola

New Member
Re: OBS 0.52.05 toast build - quicksync

Can we have CUDA? haha

I would throw my wallet on the screen if we could get this ;/
 

DEagleson

New Member
Re: OBS 0.52.05 toast build - quicksync

OpenCL seems to work just fine on my GTX 680m since im getting a video file from it, but i'l upload a log file the next time i do a proper stream.
 
Status
Not open for further replies.
Top