OBS branch with AMD VCE support.

jackun

Developer
Tried the x64 build of that DLL and still no good

http://pastebin.com/yKZUCpFs
Weird. For comparison my R9 290 , FX 8320, 8GB 1866MHz. One thing is that R9 has these dual DMA engines, though.
14:53:11: Adapter 1
14:53:11: Video Adapter: AMD Radeon R9 200 Series
14:53:11: Video Adapter Dedicated Video Memory: 3221225472
14:53:11: Video Adapter Shared System Memory: 1073676288
14:53:11: Video Adapter Output 1: pos={0, 0}, size={1680, 1050}, attached=true
14:53:11: =====Stream Start: 2014-06-27, 14:53:11===============================================
14:53:11: Multithreaded optimizations: On
14:53:11: Base resolution: 1920x1080
14:53:11: Output resolution: 1920x1080
14:53:11: ------------------------------------------
14:53:11: Loading up D3D10 on AMD Radeon R9 200 Series (Adapter 1)...
14:53:11: ------------------------------------------
14:53:11: Audio Format: 48000 Hz
14:53:11: ------------------------------------------
14:53:11: Audio Channels: 2 Ch
14:53:11: Playback device Default
14:53:11: ------------------------------------------
14:53:11: Using desktop audio input: Speakers (2- High Definition Audio Device)
14:53:11: Global Audio time adjust: 0
14:53:11: ------------------------------------------
14:53:11: Audio Encoding: AAC
14:53:11: bitrate: 128
14:53:11: Using graphics capture
14:53:11: Scene buffering time set to 100
14:53:11: Successfully loaded ObsVCE.dll
14:53:11: ObsVCE initialized successfully
14:53:13: Seems to have support for AMD VCE.
14:53:13: Using YUV444
14:53:13: Quality: 8 => QP 20
14:53:13: Rate control method: 0
14:53:14: Active bitrate: 3000000
14:53:14: Active peak bitrate: 3000000
14:53:14: Active control method: 0
14:53:14: Active VBV buffer: 15000000
14:53:14: Active QP for I/P/B: 20/20/20
14:53:18: Trying to hook process: pCARS.exe
14:53:18: SharedTexCapture hooked
15:07:52: Exit signal received, terminating capture
15:07:55: Total frames encoded: 52858, total frames duplicated: 6132 (11.60%)
15:07:55: Number of frames skipped due to encoder lag: 132 (0.25%) (could be alt+tabbing)
15:07:55: Total frames rendered: 52735, number of late frames: 11 (0.02%) (it's okay for some frames to be late)
15:07:55:
15:07:55: Profiler time results:
15:07:55:
15:07:55: ==============================================================
15:07:55: video thread frame - [100%] [avg time: 2.208 ms] [children: 79%] [unaccounted: 21%]
15:07:55: | scene->Preprocess - [0.136%] [avg time: 0.003 ms]
15:07:55: | GPU download and conversion - [78.9%] [avg time: 1.742 ms] [children: 4.21%] [unaccounted: 74.7%]
15:07:55: | | flush - [4.03%] [avg time: 0.089 ms]
15:07:55: | | CopyResource - [0.181%] [avg time: 0.004 ms]
15:07:55: encoder thread frame - [100%] [avg time: 13.02 ms] [children: 99.4%] [unaccounted: 0.637%]
15:07:55: | VCE encode - [99%] [avg time: 12.888 ms] [children: 98.8%] [unaccounted: 0.23%]
15:07:55: | | Unmap buffer - [0.445%] [avg time: 0.058 ms]
15:07:55: | | YUV444 conversion - [6.76%] [avg time: 0.88 ms]
15:07:55: | | Queue encode task - [0.0691%] [avg time: 0.009 ms]
15:07:55: | | Wait for task(s) - [87%] [avg time: 11.326 ms]
15:07:55: | | Query task(s) - [0.376%] [avg time: 0.049 ms]
15:07:55: | | Get bitstream - [3.61%] [avg time: 0.47 ms] [children: 0.284%] [unaccounted: 3.33%]
15:07:55: | | | Parse bitstream - [0.284%] [avg time: 0.037 ms]
15:07:55: | | Remap buffer - [0.507%] [avg time: 0.066 ms]
15:07:55: | sending stuff out - [0.376%] [avg time: 0.049 ms]
15:07:55: ==============================================================
 
Last edited:

Wilvoeka

New Member
When I try to use this i get a warning about MSVCP120.dll not being found. I checked and I do have this .dll anyone else having this issue?

Edit. it does this when I click on the Encoding setting.
 
Last edited:
Set my ram reference clock back to 1333, kept my CPU overclock nearly the same, threw some extra voltage into the MCH because of the 390MHz FSB overclock, did a little stability testing which seemed to work out, then tried to record again. Also just barely noticed OBS can automatically upload the log

Here's the log
https://gist.github.com/anonymous/1839a7f17ead226e8658


For comparison, here's a log using x264 with --ultrafast and --opencl which is my standard settings
https://gist.github.com/anonymous/1cb8c4b88f5bc01227f0

And just to try it, here is a log where instead of using game capture, I used window capture
https://gist.github.com/anonymous/339a73da0660d8e743c9
 
Last edited:

n00pe

New Member
Everything worked just fine using the latest drivers from AMD until today. I've reinstalled my entire computer earlier and for some reason I can't get this thing to work anymore.

"Encoder initialization failed!" error message won't go away :(.
 

Mooed

New Member
Well, not sure how I missed this fork :( Spent weeks trying to get Quick Sync to match up to my non blocky standards.

Anyone got a 1080p 20-30FPS template for excellent quality local Arma 3 recording? (R9 290)
 

Batou

New Member
Hello,
Should I use Open CL, VCEMT or both? I have a R9 290X.

GzFQOkx.png
 

jackun

Developer
Updated OBS to v0.625b. Also removed a 'hack' to prevent OBS from hanging when stopping streaming. Seemed to work while streaming to local nginx server. If it still hangs then i'll add this permanent temporary hack back :P
 

Fawkes

Member
hey guys i see some of you have problems but jackun has helped me out a bit and it works fine for me now.
here are my settings, note that i run a Q6600 @ 3.4Ghz and a 7850 with a little overclock. also i put OBS on 2 cores and the game on all 4 cores.
and here is how my video stream looks like https://www.youtube.com/playlist?list=PLbjri73c_pnYdtxQad-tY8XiV8JDfuQfW
and on twitch itself http://www.twitch.tv/truefawkes/profile
so... try that maybe?
if there is anything to make it even better please let me know
Capture.PNG Capture2.PNG Capture3.PNG Capture4.PNG Capture5.PNG
 

Fawkes

Member
Updated OBS to v0.625b. Also removed a 'hack' to prevent OBS from hanging when stopping streaming. Seemed to work while streaming to local nginx server. If it still hangs then i'll add this permanent temporary hack back :P
can we just update via obs or do we need to download the new version?
also do we keep our settings?
 

Fawkes

Member
@jackun CHECK THIS!!! i just got this e-mail from raptr

Our new Game DVR feature
brings continuous recording
to AMD gamers

Welcome truefawkes!





If you've already heard about the Game DVR beta, apologies in advance -- but we're kind of excited about this and want to make sure everybody knows. We've added the most requested feature to AMD Gaming Evolved: continuous gameplay recording so you never miss a highlight, as well as manual start/stop recording!

Our gameplay capture takes advantage of hardware-accelerated encoding via AMD's Video Codec Engine (VCE), which means you'll see virtually no performance impact while recording. Based on independent benchmarking performed by AnandTech.com, the difference in frames-per-second with Game DVR on versus off was "consistently less than 3%."

Our redesigned client UI makes it super easy to set up, too. From the Home tab in the client Control Center, simply click Record to turn on Game DVR. With our Replay capability, we automatically capture your last 15 seconds of gameplay time (by default -- you can bump that all the way up to 10 minutes), then save a clip when you hit Ctrl + /. And with Record, use Ctrl + ; to start and stop gameplay capture at any time. You can then use the Gallery to upload clips directly to YouTube.

Restart your AMD Gaming Evolved client to update to the latest version, or new users can download it here.


interesting huh?
 

akeera

New Member
Cant get DVR to work with almost all steam games. :(

Is there anyway to stop OBS VCE from spiking to 20k+ bitrate during games (coming in / out of menus) when CBR is set to 3.5k

Thanks for any help.
 

jackun

Developer
Cant get DVR to work with almost all steam games. :(

Is there anyway to stop OBS VCE from spiking to 20k+ bitrate during games (coming in / out of menus) when CBR is set to 3.5k

Thanks for any help.
I'm no codec expert but at this point I'd say it is 'normal', in that OVE API doesn't seem to respect the set VBV buffer size and always sets it to its own values. As i get it, low motion is encoded at lower bitrate so VBV buffer isn't getting much new data (right?) and old data is sent off/ eaten by decoder. Then when encoding higher motion scene, buffer is pretty much empty, encoder fills it with higher bitrate frames and then levels off to previously set bitrate (right?) Anyway CBR probably acts too much like VBR though.
 

mournblade77

New Member
Hi, I've been messing around with this for the past couple of days and the performance is nice. But the latest build overwrites your scenes when being launched. I set it to it's own scene profile and that has fixed the issue, but I had to re-setup all my scenes a couple of times until I figured it out.

Thanks for the great work and keep it up!
 

jackun

Developer
Uh oops, vanilla OBS doesn't have Scene Collections yet. Vanilla creates scene in %appdata%\OBS\<scene name>.xconfig, but Scene Collections version imports the xconfig, deletes it and saves it to sceneCollection folder.
 
Top