[FFmpeg-trac] #6453(avformat:new): RTMP handshake fails with some encoders

FFmpeg trac at avcodec.org
Fri Jun 9 19:08:41 EEST 2017

#6453: RTMP handshake fails with some encoders
             Reporter:               |                     Type:  defect
  rubensanchez                       |                 Priority:  important
               Status:  new          |                  Version:  git-
            Component:  avformat     |  master
             Keywords:  RTMP,        |               Blocked By:
  handshake                          |  Reproduced by developer:  1
             Blocking:               |
Analyzed by developer:  0            |
 Summary of the bug:
 How to reproduce:

 Run a RTMP server using libavformat (I run a custom one) and try to stream
 to that server with Wirecast, Amazon's Elemental LIVE or iOS app wich uses
 [https://github.com/jgh-/VideoCore VideoCore library].

 Then you will see how the encoder do not start the stream or even crashes
 (Wirecast does). Wireshark shows a RST TCP packet when server sends S1 and
 waits for C2.

 The root cause of this is the implementation of the RTMP protocol. These
 encoders send C0 and C1 packets together and they expect S0 and S1 sent
 together also. So, sending S0 and S1 on different packets results on the
 encoder closing the connection with the server.

 Patches should be submitted to the ffmpeg-devel mailing list and not this
 bug tracker.

Ticket URL: <https://trac.ffmpeg.org/ticket/6453>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list