[FFmpeg-devel] [PATCH 1/1] fftools/ffmpeg: Output log message when interactive q command is received
Soft Works
softworkz at hotmail.com
Wed Oct 13 11:34:10 EEST 2021
When viewing logs, it's sometimes useful to be able to see whether
execution was ended via q command.
Signed-off-by: softworkz <softworkz at hotmail.com>
---
fftools/ffmpeg.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index 7545b7c68e..d141f34df9 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -3991,8 +3991,10 @@ static int check_keyboard_interaction(int64_t cur_time)
last_time = cur_time;
}else
key = -1;
- if (key == 'q')
+ if (key == 'q') {
+ av_log(NULL, AV_LOG_INFO, "\n\n[q] command received. Exiting.\n\n");
return AVERROR_EXIT;
+ }
if (key == '+') av_log_set_level(av_log_get_level()+10);
if (key == '-') av_log_set_level(av_log_get_level()-10);
if (key == 's') qp_hist ^= 1;
--
2.30.2.windows.1
More information about the ffmpeg-devel
mailing list