aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-05-14 15:51:47 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-05-14 15:52:40 +0200
commit34e838083e385a96640f07923b2b45798a12baa4 (patch)
tree16e8828a387b579db8b8711a06bd525305b555c9
parente60e54ceb55ae81f071a0f36cc87a39488047fd1 (diff)
downloadffmpeg-34e838083e385a96640f07923b2b45798a12baa4.tar.gz
ffmpeg: Help for interactive keys.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--ffmpeg.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index f32255984b..4277baff75 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2567,7 +2567,7 @@ static int transcode(AVFormatContext **output_files,
if (!using_stdin) {
if(verbose >= 0)
- fprintf(stderr, "Press [q] to stop encoding\n");
+ fprintf(stderr, "Press [q] to stop, [?] for help\n");
avio_set_interrupt_cb(decode_interrupt_cb);
}
term_init();
@@ -2603,6 +2603,16 @@ static int transcode(AVFormatContext **output_files,
do_pkt_dump = 1;
av_log_set_level(AV_LOG_DEBUG);
}
+ if (key == '?'){
+ fprintf(stderr, "key function\n"
+ "? show this help\n"
+ "+ increase verbosity\n"
+ "- decrease verbosity\n"
+ "h dump packets/hex press to cycle through the 3 states\n"
+ "q quit\n"
+ "s Show QP histogram\n"
+ );
+ }
}
/* select the stream that we must read now by looking at the