[FFmpeg-user] ffmpeg streaming to rtmps fails on Mac

Nam Giang kyng at ece.ubc.ca
Wed Jun 5 00:39:59 EEST 2019


Hi there,

Is there anyone success with streaming to rtmps destination using ffmpeg on
a Mac? (Facebook recently enforces this to be the only protocol they
support)

My try:

> ffmpeg -v verbose -f avfoundation -r 29.97 -s 1280x720 -i "0:0" -preset
ultrafast -vcodec libx264 -tune zerolatency -f flv "rtmps://
live-api-s.facebook.com:443/rtmp/<stream_key>"

It always stale after a sec. On FB it said it hasn't received the data for
some time.

Using the nightly build at ffmpeg.org. Error looks like:

[tls @ 0x7f8c8cf1b720] IO Error: -9806

I tried to build it myself with gnutls and still no luck:

[tcp @ 0x7f7f89c5d3c0] Starting connection attempt to 157.240.3.1 port 443
[tcp @ 0x7f7f89c5d3c0] Successfully connected to 157.240.3.1 port 443
[rtmps @ 0x7f7f89c40000] Cannot open connection tls://
live-api-s.facebook.com:443

Resource temporarily unavailable

Thanks


More information about the ffmpeg-user mailing list