[FFmpeg-trac] #9206(undetermined:new): ffmpeg goes into interruptible sleep because of temporary network problem and can not recover

FFmpeg trac at avcodec.org
Sun May 9 16:47:02 EEST 2021


#9206: ffmpeg goes into interruptible sleep because of temporary network problem
and can not recover
-------------------------------------+-------------------------------------
             Reporter:  Jarno Suni   |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:  http         |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by Jarno Suni):

 It took me few hours to get the required ffmpeg binary (with no extra
 codecs; not by the instructions you told me to search for), and then few
 minutes to do the test. I could not use the original stream because it is
 no more available. I happened to find one local radio stream that uses a
 supported open format.

 {{{
 $ ./ffmpeg -i https://stream.alandsradio.ax/stream.ogg -c copy
 /data/test.ogg
 ffmpeg version N-102441-ge2301feabc Copyright (c) 2000-2021 the FFmpeg
 developers
   built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
   configuration: --enable-gnutls
   libavutil      57.  0.100 / 57.  0.100
   libavcodec     59.  0.100 / 59.  0.100
   libavformat    59.  0.101 / 59.  0.101
   libavdevice    59.  0.100 / 59.  0.100
   libavfilter     8.  0.101 /  8.  0.101
   libswscale      6.  0.100 /  6.  0.100
   libswresample   4.  0.100 /  4.  0.100
 Input #0, ogg, from 'https://stream.alandsradio.ax/stream.ogg':
   Metadata:
     icy-br          : 128
     icy-name        : no name
     icy-pub         : 0
   Duration: N/A, start: 665253.260000, bitrate: N/A
   Stream #0:0: Audio: opus, 48000 Hz, stereo, fltp
     Metadata:
       ENCODER         : 0.1.15
 Output #0, ogg, to '/data/test.ogg':
   Metadata:
     icy-br          : 128
     icy-name        : no name
     icy-pub         : 0
     encoder         : Lavf59.0.101
   Stream #0:0: Audio: opus, 48000 Hz, stereo, fltp
     Metadata:
       ENCODER         : 0.1.15
       icy-br          : 128
       icy-name        : no name
       icy-pub         : 0
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 size=     206kB time=00:00:14.03 bitrate= 120.1kbits/s speed=1.36x
 }}}

 I unplugged ethernet cable for few minutes and reconnected. ffmpeg could
 neither proceed nor quit; it did not react to q, so I pressed Ctrl-C to
 interrupt to get this:

 {{{
 ^Chttps://stream.alandsradio.ax/stream.ogg: Input/output error.36x
 Error writing trailer of /data/test.ogg: Immediate exit requested
 size=     227kB time=00:00:14.33 bitrate= 129.8kbits/s speed=0.0218x
 video:0kB audio:225kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.861014%
 Exiting normally, received signal 2.

 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9206#comment:10>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list