RTMPS stream does not work
|Reported by:||Ruben Sanchez Castellano||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
Using FFmpeg v3.3.1 and trying to open a stream to an RTMPS URL (Facebook with SSL actually) results in a few RTMP packets written to the output stream but then libavformat tries to read something in return. The thing is Facebook does not returns anything resulting in a connection hanged after 5-6 packets.
I solved this issue with this:
rtmpproto.c:3220 from: ret = ffurl_read(rt->stream, &c, 1); to: //ret = ffurl_read(rt->stream, &c, 1); ret = AVERROR(EAGAIN));
This modification will force to not read anything from the server so the connection does not hang. With this fix I can see the RTMPS stream on Facebook Live preview and does not affect other RTMP streams.