Opened 14 years ago
Closed 14 years ago
#8349 closed patch (fixed)
Better cleanup of ffmpeg process when web streaming is cancelled
Reported by: | Owned by: | Rob Smith | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | Plugin - MythWeb | Version: | 0.23rc2 |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
I use lighttpd, and when the ffmpeg process is spawned by stream_flv.pl it is executed via a 'sh' process (see below). The method used in stream_flv.pl to cleanup ffmpeg is insufficient. The attached patch forces a new process group id, and uses that to terminate the ffmpeg process.
5249 ? 00:00:00 lighttpd 5846 ? 00:00:00 php-cgi <defunct> 5849 ? 00:00:00 php-cgi <defunct> 6006 ? 00:00:00 php-cgi 6116 ? 00:00:01 php-cgi 7019 ? 00:00:00 php-cgi 7020 ? 00:00:00 php-cgi 7022 ? 00:00:00 perl 7024 ? 00:00:00 sh 7025 ? 00:00:05 ffmpeg
Attachments (1)
Change History (2)
Changed 14 years ago by
Attachment: | stream_flv.pl.diff added |
---|
comment:1 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
(In [24926]) Fixes #8349, More agressive ffmpeg post stream cleanup