OBS branch with AMD VCE support.

dping

Active Member
Hi guys, I have some problem with audio - it stutters in every few seconds. Not always but when it starts to do that it won't stop. You can hear it from about 1:00
https://drive.google.com/file/d/0B_kErmN6PVTiLUNRbjB0MnJMbEU/view?usp=sharing

The video should be 1080p after Google renders it.
I'm using version without profiling code, but I had this problem in few previous versions. I have 14.9 drivers


interestingly, I had some sound drop during my last few streams. it wasn't every few seconds, but I also had OBS saying something about the sounds card is behind by 20 in the logs. had it happen in the last 2 versions posted so I'm wondering if it has something to do with the master build of OBS from.

It seemed to stop when I increased my scene buffering delay from 60ms back to 400ms (which should be twitch recommended anyway).
 

djdynamite123

New Member
Hi, iv'e got this all setup now with my R9 290 but whenever i preview or attempt to stream etc I just get thrown a encoder failed to initialize error. iv'e basicly got the same settings Computer has posted. Iv'e installed the 2013 Microsoft framework studio (forgot what it's called lol) and still the error?

[EDIT] I am using the latest AMD beta driver (AMD-Catalyst-14.9.2Beta-14.301.1006-64Bit-Win7-Oct10)


Specs if relevant:
MSI R9 290 Gaming
Core i7 4770k
16GB GSkill 2133Mhz
Asus Z87 Pro
 
Last edited:

sneaky4oe

Member
Jackun, seems like that last version you didn't post to thread head worked. At least I didn't notice any hguge bitrate jumps while making 3 hr stream.
 

dping

Active Member
Hi, iv'e got this all setup now with my R9 290 but whenever i preview or attempt to stream etc I just get thrown a encoder failed to initialize error. iv'e basicly got the same settings Computer has posted. Iv'e installed the 2013 Microsoft framework studio (forgot what it's called lol) and still the error?

[EDIT] I am using the latest AMD beta driver (AMD-Catalyst-14.9.2Beta-14.301.1006-64Bit-Win7-Oct10)


Specs if relevant:
MSI R9 290 Gaming
Core i7 4770k
16GB GSkill 2133Mhz
Asus Z87 Pro


Are you combining 48fps with Open CL to NV12?

I have files to allow that, but realized that it wasn't included in the newest versions to allow 48fps. my bad
 

dping

Active Member
It's been set at 40fps at all times. Iv'e fiddles unpicking several areas in encoder options and still the same error. :(

You have to restart OBS when you change encoder options.

Set to AMF then restart it, also make sure your IDR is set to double your FPS or if you are suing the newst build, set IDR to 0.

Lastly, please include a logfile with all your problem posts, crashing exc.

40,48,54 fps dont work with OpenCL to NV12 or OVE (all option unchecked). AMF will do them all.

choose 24,30,50,60 if you are using OCL or OVE
 

sneaky4oe

Member
Jackun, seems like that last version you didn't post to thread head worked. At least I didn't notice any hguge bitrate jumps while making 3 hr stream.

  • The broadcast is not set to constant bitrate (CBR). [Current average: 4616 kbps, current max: 15892.0 kbps]
So, after all, it still has spikes, but less often and less visible.

Also, at the end of the stream it started turning it on and off many times. My twitter was spammed with "goes online right now" messages.
 
Last edited:

jackun

Developer
  • The broadcast is not set to constant bitrate (CBR). [Current average: 4616 kbps, current max: 15892.0 kbps]
So, after all, it still has spikes, but less often and less visible.

Also, at the end of the stream it started turning it on and off many times. My twitter was spammed with "goes online right now" messages.

With AMF, right? Can try the "Frame skip" option, but then not much for me to do probably. Just wait for stable MediaSDK release and hope it has some fixes :-/
 

djdynamite123

New Member
Uhmm I have a strange issue. This is the quality what I get using the same settings used providing I select x264 or Intel Quicksync (Iv'e tested both during a few benchmarks, I seem to get almost the same quality to my eyes on either and the same performances when testing both via record/streaming.

Here is a little video recording showing the terrible quality, also the performance is about 20% worse than using x264 when running a bench too. The AMD VCE problem in question. http://tinypic.com/player.php?v=122yq2q>&s=8#.VGAcofmsX4J ....The same issue with OpenCL selected. As I said previously I cant have AMF selected it just throws me a error (Encoder Initialization Failed).

Now here is a little clip recording under x264 stetting: http://tinypic.com/player.php?v=2hg4nbl>&s=8#.VGAgJPmsX4I

[EDIT] It appears idiotic tinypic must wreck the quality, because it looks almost perfect using x264 but on the website when full screened looks like 640x480 resolution lol. Either that or their is a HD button to select somewhere that I cannot for the life of me see!

Log file https://gist.github.com/d7ebc7a64d4f1ae46ca4

Here are my settings (PS: Is there anything wrong with these settings? if using x264 or whatnot......)
 

Attachments

  • 1.png
    1.png
    35.4 KB · Views: 72
  • 2.png
    2.png
    34.1 KB · Views: 68
  • 3.png
    3.png
    47.3 KB · Views: 67
  • 4.png
    4.png
    65.4 KB · Views: 76
Last edited:

dping

Active Member
With AMF, right? Can try the "Frame skip" option, but then not much for me to do probably. Just wait for stable MediaSDK release and hope it has some fixes :-/
Uhmm I have a strange issue. This is the quality what I get using the same settings used providing I select x264 or Intel Quicksync (Iv'e tested both during a few benchmarks, I seem to get almost the same quality to my eyes on either and the same performances when testing both via record/streaming.

Here is a little video recording showing the terrible quality, also the performance is about 20% worse than using x264 when running a bench too. The AMD VCE problem in question. http://tinypic.com/player.php?v=122yq2q>&s=8#.VGAcofmsX4J ....The same issue with OpenCL selected. As I said previously I cant have AMF selected it just throws me a error (Encoder Initialization Failed).

Now here is a little clip recording under x264 stetting: http://tinypic.com/player.php?v=2hg4nbl>&s=8#.VGAgJPmsX4I

[EDIT] It appears idiotic tinypic must wreck the quality, because it looks almost perfect using x264 but on the website when full screened looks like 640x480 resolution lol. Either that or their is a HD button to select somewhere that I cannot for the life of me see!

Log file https://gist.github.com/d7ebc7a64d4f1ae46ca4

Here are my settings (PS: Is there anything wrong with these settings? if using x264 or whatnot......)

Why are you using a crf=18 in custom. I dont use low latency mode, no reason for it. GOP should be 30 or 60 IMO. go ahead and hard set your IDR to 120, but other than that, I cant see anything that would cause the encoder to fail to initialize. The main reason it does that is if I switch betweet VCE modes I have to restart OBS, otherwise it does what you are seeing.
 

jackun

Developer
@djdynamite123 Oh, try uninstalling graphics drivers with DDU and reinstall with Cat 14.4 or newer. I had similar issue with supported Cat 14.4 that it kept telling me it couldn't find the encoder (worked with 14.6), but when I did fresh install of windows it worked fine with Cat 14.4.

E: In log AMFCreateComponent gives result code 35 : AMF_ENCODER_NOT_PRESENT
 
Last edited:

djdynamite123

New Member
Iv'e removed and adjusted the settings you mentioned dping, thanks for the heads up.

jackun, it now works using AMD enabled too but the quality is a little bit poorer than using x264 and about 1.5% worse performance lol. How does that work out?

On another note, what is the program Mirillis Action using in their code for the AMD APP? because if I stream using that using the same bitrate (3500kbps), 60fps @ 720p their is virtually almost no performance loss whatsoever except 1fps loss from 62 average (average fps in autosport bench) for example. As opposed to using x264 in OBS kills like 7fps out of 62fps. OBS using VCE killed roughly 8.5fps from 62. This is all tested using GRID Autosport Benchmark (1440p, everything possible in advanced enabled to the maximum detail, maximum AA setting of 8f16x EQAA too).

I must admit the quality is superior using OBS, but Action is still very good and has a hit of almost no performance loss.
 

jackun

Developer
@djdynamite123 OBS uses GPU do its thing and as such shares resources with games then it can cause fps drop in GPU heavy games. You can try checking "Do NOT use D3D10 interop" and with AMF select "Host" engine type maybe to let CPU do more work instead.

If I remember correctly, OpenCL kernels for converting 1080p frame to NV12 took ~2ms. Don't know how optimized it is though, heh.
 
Last edited:

tbob18

New Member
VCE is greyed out on my Gigabyte Windforce 7950 (Rev 2.0)

All settings are default. I also attached my hardware id's.

vce7950gb.jpg 7950hwid.jpg

I also get "Update Failed: Invalid patch manifest" when trying to update the plugins on first start.

Edit: Scratch that, I forgot the Visual C++ redist, it works perfectly now. The update failed error still stands though.
 
Last edited:

dping

Active Member
VCE is greyed out on my Gigabyte Windforce 7950 (Rev 2.0)

All settings are default. I also attached my hardware id's.

View attachment 4620 View attachment 4621

I also get "Update Failed: Invalid patch manifest" when trying to update the plugins on first start.

Edit: Scratch that, I forgot the Visual C++ redist, it works perfectly now. The update failed error still stands though.
First, when you download the package, put it somewhere else away from your OBS files, i.e. desktop. Second, dont use the update option, you have to press no every time you start. glad you figured it out though
 

tbob18

New Member
First, when you download the package, put it somewhere else away from your OBS files, i.e. desktop. Second, dont use the update option, you have to press no every time you start. glad you figured it out though

Thanks for the tip.

One thing I did notice is that while recording video does not affect my FPS by any noticable amount, on the recording there is some microstutter from time to time (randomly every ~5-20s), even though while I'm playing the game I get a solid 60fps.

Bitrate, resolution, buffer, etc has no effect on it or some settings will make it much worse but never gets better past a certain point (tried 480p all the way to 1080p, and 500kbps to 50000kbps, it is always exactly the same or worse) It even shows up in the preview when the encoder is disabled.

I was able to fix it by disabling the encoder in the preview and setting the FPS to 70 (this fixes it at any resolution), but of course VCE won't record at those settings and standard h264 has a ton of overhead in comparison (especially at high bitrates).

Any suggestions? Thanks.
 

dping

Active Member
Thanks for the tip.

One thing I did notice is that while recording video does not affect my FPS by any noticable amount, on the recording there is some microstutter from time to time (randomly every ~5-20s), even though while I'm playing the game I get a solid 60fps.

Bitrate, resolution, buffer, etc has no effect on it or some settings will make it much worse but never gets better past a certain point (tried 480p all the way to 1080p, and 500kbps to 50000kbps, it is always exactly the same or worse) It even shows up in the preview when the encoder is disabled.

I was able to fix it by disabling the encoder in the preview and setting the FPS to 70 (this fixes it at any resolution), but of course VCE won't record at those settings and standard h264 has a ton of overhead in comparison (especially at high bitrates).

Any suggestions? Thanks.

would you screenshot your settings and post logs to github via the help menu? What game are you streaming as well. The setting from all tabs I.e. And vce, encoding, video, advanced, exc
 

KaziQ

New Member
Hey Jackun,

I think you also develop the OpenEncodeVWF right? I have installed a generic version of VWF codec and that worked fine on Dxtory. And then installed yours but can't get Dxtory to recognize that. I am trying to compare and see if the same stutters occur on Dxtory when recording at high FPS.

KaziQ
 
Top