[FFmpeg-trac] #5824(avformat:closed): FFmpeg 3.1.3 av_read_frame returning -104 ECONNRESET

FFmpeg trac at avcodec.org
Wed Sep 7 13:13:25 EEST 2016


#5824: FFmpeg 3.1.3 av_read_frame returning -104 ECONNRESET
------------------------------------+--------------------------------------
             Reporter:  Hapie       |                    Owner:
                 Type:  defect      |                   Status:  closed
             Priority:  normal      |                Component:  avformat
              Version:  git-master  |               Resolution:  worksforme
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+--------------------------------------

Comment (by Hapie):

 FFmpeg switch over to http and tcp protocols while streaming. I figured
 out that `tcp_read` function in `tcp.c` of `avformat` containing `recv`
 function is returning -1 with errno is 104 which is ECONNRESET.

 I wrote simple c code to build a socket and connected to the stream and it
 works well. But on device `recv` function return non-zero values for
 sometime and then suddenly returns -1.

 Any idea what's going on with socket connections. Is it the server closing
 the connection or client `Android app with ffmpeg code` closing the
 connection?

 Strange thing is it works fine for other audio streams but disconnects if
 I pause `av_read_pause` for more than 2 minutes (which is default timeout
 120 seconds).

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5824#comment:7>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list