[FFmpeg-trac] #7339(avformat:new): HLS-Retry mechanism for HTTP-Upload segments

FFmpeg trac at avcodec.org
Mon Oct 14 15:49:16 EEST 2019

#7339: HLS-Retry mechanism for HTTP-Upload segments
             Reporter:  nitrat       |                    Owner:
                 Type:  enhancement  |                   Status:  new
             Priority:  normal       |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  hls          |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |

Comment (by smallishzulu):

 This problem happens only for the cases like:

 1) Server is there and accpets the connection (handshake)
 2) However, server does hve the patch to PUT the data.

 On; http.c at http_connect, before ffurl_write functions, there needs to
 have a block to check if URL is valid.

 A simple bash check:

 curl -w '%{http_code}' --request PUT --url
 ""/  --data ''
 curl: (52) Empty reply from server

 curl -w '%{http_code}' --request PUT --url
 ""  --data ''

 (bash is just an example, a c code need to be written. I work on it.)

 If path is not there, HTTP server returns Interal Server Error and curl
 reports the same.

 I couldn't find a better way to handle this becuase, ffurl_write goes to
 avio.c and you cant access HTTPContext from there.

Ticket URL: <https://trac.ffmpeg.org/ticket/7339#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list