Opened 13 months ago
Last modified 7 months ago
#11604 new defect
Infinite loop filter does not shutdown gracefully on SIGTERM
| Reported by: | r3d | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | ffmpeg |
| Version: | 7.1 | Keywords: | loop |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description
Summary of the bug:
When using the video loop filter with loop=-1 and then trying to terminate the ffmpeg process by sending a SIGTERM, the process does not terminate in a reasonable amount of time and needs to be killed.
How to reproduce:
% ffmpeg -hwaccel auto -nostdin -i path/to/MPEG-2/video/file.m2v -filter_complex "[0]scale=height=1080:width=1920[s0];[s0]loop=loop=-1:size=200:start=25[s1]" -map "[s1]" -f rawvideo -fps_mode passthrough -loglevel error -pix_fmt rgb24 -report pipe: ffmpeg version 7.1 Copyright (c) 2000-2024 the FFmpeg developers built with gcc 14 (SUSE Linux) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --incdir=/usr/include/ffmpeg --extra-cflags='-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -ffat-lto-objects -g' --optflags='-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -ffat-lto-objects -g' --disable-htmlpages --enable-pic --disable-stripping --enable-shared --disable-static --enable-gpl --enable-version3 --enable-libsmbclient --disable-openssl --enable-gnutls --enable-ladspa --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libdc1394 --enable-libdrm --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libjack -- libavutil 59. 39.100 / 59. 39.100 libavcodec 61. 19.100 / 61. 19.100 libavformat 61. 7.100 / 61. 7.100 libavdevice 61. 3.100 / 61. 3.100 libavfilter 10. 4.100 / 10. 4.100 libswscale 8. 3.100 / 8. 3.100 libswresample 5. 3.100 / 5. 3.100 libpostproc 58. 3.100 / 58. 3.100
Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.
Attachments (1)
Change History (3)
by , 13 months ago
| Attachment: | ffmpeg-20250523-100125.log added |
|---|
comment:2 by , 7 months ago
I tested it again under 7.1.2 with this fix included: https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/d7173e982ec815dcf70999c8683c465b99ce249c. But the problem remains.
Note:
See TracTickets
for help on using tickets.



ffmpeg output log produced with "-report"