[FFmpeg-trac] #9444(avformat:new): No errors on live stream push to invalid http endpoint

FFmpeg trac at avcodec.org
Wed Sep 29 18:40:19 EEST 2021


#9444: No errors on live stream push to invalid http endpoint
-------------------------------------+-------------------------------------
             Reporter:               |                     Type:  defect
  damiano.falcioni                   |
               Status:  new          |                 Priority:  normal
            Component:  avformat     |                  Version:  4.2.4
             Keywords:  http 404     |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 When a live stream is sent to an http endpoint that does not exist (http
 status 404) or, more in general, that return an http error code, FFMPEG
 does not terminate with an error but continue to push data.

 How to reproduce:
 {{{
 % ffmpeg -report -f v4l2 -i /dev/video0 -f mjpeg https://innovation-
 laboratory.org/404

 ffmpeg version 4.2.4-1ubuntu0.1
 built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
  and also with
 ffmpeg version 4.4-full_build
 built with gcc 10.2.0 (Rev6, Built by MSYS2 project)
 }}}

 The same behaviour occur for:
 {{{
 % ffmpeg -report -f v4l2 -i /dev/video0 -f mjpeg https://github.com/404
 }}}

 but for some reason this work as expected and terminate with an error:
 {{{
 % ffmpeg -report -f v4l2 -i /dev/video0 -f mjpeg
 https://www.google.com/404
 }}}

 The issue does not occur when the input is not live, like a mjpeg or any
 other supported file; this is why I tested using the stream from a
 connected webcam.
 Same behaviour can be reproduced on Windows OS using the dshow input.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9444>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list