FS#58619 - [ffmpeg] Ctrl^C / Q doesn't always kill ffmpeg process
Attached to Project:
Arch Linux
Opened by Elias (Bleuzen) - Wednesday, 16 May 2018, 11:52 GMT
Last edited by Maxime Gauduin (Alucryd) - Tuesday, 20 August 2019, 16:17 GMT
Opened by Elias (Bleuzen) - Wednesday, 16 May 2018, 11:52 GMT
Last edited by Maxime Gauduin (Alucryd) - Tuesday, 20 August 2019, 16:17 GMT
|
Details
Description:
When I use ffmpeg to record something and want to stop it (with pressing Ctrl^C or Q) it stops the recording, but the ffmpeg process stays alive. Not only stays alive, the CPU usage of that process goes up to 100% for one thread / core (12.5% CPU usage in my case). I have to press Ctrl^C a second time to stop the ffmpeg process. This should not be needed, as on other distros where I tryed it (Ubuntu and Suse) ffmpeg directly stops when pressing Ctrl^C the first time and it doesn't left over a process which uses one cpu core. Here I have to press Ctrl^C two times to not left over that stupid ffmpeg process. Additional info: * package version: 1:4.0-2 Steps to reproduce: 1. Start a recording with ffmpeg, for example an audio recording: ffmpeg -f alsa -i pulse -acodec flac "ffrec.flac" 2. Wait some seconds (let it record for at least 5 seconds) 3. Press Ctrl^C The ffmpeg process should end here usually (it does on other linux distros). But it stays alive and uses more cpu. To kill it, you have to press Ctrl^C a second time. But this should not be needed. |
This task depends upon
Closed by Maxime Gauduin (Alucryd)
Tuesday, 20 August 2019, 16:17 GMT
Reason for closing: Fixed
Additional comments about closing: 4.2
Tuesday, 20 August 2019, 16:17 GMT
Reason for closing: Fixed
Additional comments about closing: 4.2
Tested other distros where it works as it should (today):
- Ubuntu 18.04 with ffmpeg 3.4.2-2
- Solus with ffmpeg 3.4.2-52
I also tested it in the past with OpenSUSE Tumbleweed with ffmpeg 4.0, where it also worked. But I don't have an openSuse install there right now, so I'm not sure if it still works there with 4.0.1.
https://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ea93b74074c509f59942c7ed4112ed3d64c3af33
https://git.videolan.org/gitweb.cgi/ffmpeg.git/?p=ffmpeg.git;a=commit;h=f9a061a31c3d2d81b3ec1e1b9b37187a358cdd9e
It has not been backported to the 4.1 release branch but it will be included in the next major release.