[FFmpeg-trac] #2181(avformat:new): AVIO should provide a way to reconnect broken network streams

FFmpeg trac at avcodec.org
Thu Jan 24 18:01:18 CET 2013


#2181: AVIO should provide a way to reconnect broken network streams
----------------------------------+---------------------------------------
             Reporter:  gjdfgh    |                     Type:  enhancement
               Status:  new       |                 Priority:  normal
            Component:  avformat  |                  Version:  git-master
             Keywords:            |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+---------------------------------------
 How to reproduce:
 {{{
 Terminal 1:
 % while true ; do nc -l -p 10000 ; done

 Terminal 2:
 % ffplay http://localhost:10000
 }}}

 Now terminate nc on terminal 1 with ctrl+c (the shell will start another
 nc instance immediately). ffplay will just terminate with
 "http://localhost:10000: Input/output error", while mplayer (using the
 same URL) will reconnect.

 I suggest libavformat should do one of the following:
 1. provide a "reconnect" API call
 2. transparently try to reconnect internally, until a timeout is reached

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2181>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list