[FFmpeg-trac] #9444(avformat:new): No errors when a live stream is pushed to an invalid http endpoint

FFmpeg trac at avcodec.org
Thu Sep 30 01:49:55 EEST 2021


#9444: No errors when a live stream is pushed to an invalid http endpoint
-------------------------------------+-------------------------------------
             Reporter:               |                    Owner:  (none)
  damiano.falcioni                   |
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avformat
              Version:  4.2.4        |               Resolution:
             Keywords:  http 404     |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by Brad Isbell):

 FFmpeg doesn't send the {{{Expect: 100-continue}}} message.  Therefore, it
 is not possible for FFmpeg to know if there is a 404 or some other error
 status code, as the server isn't allowed to respond until the entire
 request body is sent.  So, in the case of an indefinite length stream,
 such as your webcam, the HTTP request just continues running unless the
 server closes the underlying socket.

 So, I think what you're asking for is an enhancement to add support for
 {{{100 Continue}}} responses, and for {{{Expect: 100-continue}}} to be
 added by default to HTTP requests.  (And, it'd be good to verify that this
 doesn't mess up Icecast connections.)
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9444#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list