Question / Help Connection error OSStatus error -12915

Lusty

New Member
Hello, when I try to start my stream, it works for a few seconds and then shuts off. I'm seeing the following error in the logs: OSStatus error -12915

Does anyone have any ideas?

Thanks!

Here the log file:
----------------------

11:44:37.689: CPU Name: Intel(R) Core(TM) i5-2415M CPU @ 2.30GHz
11:44:37.689: CPU Speed: 2300MHz
11:44:37.689: Physical Cores: 2, Logical Cores: 4
11:44:37.689: Physical Memory: 8192MB Total
11:44:37.689: OS Name: Mac OS X (NSMACHOperatingSystem)
11:44:37.689: OS Version: Version 10.11.6 (Build 15G1217)
11:44:37.689: Kernel Version: 15.6.0
11:44:37.693: hotkeys-cocoa: Using layout 'com.apple.keylayout.US'
11:44:37.694: Portable mode: false
11:44:37.886: OBS 18.0.1 (mac)
11:44:37.887: ---------------------------------
11:44:37.888: ---------------------------------
11:44:37.888: audio settings reset:
11:44:37.888: samples per sec: 44100
11:44:37.888: speakers: 2
11:44:38.005: ---------------------------------
11:44:38.005: video settings reset:
11:44:38.005: base resolution: 1280x800
11:44:38.005: output resolution: 1280x720
11:44:38.005: downscale filter: Bicubic
11:44:38.005: fps: 30/1
11:44:38.005: format: NV12
11:44:38.005: Audio monitoring device:
11:44:38.005: name: Default
11:44:38.005: id: default
11:44:38.006: ---------------------------------
11:44:38.061: No blackmagic support
11:44:38.101: [VideoToolbox encoder]: Adding VideoToolbox H264 encoders
11:44:38.150: VLC found, VLC video source enabled
11:44:38.152: Failed to load 'en-US' text for module: 'obs-browser.so'
11:44:38.152: [browser_source: 'Version: 1.29.0']
11:44:38.152: ---------------------------------
11:44:38.152: Loaded Modules:
11:44:38.152: obs-browser.so
11:44:38.152: vlc-video.so
11:44:38.152: text-freetype2.so
11:44:38.152: rtmp-services.so
11:44:38.152: obs-x264.so
11:44:38.152: obs-vst.so
11:44:38.152: obs-transitions.so
11:44:38.152: obs-outputs.so
11:44:38.152: obs-filters.so
11:44:38.152: obs-ffmpeg.so
11:44:38.152: mac-vth264.so
11:44:38.152: mac-syphon.so
11:44:38.152: mac-decklink.so
11:44:38.152: mac-capture.so
11:44:38.152: mac-avcapture.so
11:44:38.152: linux-jack.so
11:44:38.152: image-source.so
11:44:38.152: frontend-tools.so
11:44:38.152: coreaudio-encoder.so
11:44:38.152: ==== Startup complete ===============================================
11:44:38.679: All scene data cleared
11:44:38.679: ------------------------------------------------
11:44:38.765: coreaudio: device 'Built-in Input' initialized
11:44:39.072: Video Capture Device: Selected device 'FaceTime HD Camera (Built-in)'
11:44:39.074: Video Capture Device: Using preset 1280x720
11:44:39.319: Switched to scene 'Live Cam'
11:44:39.320: ------------------------------------------------
11:44:39.320: Loaded scenes:
11:44:39.320: - scene 'Live Cam':
11:44:39.320: - source: 'HT- ???? ' (text_ft2_source)
11:44:39.320: - source: 'Video Capture Device' (av_capture_input)
11:44:39.320: - source: 'LogoWatermark' (image_source)
11:44:39.320: ------------------------------------------------
11:44:39.812: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds
11:44:39.891: adding 23 milliseconds of audio buffering, total audio buffering is now 46 milliseconds
11:44:41.354: adding 23 milliseconds of audio buffering, total audio buffering is now 69 milliseconds
11:44:43.879: adding 23 milliseconds of audio buffering, total audio buffering is now 92 milliseconds
11:44:43.880: adding 23 milliseconds of audio buffering, total audio buffering is now 116 milliseconds
11:44:44.829: Last log entry repeated for 11 more lines
11:44:44.829: Max audio buffering reached!
11:44:44.829: adding 23 milliseconds of audio buffering, total audio buffering is now 1044 milliseconds
11:45:03.489: [VideoToolbox streaming_h264: 'h264']: session created with hardware encoding
11:45:03.489: [VideoToolbox streaming_h264: 'h264']: settings:
11:45:03.489: vt_encoder_id com.apple.videotoolbox.videoencoder.h264.gva
11:45:03.489: bitrate: 2500 (kbps)
11:45:03.489: fps_num: 30
11:45:03.489: fps_den: 1
11:45:03.489: width: 1280
11:45:03.489: height: 720
11:45:03.489: keyint: 0 (s)
11:45:03.489: limit_bitrate: on
11:45:03.489: rc_max_bitrate: 1000 (kbps)
11:45:03.489: rc_max_bitrate_window: 1.500000 (s)
11:45:03.489: hw_enc: on
11:45:03.489: profile: default
11:45:03.489:
11:45:03.496: [CoreAudio AAC: 'Track1']: settings:
11:45:03.496: mode: AAC
11:45:03.496: bitrate: 128
11:45:03.496: sample rate: 44100
11:45:03.496: cbr: on
11:45:03.496: output buffer: 1536
11:45:03.496: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://54.174.125.50:1935/live...
11:45:03.550: [VideoToolbox recording_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.)
11:45:03.968: [rtmp stream: 'adv_stream'] Connection to rtmp://54.174.125.50:1935/live successful
11:45:03.976: ==== Streaming Start ===============================================
11:45:10.962: [rtmp stream: 'adv_stream'] User stopped the stream
11:45:10.962: Output 'adv_stream': stopping
11:45:10.962: Output 'adv_stream': Total encoded frames: 223
11:45:10.962: Output 'adv_stream': Total drawn frames: 224
11:45:10.962: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 35 (15.6%)
11:45:10.965: ==== Streaming Stop ================================================
11:45:21.137: ---------------------------------
11:45:21.137: video settings reset:
11:45:21.137: base resolution: 1280x800
11:45:21.137: output resolution: 1280x720
11:45:21.137: downscale filter: Bicubic
11:45:21.137: fps: 30/1
11:45:21.137: format: NV12
11:45:21.139: Settings changed (video)
11:45:21.139: ------------------------------------------------
11:45:23.983: [VideoToolbox streaming_h264: 'h264']: session created with hardware encoding
11:45:23.983: [VideoToolbox streaming_h264: 'h264']: settings:
11:45:23.983: vt_encoder_id com.apple.videotoolbox.videoencoder.h264.gva
11:45:23.983: bitrate: 2500 (kbps)
11:45:23.983: fps_num: 30
11:45:23.983: fps_den: 1
11:45:23.983: width: 1280
11:45:23.983: height: 720
11:45:23.983: keyint: 0 (s)
11:45:23.983: limit_bitrate: on
11:45:23.983: rc_max_bitrate: 1000 (kbps)
11:45:23.983: rc_max_bitrate_window: 1.500000 (s)
11:45:23.983: hw_enc: on
11:45:23.983: profile: default
11:45:23.983:
11:45:23.988: [CoreAudio AAC: 'Track1']: settings:
11:45:23.988: mode: AAC
11:45:23.988: bitrate: 128
11:45:23.988: sample rate: 44100
11:45:23.988: cbr: on
11:45:23.988: output buffer: 1536
11:45:23.988: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://54.174.125.50:1935/live...
11:45:24.024: [VideoToolbox recording_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.)
11:45:24.450: [rtmp stream: 'adv_stream'] Connection to rtmp://54.174.125.50:1935/live successful
11:45:24.461: ==== Streaming Start ===============================================
11:45:38.387: [rtmp stream: 'adv_stream'] User stopped the stream
11:45:38.387: Output 'adv_stream': stopping
11:45:38.387: Output 'adv_stream': Total encoded frames: 777293388
11:45:38.387: Output 'adv_stream': Total drawn frames: 431
11:45:38.387: Output 'adv_stream': Number of skipped frames due to encoding lag: 761411565 (98.0%)
11:45:38.387: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 42 (9.7%)
11:45:38.390: ==== Streaming Stop ================================================
 

dodgepong

Administrator
Community Helper
Looks like you're using the Apple VT Encoder...I don't really recommend using that if you can avoid it. Change that back to x264 in your output settings.
 
Top