Question / Help "Failed to connect to server" Facebook live

Swanbumps

New Member
every time I try to stream to Facebook i get and error saying failed to connect to server. the error pops up to fast for it to be a connection timed out issue. can someone please help.
14:13:18.956: CPU Name: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz
14:13:18.956: CPU Speed: 2394MHz
14:13:18.956: Physical Cores: 2, Logical Cores: 4
14:13:18.956: Physical Memory: 16302MB Total, 11643MB Free
14:13:18.956: Windows Version: 10.0 Build 16299 (revision: 371; 64-bit)
14:13:18.956: Running as administrator: false
14:13:18.956: Aero is Enabled (Aero is always on for windows 8 and above)
14:13:18.956: Windows 10 Gaming Features:
14:13:18.956: Game Bar: Off
14:13:18.956: Game DVR: Off
14:13:18.956: Game DVR Background Recording: Off
14:13:18.958: Sec. Software Status:
14:13:18.960: Windows Defender Antivirus: disabled (AV)
14:13:18.960: Windows Firewall: enabled (FW)
14:13:18.960: Windows Defender Antivirus: disabled (ASW)
14:13:18.961: Portable mode: false
14:13:19.139: OBS 21.1.0 (64bit, windows)
14:13:19.139: ---------------------------------
14:13:19.156: ---------------------------------
14:13:19.156: audio settings reset:
14:13:19.156: samples per sec: 44100
14:13:19.156: speakers: 2
14:13:19.157: ---------------------------------
14:13:19.157: Initializing D3D11...
14:13:19.157: Available Video Adapters:
14:13:19.159: Adapter 1: AMD Radeon HD 8500M
14:13:19.159: Dedicated VRAM: 2138677248
14:13:19.159: Shared VRAM: 4252467200
14:13:19.159: output 1: pos={0, 0}, size={1366, 768}, attached=true
14:13:19.159: Adapter 2: Intel(R) HD Graphics 5500
14:13:19.159: Dedicated VRAM: 134217728
14:13:19.159: Shared VRAM: 4252467200
14:13:19.162: Loading up D3D11 on adapter AMD Radeon HD 8500M (0)
14:13:19.174: D3D11 loaded successfully, feature level used: 45056
14:13:20.327: ---------------------------------
14:13:20.327: video settings reset:
14:13:20.327: base resolution: 1366x768
14:13:20.327: output resolution: 1364x768
14:13:20.327: downscale filter: Bicubic
14:13:20.327: fps: 60/1
14:13:20.327: format: NV12
14:13:20.327: YUV mode: 601/Partial
14:13:20.328: Audio monitoring device:
14:13:20.328: name: Speakers (2- BEHRINGER X-USB)
14:13:20.328: id: {0.0.0.00000000}.{10fe132b-371c-4e62-80db-d203643a7ef8}
14:13:20.328: ---------------------------------
14:13:20.330: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
14:13:20.332: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
14:13:20.568: [AMF] Version 2.3.3 loaded (Compiled: 1.4.4.0, Runtime: 1.4.6.0, Library: 1;4;6;0;17.50.33.01;201803162024;CL#1528515).
14:13:20.601: [AMF] <Id: 1> Unable to create H264/AVC encoder, error AMF_ENCODER_NOT_PRESENT (code 36)
14:13:20.616: [AMF] <Id: 2> Unable to create H265/HEVC encoder, error AMF_NOT_SUPPORTED (code 10)
14:13:20.642: [AMF] <Id: 3> Unable to create H264/AVC encoder, error AMF_ENCODER_NOT_PRESENT (code 36)
14:13:20.662: [AMF] <Id: 4> Unable to create H265/HEVC encoder, error AMF_NOT_SUPPORTED (code 10)
14:13:20.662: [AMF] [H264/AVC] Not supported by any GPU, disabling...
14:13:20.662: [AMF] [H265/HEVC] Not supported by any GPU, disabling...
14:13:20.677: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
14:13:20.677: LoadLibrary failed for '../../obs-plugins/64bit/libEGL.dll': The specified procedure could not be found.
14:13:20.677: (127)
14:13:20.677: Module '../../obs-plugins/64bit/libEGL.dll' not loaded
14:13:20.678: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
14:13:20.679: [browser_source: 'Version: 1.31.0']
14:13:20.683: LoadLibrary failed for 'nvEncodeAPI64.dll': The specified module could not be found.
14:13:20.683: (126)
14:13:20.712: VLC found, VLC video source enabled
14:13:20.725: No blackmagic support
14:13:20.730: ---------------------------------
14:13:20.730: Loaded Modules:
14:13:20.730: win-wasapi.dll
14:13:20.730: win-mf.dll
14:13:20.730: win-ivcam.dll
14:13:20.731: win-dshow.dll
14:13:20.731: win-decklink.dll
14:13:20.731: win-capture.dll
14:13:20.731: vlc-video.dll
14:13:20.731: text-freetype2.dll
14:13:20.731: rtmp-services.dll
14:13:20.731: obs-x264.dll
14:13:20.731: obs-vst.dll
14:13:20.731: obs-virtualoutput.dll
14:13:20.731: obs-transitions.dll
14:13:20.731: obs-text.dll
14:13:20.731: obs-qsv11.dll
14:13:20.731: obs-outputs.dll
14:13:20.731: obs-filters.dll
14:13:20.731: obs-ffmpeg.dll
14:13:20.731: obs-browser.dll
14:13:20.731: image-source.dll
14:13:20.731: frontend-tools.dll
14:13:20.731: enc-amf.dll
14:13:20.731: coreaudio-encoder.dll
14:13:20.731: ---------------------------------
14:13:20.731: ==== Startup complete ===============================================
14:13:20.735: Switched to Preview/Program mode
14:13:20.735: ------------------------------------------------
14:13:20.737: All scene data cleared
14:13:20.737: ------------------------------------------------
14:13:20.769: [Media Source 'Media Source']: settings:
14:13:20.769: input: E:/OBS/video/10000000_337971750050431_5956329580317900800_n.mp4
14:13:20.769: input_format: (null)
14:13:20.769: speed: 100
14:13:20.769: is_looping: no
14:13:20.769: is_hw_decoding: yes
14:13:20.769: is_clear_on_media_end: yes
14:13:20.769: restart_on_activate: yes
14:13:20.769: close_when_inactive: no
14:13:20.791: Switched to scene 'presentation'
14:13:20.842: ------------------------------------------------
14:13:20.842: Loaded scenes:
14:13:20.842: - scene 'standby':
14:13:20.842: - source: 'logo' (image_source)
14:13:20.842: - scene 'presentation':
14:13:20.842: - source: 'logo 2' (image_source)
14:13:20.842: - source: 'Media Source' (ffmpeg_source)
14:13:20.842: - monitoring: monitor and output
14:13:20.842: - scene 'preshow slides':
14:13:20.842: ------------------------------------------------
14:13:22.994: ---------------------------------
14:13:22.994: [x264 encoder: 'streaming_h264'] preset: faster
14:13:22.994: [x264 encoder: 'streaming_h264'] settings:
14:13:22.994: rate_control: CRF
14:13:22.994: bitrate: 0
14:13:22.994: buffer size: 0
14:13:22.994: crf: 23
14:13:22.994: fps_num: 60
14:13:22.994: fps_den: 1
14:13:22.994: width: 1364
14:13:22.994: height: 768
14:13:22.994: keyint: 60
14:13:22.994:
14:13:23.002: ---------------------------------
14:13:23.003: [FFmpeg aac encoder: 'Track1'] bitrate: 160, channels: 2, channel_layout: 3
14:13:23.003:
14:13:23.005: ---------------------------------
14:13:23.005: [x264 encoder: 'streaming_h264'] settings:
14:13:23.005: rate_control: CRF
14:13:23.005: bitrate: 0
14:13:23.005: buffer size: 0
14:13:23.005: crf: 23
14:13:23.005: fps_num: 60
14:13:23.005: fps_den: 1
14:13:23.005: width: 1364
14:13:23.005: height: 768
14:13:23.005: keyint: 60
14:13:23.005:
14:13:23.005: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://live-api.facebook.com:80/rtmp/...
14:13:23.006: [rtmp stream: 'adv_stream'] Binding to IPv4
14:13:23.008: ==== Replay Buffer Start ===========================================
14:13:23.189: [rtmp stream: 'adv_stream'] Interface: Intel(R) Dual Band Wireless-AC 3160 (802.11, 390 mbps)
14:13:23.387: RTMPSockBuf_Fill, remote host closed connection
14:13:23.387: RTMP_Connect1, handshake failed.
14:13:23.387: [rtmp stream: 'adv_stream'] Connection to rtmp://live-api.facebook.com:80/rtmp/ failed: -2
14:13:23.388: ==== Streaming Stop ================================================
14:13:27.023: ==== Shutting down ==================================================
14:13:27.030: Switched to scene '(null)'
14:13:27.045: All scene data cleared
14:13:27.045: ------------------------------------------------
14:13:27.073: Output 'Replay Buffer': stopping
14:13:27.073: Output 'Replay Buffer': Total frames output: 209
14:13:27.074: Output 'Replay Buffer': Total drawn frames: 243 (244 attempted)
14:13:27.074: Output 'Replay Buffer': Number of lagged frames due to rendering lag/stalls: 1 (0.4%)
14:13:27.209: Freeing OBS context data
14:13:27.235: [Scripting] Total detached callbacks: 0
14:13:27.291: == Profiler Results =============================
14:13:27.291: run_program_init: 2523.67 ms
14:13:27.291: ┣OBSApp::AppInit: 2.719 ms
14:13:27.291: ┃ ┗OBSApp::InitLocale: 1.678 ms
14:13:27.292: ┗OBSApp::OBSInit: 2498.82 ms
14:13:27.292: ┣obs_startup: 5.65 ms
14:13:27.292: ┗OBSBasic::OBSInit: 1832.12 ms
14:13:27.292: ┣OBSBasic::InitBasicConfig: 0.533 ms
14:13:27.292: ┣OBSBasic::ResetAudio: 0.211 ms
14:13:27.292: ┣OBSBasic::ResetVideo: 1171.88 ms
14:13:27.292: ┣OBSBasic::InitOBSCallbacks: 0.008 ms
14:13:27.292: ┣OBSBasic::InitHotkeys: 0.098 ms
14:13:27.292: ┣obs_load_all_modules: 401.959 ms
14:13:27.292: ┃ ┣obs_init_module(coreaudio-encoder.dll): 1.122 ms
14:13:27.292: ┃ ┣obs_init_module(enc-amf.dll): 327.941 ms
14:13:27.292: ┃ ┣obs_init_module(frontend-tools.dll): 6.873 ms
14:13:27.292: ┃ ┣obs_init_module(image-source.dll): 0.004 ms
14:13:27.292: ┃ ┣obs_init_module(obs-browser.dll): 0.097 ms
14:13:27.292: ┃ ┣obs_init_module(obs-ffmpeg.dll): 2.074 ms
14:13:27.292: ┃ ┃ ┗nvenc_check: 2.052 ms
14:13:27.292: ┃ ┣obs_init_module(obs-filters.dll): 0.026 ms
14:13:27.292: ┃ ┣obs_init_module(obs-outputs.dll): 0.009 ms
14:13:27.292: ┃ ┣obs_init_module(obs-qsv11.dll): 7.421 ms
14:13:27.292: ┃ ┣obs_init_module(obs-text.dll): 0.569 ms
14:13:27.292: ┃ ┣obs_init_module(obs-transitions.dll): 0.007 ms
14:13:27.292: ┃ ┣obs_init_module(obs-virtualoutput.dll): 4.605 ms
14:13:27.292: ┃ ┣obs_init_module(obs-vst.dll): 0.003 ms
14:13:27.292: ┃ ┣obs_init_module(obs-x264.dll): 0.002 ms
14:13:27.292: ┃ ┣obs_init_module(rtmp-services.dll): 0.03 ms
14:13:27.292: ┃ ┣obs_init_module(text-freetype2.dll): 0.09 ms
14:13:27.292: ┃ ┣obs_init_module(vlc-video.dll): 3.58 ms
14:13:27.292: ┃ ┣obs_init_module(win-capture.dll): 0.462 ms
14:13:27.292: ┃ ┣obs_init_module(win-decklink.dll): 10.117 ms
14:13:27.292: ┃ ┣obs_init_module(win-dshow.dll): 2.501 ms
14:13:27.292: ┃ ┣obs_init_module(win-ivcam.dll): 0.005 ms
14:13:27.292: ┃ ┣obs_init_module(win-mf.dll): 0 ms
14:13:27.292: ┃ ┣obs_init_module(win-wasapi.dll): 0.01 ms
14:13:27.292: ┃ ┗reset_win32_symbol_paths: 0.242 ms
14:13:27.292: ┣OBSBasic::ResetOutputs: 1.794 ms
14:13:27.292: ┣OBSBasic::CreateHotkeys: 0.115 ms
14:13:27.292: ┣OBSBasic::InitService: 0.257 ms
14:13:27.292: ┣OBSBasic::InitPrimitives: 0.328 ms
14:13:27.292: ┗OBSBasic::Load: 106.472 ms
14:13:27.292: obs_hotkey_thread(25 ms): min=0.004 ms, median=0.008 ms, max=0.82 ms, 99th percentile=0.26 ms, 100% below 25 ms
14:13:27.292: audio_thread(Audio): min=0 ms, median=0.186 ms, max=1.265 ms, 99th percentile=0.487 ms
14:13:27.292: ┗receive_audio: min=0.006 ms, median=0.233 ms, max=1.233 ms, 99th percentile=0.909 ms, 0.502825 calls per parent call
14:13:27.292: ┣buffer_audio: min=0.001 ms, median=0.002 ms, max=0.038 ms, 99th percentile=0.035 ms
14:13:27.292: ┗do_encode: min=0.037 ms, median=0.227 ms, max=1.227 ms, 99th percentile=0.902 ms
14:13:27.292: ┗encode(Track1): min=0.032 ms, median=0.22 ms, max=0.895 ms, 99th percentile=0.733 ms
14:13:27.292: obs_graphics_thread(16.6667 ms): min=0.262 ms, median=4.599 ms, max=20.907 ms, 99th percentile=12.011 ms, 99.2701% below 16.667 ms
14:13:27.292: ┣tick_sources: min=0.002 ms, median=0.013 ms, max=19.942 ms, 99th percentile=0.233 ms
14:13:27.292: ┣output_frame: min=0.254 ms, median=0.64 ms, max=20.419 ms, 99th percentile=7.21 ms
14:13:27.292: ┃ ┣gs_context(video->graphics): min=0.209 ms, median=0.339 ms, max=18.114 ms, 99th percentile=4.71 ms
14:13:27.292: ┃ ┃ ┣render_video: min=0.035 ms, median=0.104 ms, max=17.798 ms, 99th percentile=1.228 ms
14:13:27.292: ┃ ┃ ┃ ┣render_main_texture: min=0.005 ms, median=0.056 ms, max=17.559 ms, 99th percentile=1.006 ms
14:13:27.292: ┃ ┃ ┃ ┣render_output_texture: min=0.008 ms, median=0.015 ms, max=1.204 ms, 99th percentile=0.122 ms
14:13:27.292: ┃ ┃ ┃ ┣render_convert_texture: min=0.001 ms, median=0.015 ms, max=0.484 ms, 99th percentile=0.084 ms
14:13:27.292: ┃ ┃ ┃ ┗stage_output_texture: min=0 ms, median=0.014 ms, max=0.22 ms, 99th percentile=0.117 ms
14:13:27.292: ┃ ┃ ┣download_frame: min=0 ms, median=0.009 ms, max=3.925 ms, 99th percentile=0.17 ms
14:13:27.292: ┃ ┃ ┗gs_flush: min=0.044 ms, median=0.214 ms, max=2.599 ms, 99th percentile=0.891 ms
14:13:27.292: ┃ ┗output_video_data: min=0.216 ms, median=0.303 ms, max=8.158 ms, 99th percentile=2.301 ms
14:13:27.292: ┗render_displays: min=0.001 ms, median=3.917 ms, max=11.345 ms, 99th percentile=5.284 ms
14:13:27.292: video_thread(video): min=0.001 ms, median=1.183 ms, max=13.413 ms, 99th percentile=3.5 ms
14:13:27.292: ┗receive_video: min=0 ms, median=1.394 ms, max=13.41 ms, 99th percentile=3.622 ms, 0.599509 calls per parent call
14:13:27.292: ┗do_encode: min=0.947 ms, median=1.401 ms, max=13.409 ms, 99th percentile=3.621 ms
14:13:27.292: ┗encode(streaming_h264): min=0.94 ms, median=1.393 ms, max=13.338 ms, 99th percentile=3.62 ms
14:13:27.292: =================================================
14:13:27.292: == Profiler Time Between Calls ==================
14:13:27.292: obs_hotkey_thread(25 ms): min=24.658 ms, median=25.033 ms, max=49.102 ms, 75.2322% within ±2% of 25 ms (0% lower, 24.7678% higher)
14:13:27.292: obs_graphics_thread(16.6667 ms): min=2.041 ms, median=16.667 ms, max=49.169 ms, 87.3171% within ±2% of 16.667 ms (6.09756% lower, 6.58537% higher)
14:13:27.292: =================================================
14:13:27.318: Number of memory leaks: 1
 

Dung

New Member
Go to Settings -> Help -> Check for updates! I have fixed this problem when I Updated OBS
 

R1CH

Forum Admin
Developer
You've specified a custom URL for Facebook that is not valid. Use the "Facebook" option instead of "Custom streaming server".
 

SiaNariman

New Member
You've specified a custom URL for Facebook that is not valid. Use the "Facebook" option instead of "Custom streaming server".
Both doesn't work anymore

C:
info: ==== Startup complete ===============================================
info: All scene data cleared
info: ------------------------------------------------
info: pulse-input: Server name: 'pulseaudio 11.1'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_output.usb-Samson_Technologies_Samson_Meteor_Mic-00.analog-stereo.monitor'
info: pulse-input: Server name: 'pulseaudio 11.1'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_input.usb-Samson_Technologies_Samson_Meteor_Mic-00.analog-stereo'
[swscaler @ 0x55ff579dfc80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x55ff579dfc80] Warning: data is not aligned! This can lead to a speed loss
info: Switched to scene 'FacebookLIVE'
info: ------------------------------------------------
info: Loaded scenes:
info: - scene 'Scene':
info: - scene 'FacebookLIVE':
info:     - source: 'BG' (image_source)
info: ------------------------------------------------
Attempted path: ../../data/obs-studio/images/overflow.png
Attempted path: ../../data/obs-studio/locale.ini
Attempted path: ../../data/obs-studio/themes/
info: Settings changed (stream 1)
info: ------------------------------------------------
info: ---------------------------------
info: [x264 encoder: 'streaming_h264'] preset: veryfast
info: [x264 encoder: 'streaming_h264'] profile: main
info: [x264 encoder: 'streaming_h264'] settings:
    rate_control: CBR
    bitrate:      2500
    buffer size:  2500
    crf:          0
    fps_num:      30
    fps_den:      1
    width:        1280
    height:       720
    keyint:       60

info: libfdk_aac encoder created
info: libfdk_aac bitrate: 128, channels: 2
info: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmps://rtmp-api.facebook.com:443/rtmp/...
info: RTMP_Connect1, no SSL/TLS support
info: [rtmp stream: 'adv_stream'] Connection to rtmps://rtmp-api.facebook.com:443/rtmp/ failed: -2
info: ==== Streaming Stop ================================================
OBS 24.0.3 via snap ubuntu 18.4


Regards
 

R1CH

Forum Admin
Developer
That snap version of OBS seems to be missing mbedTLS support, so it cannot stream to Facebook.
 

R1CH

Forum Admin
Developer
The official Windows builds have mbedTLS support, so that is not your problem. Most likely a MITM antivirus is interfering with the port 443 RTMP stream.
 
Top