Commit 34e83808 authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: Help for interactive keys.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e60e54ce
...@@ -2567,7 +2567,7 @@ static int transcode(AVFormatContext **output_files, ...@@ -2567,7 +2567,7 @@ static int transcode(AVFormatContext **output_files,
if (!using_stdin) { if (!using_stdin) {
if(verbose >= 0) 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); avio_set_interrupt_cb(decode_interrupt_cb);
} }
term_init(); term_init();
...@@ -2603,6 +2603,16 @@ static int transcode(AVFormatContext **output_files, ...@@ -2603,6 +2603,16 @@ static int transcode(AVFormatContext **output_files,
do_pkt_dump = 1; do_pkt_dump = 1;
av_log_set_level(AV_LOG_DEBUG); 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 /* select the stream that we must read now by looking at the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment