[FFmpeg-trac] #7975(ffmpeg:new): HLS HTTP PUT fails with http_persistant and connection closed

FFmpeg trac at avcodec.org
Wed Jun 26 22:34:34 EEST 2019


#7975: HLS HTTP PUT fails with http_persistant and connection closed
-------------------------------------+-------------------------------------
             Reporter:  ianklassen   |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  ffmpeg       |                  Version:  git-
             Keywords:  hls http     |  master
  http_persistent put                |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:

 When live streaming (HLS) with a persistent HTTP connection, if the web
 server closes the connection ffmpeg shuts down.

 How to reproduce:

 For example, when streaming to an Apache web server (2.4.29/Ubuntu) with
 "!KeepAlive On" and "!MaxKeepAliveRequests 10" ffmpeg will fail on the
 11th PUT request when Apache closes the TCP connection.

 {{{ ~/ffmpeg/ffmpeg -report -re -i test.mp4 -acodec copy -vcodec copy -g
 60 -hls_flags +append_list -hls_list_size 0 -hls_playlist_type event
 -hls_time 6 -keyint_min 60 -method PUT -http_persistent 1 -sc_threshold 0
 http://www.sampletestsite.com/stream.m3u8 }}}

 Output:

 {{{

 [AVIOContext @ 0x558256a2aa40] Statistics: 0 seeks, 12 writeouts
 av_interleaved_write_frame(): Broken pipe
 No more output streams to write to, finishing.
 [AVIOContext @ 0x558256a37900] Statistics: 0 seeks, 3711 writeouts
 [http @ 0x558256a373c0] URL read error:  -541478725

 }}}

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


More information about the FFmpeg-trac mailing list