Opened 5 months ago

#6471 new defect

RTMPS stream does not work

Reported by: rubensanchez Owned by:
Priority: important Component: avformat
Version: git-master Keywords: rtmps, facebook
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.