No errors when a live stream is pushed to an invalid http endpoint
|Reported by:||damiano.falcioni||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
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.
Change History (6)
comment:1 by , 4 months ago
|Summary:||No errors on live stream push to invalid http endpoint → No errors when a live stream is pushed to an invalid http endpoint|