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

FFmpeg trac at avcodec.org
Mon Sep 5 15:04:05 EEST 2016

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

 I am streaming mp3 audio from url using ffmpeg 3.1.3 which is able to play
 audio nicely for 5 seconds and then it hangs.

 On debugging in logs I found av_read_frame returning -104 value which is I
 guess ECONNRESET error.

 Any idea why connection is getting reset?
 Plus on some other streams if a pause player for more than 120 seconds
 which is default reconnect delay time limit, it return -104 again.

 [I increased reconnect delay limit by using avoptions -reconnect_at_eof 1,
 -reconnect_delay 3600, and -reconnect 1]

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

More information about the FFmpeg-trac mailing list