Live Streaming - process no longer terminates
|Reproduced by developer:
|Analyzed by developer:
Summary of the bug:
Recently installed ffmpeg on a new server (which provided me with a newer version).
ffmpeg version 3.0.2-4~bpo8+1 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.9.2 (Debian 4.9.2-10)
On the old version, the ffmpeg process would stop running if the RTMP stream ceased to publish. Event handlers in our automated software would detect this "end" and proceed to handle it as the code designates.
In the new version, the ffmpeg continues to process and run indefinitely when the input ceases to exist. There also appears to be no way to suggest that the process SHOULD stop if the input ceases to exist. We have spent hours looking for a work-around but nothing is effective in stopping the process when an rtmp input ceases to publish.
How to reproduce:
% /usr/bin/ffmpeg -hide_banner -nostdin -y -threads 2 -i rtmp://localhost/live-test/test -acodec aac -vcodec copy -f flv rtmp://localhost/live-push/test ffmpeg version 3.2.4-1~bpo8+1 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 4.9.2 (Debian 4.9.2-10)