Hit and miss Facebook Live streaming

We set up a camera and tested everything several times on Saturday and were able to go live on a Facebook page without problems. We came back the next day and were unable to get it working no matter what we tried. When we selected Get Streaming Key (which we have set as persistent), the Facebook Live page comes up but when we try to begin the setup to Go Live, it gives us an error and we cannot continue. I saved all of the logs from both good and bad sessions and compared them. It appears that all of the bad ones have this is common:

08:15:02.928: RTMPSockBuf_Fill, recv returned -30848. GetSockError(): 0 (The operation completed successfully.)
08:15:02.928: [rtmp stream: 'simple_stream'] Connection to rtmps://rtmp-api.facebook.com:443/rtmp/ failed: -3

But a good session at the same place in the log says:

14:04:46.978: [rtmp stream: 'simple_stream'] Connection to rtmps://rtmp-api.facebook.com:443/rtmp/ (31.13.67.5) successful

We made no changes between when it worked and when it didn't work. However I came back 2 days later and it worked again. We need it to work all the time, so I'd like to understand why it goes into a mode where it refuses to work. I am attaching 3 log: the log from 2/17 works, the log example from 2/18 failed, and the log from 2/20 again worked.

I am a little surprised that recv() can return a negative number such as -30848 since that is not a valid return value, but it always seems to be that number when it fails.
 

Attachments

  • 2024-02-17 10-40-12.txt
    19.4 KB · Views: 8
  • 2024-02-18 08-14-54.txt
    21.6 KB · Views: 6
  • 2024-02-20 13-58-36.txt
    12.5 KB · Views: 7

Lawrence_SoCal

Active Member
My experience with Facebook Live, in circumstances as you mention, is that typically OBS Studio log won't help, as the issue isn't there it is entirely within FB and the stream key in use
Have you used facebook's /live/producer? {or its newer iteration) if not, I recommend starting there, and reviewing Facebook's logs, and using the Preview screen
Be sure to go thru ALL of the Facebook Event settings (multiple pages) and read up on what the various options mean (don't guess). Things like how FB is to respond when it stops receiving a signal.. Such can easily impact you, even days later. And sometimes FB simply glitches... and its a free service, so we, the end-users tend to simply be SOL

Personally, I use only FB's Scheduled Video events and I do NOT use a persistent stream key (for security reasons). I have run into rare issues when Facebook thinks I'm connecting to a different event, and getting connected to right event is a MAJOR hassle/pain (I've given up at times)... the issue happens rarely enough for me that I have not dived deep into the issue.
 
Top