OBS branch with AMD VCE support.

jackun

Developer
Whats weird is I thought DEM was made only for monitor capture; at least everything I read says it is.
Can't use DEM with OBS though because logo/text overlays etc. Fullscreened games stopped DEM sample app from recording for some reason.

@Ilyas did you stop recording manually or OBS got stuck and then you pressed Stop? Looks like OBS was waiting for free input buffer. Possible thread mutexing logic error :P Also killing output poller thread before buffer submitter, ugh.
 
Last edited:

Ilyas

New Member
was it a driver crash/reset or obs actually crashing?
If it was a driver crash, under-clock your card to stock GPU clock (some cards have a factory overclock).
Game freeze for few seconds, then OBS crash.
btw, your GOP needs to be 24 or 48 and your IDR needs to be 96. currently you have them both set to 120.
o.k ty, i fix them

@jackun
after game unfreeze, i alt-tabbing to desktop and seems to be OBS already got stuck
 

jackun

Developer
2014-11-27: [64bit] Update to 0.638b and massage threading.
NOTE: OBS's internals are using Dx11 instead in this build. See vanilla OBS threads if game capture etc. is not working.
 

dping

Active Member
2014-11-27: [64bit] Update to 0.638b and massage threading.
NOTE: OBS's internals are using Dx11 instead in this build. See vanilla OBS threads if game capture etc. is not working.

Host and DX9 crash OBS if "Do NOT use DX11 interop" is unchecked. its probably pretty self explanatory but wanted you to know

Also, issues with my game with DX11 enabled, black textures, characters, exc

http://www.twitch.tv/d2_ricci/b/593119928

can you upload recent changes to github?
 
Last edited:

yoshi542

New Member
Long time lurker, thanks to jackun for constantly updating all these builds. Tried out the latest OBS VCE 64bit uploaded on November 27th 2014. Ran it with my 7950 (GCN 1.0 card), and it runs fine for the most part. Only question I got is during one stream test on twitch, after 10minutes of it going for BF4, I did lose some frames, about 250 of them or 1.45% on 1080p@30fps. There any settings I can do to prevent dropped frames in the future? Used Game Capture as well for these test streams on BF4. This is my AMD VCE encoder settings:

zIXnv0n.jpg


http://www.twitch.tv/yoshi542/b/593169340 = stream VOD of the dropped frames

The following map, I streamed again and got 0 dropped frames.

http://www.twitch.tv/yoshi542/b/593173002 = no dropped frames, everything looks fine
 
Last edited:

jackun

Developer
2014-11-27 #2: [64bit] Fix uninited OpenCL (hopefully).

@dping uh late-night uploads...
Now only DX11 engine type uses OpenCL/DX11 interop. Even though Dx9 uses plain memory buffers like Host, it is faster and less laggy, weird.

@yoshi542 yeah, that's under investigation. High GPU usage affects AMF.
 

dping

Active Member
2014-11-27 #2: [64bit] Fix uninited OpenCL (hopefully).

@dping uh late-night uploads...
Now only DX11 engine type uses OpenCL/DX11 interop. Even though Dx9 uses plain memory buffers like Host, it is faster and less laggy, weird.

@yoshi542 yeah, that's under investigation. High GPU usage affects AMF.

ill try it tomorrow. Happy Turkey day everyone.
I was surprised as well about host ram working so good yet gpu ram not so much. Is there a way to use a hybrid if this? Gpu ram for reading nv12 and host ram to write after encoded?

@yoshi542, ipic period set to 0 or 1. Preferred 0. I don't know why people were trying to use other values
 

coolnow

New Member
Long time lurker here too (since this thread had 3 pages). I'm very impressed at the progress jackun has made. Thanks for your hard work on this build. I try every build you post and i have to say, the latest (threaded) version is impressive. I recorded Far Cry 4 at 720p60 on all high and it was buttery smooth most of the time.

My very short video for reference: http://youtu.be/r_wKL1o4bts

I check this thread every couple of days or so, i'm looking forward to the future builds!
 

dping

Active Member
Long time lurker here too (since this thread had 3 pages). I'm very impressed at the progress jackun has made. Thanks for your hard work on this build. I try every build you post and i have to say, the latest (threaded) version is impressive. I recorded Far Cry 4 at 720p60 on all high and it was buttery smooth most of the time.

My very short video for reference: http://youtu.be/r_wKL1o4bts

I check this thread every couple of days or so, i'm looking forward to the future builds!

really nice quality. Was that a local record? Might post your settings for reference, I.e.screenshot your vce settings and maybe a log
 

coolnow

New Member
really nice quality. Was that a local record? Might post your settings for reference, I.e.screenshot your vce settings and maybe a log

Thanks! Yeah, it was all local. It was recorded at bitrate of 25,000 with AMF, 720p (bilinear) at 60fps (game was playing at 1080p on all high and with vsync on). I put the file through Handbrake at 17 RF with x264 Tune "Film" and Profile "High".

Settings:

YHZOPZq.png



If you need any other info, let me know. Youtube is being kind to me by encoding in decent quality.

Log file: https://gist.github.com/anonymous/f2538fcdc42668d0106d

Also, i thought i'd point out that most of the stuttering in that clip seems to be the fault of the game because once you move a certain distance, it loads the map in such a way that it stutters every time. Apparently, someone found his SSD at 100% usage just running in the game (not even driving). I've applied an unofficial fix by editing the miploading in the config file and it runs MUCH better than before, but still stutters in some places as you see in the video. My actual GPU usage hovers around 60-70% with these settings at a stable 60fps, but once i record, i think it jumps straight to 99% (edit: just tested it again, it jumps to around 85%. Weird, i was sure it used to jump to 100% even on 1080p30 on old builds!).
 
Last edited:

sneaky4oe

Member
Long time lurker, thanks to jackun for constantly updating all these builds. Tried out the latest OBS VCE 64bit uploaded on November 27th 2014. Ran it with my 7950 (GCN 1.0 card), and it runs fine for the most part. Only question I got is during one stream test on twitch, after 10minutes of it going for BF4, I did lose some frames, about 250 of them or 1.45% on 1080p@30fps. There any settings I can do to prevent dropped frames in the future? Used Game Capture as well for these test streams on BF4. This is my AMD VCE encoder settings:

zIXnv0n.jpg


http://www.twitch.tv/yoshi542/b/593169340 = stream VOD of the dropped frames

The following map, I streamed again and got 0 dropped frames.

http://www.twitch.tv/yoshi542/b/593173002 = no dropped frames, everything looks fine

Whoa, those settings look really awesome! With my 6mbit stream setup it looks really cool. I'll need to check them out with longer sessions though.
https://drive.google.com/file/d/0Bz6nA_MiY6AWRWVTckJtbXRwV0k/view?usp=sharing
But with CS: GO and, with TRIBES: ASCEND (which is extremely dynamic game) it looks awesome at 6mbit/s.
 

dping

Active Member
BTW. I found this hidden in some of the Media SDK 1.1 beta files

Code:
    // Bitrate and peak bitrate.
    // Max value depends on resolution and frame rate:
    //   - 10 MBits/sec for 720p and frame rate less than or equal to 30 FPS
    //   - 20 MBits/sec for 720p and frame rate less than or equal to 60 FPS
    //   - 20 MBits/sec for 1080p and frame rate less than or equal to 30 FPS
    //   - 50 MBits/sec for 1080p and frame rate less than or equal to 60 FPS

Hopes this helps some of you not go to far over this bitrate since the remainder will just be excess bitrate that wont be used for increasing quality
 

yoshi542

New Member
Thanks to dping for the recommendations in settings.

I did try a little streaming of D3 RoS PTR earlier tonight in 1080p@30fps and 720p@60fps on twitch and they were fine. But it's basically impossible to do a 1080p@60fps for various reasons to actually stream(I wouldn't recommend it unless you're a twitch partner and got enough upload speed and a good enough system to support it obviously). Local Recording can be doable, but it seems I have to AMD AMF preset to Speed, and max bitrate under 20000kb/s. If I go any higher or select balanced/quality for 1080p@60fps, I get a high encoding warning and my recording just freezes.
 

jackun

Developer
I was surprised as well about host ram working so good yet gpu ram not so much. Is there a way to use a hybrid if this? Gpu ram for reading nv12 and host ram to write after encoded?

DX9 should be a "hybrid" but AMF still uses around 222.5MB (commited GPU memory in Process Explorer) when all buffers are in use. DX11/OpenCL uses around 230MB of VRAM. DX11 with textures is 284+MB and 84% GPU usage with 1080p@60/Quality :D Ouch.

I'll try to hack compute shaders to Dx11 now that OBS is Dx11 too. Maybe it is faster than going through OpenCL.
 

Espionage724

New Member
Can't seem to select AMD VCE while under Windows 10 Tech Preview (option is grayed-out).

dcdbc2df25.png


I'm using Catalyst 14.11.2, and the latest obsvce x64 build. Was using the same driver and build under Windows 7 a bit ago and could select AMD VCE.

Log Window doesn't really show anything specific:

Code:
07:27:00: No Intel graphics adapter visible in QSVHelper.exe, Optimus problem?
07:27:00: Failed loading CUDA dll
07:27:00: VCE encoding with MFT.

I know 10 Tech Preview is probably in no-way supported by OBS or this fork, but is there any specific reasoning why VCE wouldn't be selectable? And is there anything I could maybe check/test?

Edit: I set Encoder=VCE in the profile preference file, and the option was selected in OBS, but trying to use it results in a failure to load/initialize ObsVCE.dll. Switching to AMD AMF results in failure loading/initialzing ObsVCEAMF.dll. Can confirm both .dlls exist in the folder.

Edit: I tried the latest November 27th build listed above and had a similar experience.

Using the x264 encoder with both the VCE build and the latest OBS build on the main site works fine.
 
Last edited:

dping

Active Member
Can't seem to select AMD VCE while under Windows 10 Tech Preview (option is grayed-out).
I'm using Catalyst 14.11.2, and the latest obsvce x64 build. Was using the same driver and build under Windows 7 a bit ago and could select AMD VCE.

http://www.microsoft.com/en-us/download/details.aspx?id=40784 you have to get these (x64 and/or x86)files from MS accorting to what version of OBS-VCE you are using. I go ahead and download both x86 and x64. It is a common mistake. If you did install them (not just download them), there might be other things within Win10 that aren't included that VCE needs.
 

Espionage724

New Member
http://www.microsoft.com/en-us/download/details.aspx?id=40784 you have to get these (x64 and/or x86)files from MS accorting to what version of OBS-VCE you are using. I go ahead and download both x86 and x64. It is a common mistake. If you did install them (not just download them), there might be other things within Win10 that aren't included that VCE needs.
Heh, that did it; thanks!

I usually install that Visual C++ installer pack, but didn't do it by the time I got to testing OBS.

VCE works fine now :)
 
Last edited:

jackun

Developer
how about Uninine valley benchmark, 1080p with the lowest preset so everybody can compare....
Basic preset @ 720p but Dx11 and at 6Mbps (IDR 120) so that it's not just one blurry blob. Crap, could have upped AMF to Quality preset though.

CPU is dragging the fps down, 1080p averages about the same.
 
Last edited:

KaziQ

New Member
Hey jackun with your latest build I can't do 60 FPS anymore. Log say is "VCE too slow?" Have you ever been able to get 90 FPS on OBS with any release on an R9 series card?

KaziQ
 
Top