Bug Report MAC (Hackintosh - Catalina) streaming issues , OSStatus error -12915.

vgeczy

New Member
Hi All!
I am BIG fun of OBS :DD / have experience on Windows, Apple (MacBook Pro .. etc)
Right now I have built a Hackintosh especially for OBS streaming server.
With the first test I am 99% satisfied, extremely powerful machine, expect one thing:
I have two Graphics card:
- Intel(R) UHD Graphics 630 (integrated)
- AMD Radeon RX 580 (PCIe)

- Both cards have been set up with theirs drivers successfully, Metal etc. hardware acceleration is PERFECT, tested.
- x264 / Apple VT H264 Software Encoder streaming working (except when I stop the streaming with Apple, OBS quit - chrashes)

BUT I would like to utilise HW encoding as well - with the Apple VT H264 Hardware Encoder:
- With the Intel CARD is PERFECT WORKING!
- With the AT RX 580 is FAILED = OSStatus error -12915. (does not start)
(between the tests I always rebooted the machine, switched the proper card for MacOS ...etc.
And obviously NO parameter has been changed in OBS between the two tests)

Please help to FIX it!

I included both log below (only the relevant part)

Thank you for your help in advance,

Viktor

P.S.: Please do not say that do not use Apple VT encoder, it is crucial to save CPU power (my experience about 15-20 % !),
with your new functionality "dynamically change bitrate to manage congestion (Beta)". FACEBOOk is very stable in case of network issues , too!!!
Thanks!:)

==== ATI RX 580 TEST (relevant log part) = FAILED
16:27:32.220: CPU Name: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
16:27:32.220: CPU Speed: 4009MHz
16:27:32.220: Physical Cores: 4, Logical Cores: 8
16:27:32.220: Physical Memory: 32768MB Total
16:27:32.220: OS Name: Mac OS X (NSMACHOperatingSystem)
16:27:32.220: OS Version: Version 10.15.4 (Build 19E287)
16:27:32.220: Kernel Version: 19.4.0
16:27:32.224: hotkeys-cocoa: Using layout 'com.apple.keylayout.Hungarian'
16:27:32.224: Portable mode: false
16:27:32.372: OBS 25.0.7 (mac)
16:27:32.372: ---------------------------------
16:27:32.373: ---------------------------------
16:27:32.373: audio settings reset:
16:27:32.373: samples per sec: 44100
16:27:32.373: speakers: 2
16:27:32.390: ---------------------------------
16:27:32.390: Initializing OpenGL...
16:27:32.462: Loading up OpenGL on adapter ATI Technologies Inc. OpenGL Engine
16:27:32.462: OpenGL loaded successfully, version 4.1 ATI-3.8.24, shading language 4.10
16:27:32.536: ---------------------------------
16:27:32.536: video settings reset:
16:27:32.536: base resolution: 1280x720
16:27:32.536: output resolution: 1280x720
16:27:32.536: downscale filter: Lanczos
16:27:32.536: fps: 30/1
16:27:32.536: format: NV12
16:27:32.536: YUV mode: 601/Partial
16:27:32.537: NV12 texture support not available
16:27:32.537: Audio monitoring device:
16:27:32.537: name: Steinberg UR28M
16:27:32.537: id: YamahaUSBAudioEngine2:0499:1504:0211:Steinberg UR28M:L-14424000
16:27:32.538: ---------------------------------
...
...
...
everything fine, BUT when I press Start streaming:
16:28:10.019: ------------------------------------------------
16:33:40.893: [VideoToolbox streaming_h264: 'h264']: Error in VTCompressionSessionCreate( kCFAllocatorDefault, enc->width, enc->height, kCMVideoCodecType_H264, encoder_spec, pixbuf_spec, NULL, &sample_encoded_callback, enc->queue, &s): The operation couldn’t be completed. (OSStatus error -12915.)
16:33:40.893: Stream output type 'rtmp_output' failed to start!


==== With INTEL = SUCCEEDED
15:57:07.722: CPU Name: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
15:57:07.722: CPU Speed: 4009MHz
15:57:07.722: Physical Cores: 4, Logical Cores: 8
15:57:07.722: Physical Memory: 32768MB Total
15:57:07.722: OS Name: Mac OS X (NSMACHOperatingSystem)
15:57:07.722: OS Version: Version 10.15.4 (Build 19E287)
15:57:07.722: Kernel Version: 19.4.0
15:57:07.809: hotkeys-cocoa: Using layout 'com.apple.keylayout.Hungarian'
15:57:07.810: Portable mode: false
15:57:07.934: OBS 25.0.7 (mac)
15:57:07.934: ---------------------------------
15:57:07.935: ---------------------------------
15:57:07.935: audio settings reset:
15:57:07.935: samples per sec: 44100
15:57:07.935: speakers: 2
15:57:08.180: ---------------------------------
15:57:08.180: Initializing OpenGL...
15:57:08.204: Loading up OpenGL on adapter Intel Inc. Intel(R) UHD Graphics 630
15:57:08.204: OpenGL loaded successfully, version 4.1 INTEL-14.5.22, shading language 4.10
15:57:08.275: ---------------------------------
15:57:08.275: video settings reset:
15:57:08.275: base resolution: 1280x720
15:57:08.275: output resolution: 1280x720
15:57:08.275: downscale filter: Lanczos
15:57:08.275: fps: 30/1
15:57:08.275: format: NV12
15:57:08.275: YUV mode: 601/Partial
15:57:08.276: NV12 texture support not available
15:57:08.276: Audio monitoring device:
15:57:08.276: name: Steinberg UR28M
15:57:08.276: id: YamahaUSBAudioEngine2:0499:1504:0211:Steinberg UR28M:L-14424000
15:57:08.276: ---------------------------------
....
....
....
when I press Start Streaming
15:58:08.915: ------------------------------------------------
15:58:35.452: [VideoToolbox streaming_h264: 'h264']: session created with hardware encoding
15:58:35.452: [VideoToolbox streaming_h264: 'h264']: settings:
15:58:35.452: vt_encoder_id com.apple.videotoolbox.videoencoder.h264.gva
15:58:35.452: bitrate: 2500 (kbps)
15:58:35.452: fps_num: 30
15:58:35.452: fps_den: 1
15:58:35.452: width: 1280
15:58:35.452: height: 720
15:58:35.452: keyint: 2 (s)
15:58:35.452: limit_bitrate: off
15:58:35.452: rc_max_bitrate: 2500 (kbps)
15:58:35.452: rc_max_bitrate_window: 1.500000 (s)
15:58:35.452: hw_enc: on
15:58:35.452: profile: main
15:58:35.452:
15:58:35.454: [CoreAudio AAC: 'avc_aac_stream']: settings:
15:58:35.454: mode: AAC
15:58:35.454: bitrate: 128
15:58:35.454: sample rate: 44100
15:58:35.454: cbr: on
15:58:35.454: output buffer: 1536
15:58:35.454: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmps://rtmp-api.facebook.com:443/rtmp/...
15:58:36.456: [rtmp stream: 'adv_stream'] Connection to rtmps://rtmp-api.facebook.com:443/rtmp/ successful
15:58:36.458: ==== Streaming Start ===============================================
15:58:41.291:
....
.... (streaming)
 

Attachments

  • 2020-04-23 15-57-07 INTEL GOOD.txt
    22.1 KB · Views: 14
  • 2020-04-23 16-27-32 ATI 580 FAIL.txt
    14.6 KB · Views: 8

vgeczy

New Member
RESOLVED!
Based on this video now Apple VT HARDWARE is working with OBS with XFX Radeon RX 580 !
(and all the other programs : Handbrake, Videoproc utilise the HW encodig, decoding)

Hope it could help others!
 
Top