[FFmpeg-trac] #6336(undetermined:new): No Way to Cleanly Terminate ffmpeg.exe while capturing screen
FFmpeg
trac at avcodec.org
Thu Apr 20 05:17:57 EEST 2017
#6336: No Way to Cleanly Terminate ffmpeg.exe while capturing screen
-------------------------------------+-------------------------------------
Reporter: dbareis | Type:
Status: new | enhancement
Component: | Priority: normal
undetermined | Version:
Keywords: ffmpeg, | unspecified
terminate, close, automate, batch | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
This is on Windows 7/10 64 bit (but would at least be the same on all
Windows computers), using this command line:
{{{
ffmpeg -y -f gdigrab -i desktop -r 10 -vcodec libx264 -pix_fmt yuv420p
10fps.mp4
}}}
You can manually terminate the program with CTRL+BREAK which is better
than nothing but if you use the command (in a batch/automated process):
{{{
TaskKill /im ffmpeg.exe /F
}}}
then the result is an unusable and corrupted video.
The program already handles CTRL+BREAK, it should probably be simple to
enhance this for the sigterm signal. But it would be nice to be able to
cleanly do this with something like:
{{{
ffmpeg.exe /STOP
}}}
or perhaps:
{{{
ffmpeg.exe /STOP
[AliasDefinedOnExistingCommandLineToAllowSpecificTaskTermination]
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6336>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list