diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-05-14 02:54:28 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-05-14 02:54:28 +0200 |
commit | 0f6a8579af0bd7e895e1bff32c73de48ac8a5853 (patch) | |
tree | 9ec425f65ec0d08b5d5473399356c8470cedd914 /ffmpeg.c | |
parent | b025431bfee2f81a5a0a613f49cac354e4aa9dfa (diff) | |
download | ffmpeg-0f6a8579af0bd7e895e1bff32c73de48ac8a5853.tar.gz |
ffmpeg: Interactivity support. Try pressing +-hs.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -2591,6 +2591,18 @@ static int transcode(AVFormatContext **output_files, key = read_key(); if (key == 'q') break; + if (key == '+') verbose++; + if (key == '-') verbose--; + if (key == 's') qp_hist ^= 1; + if (key == 'h'){ + if (do_hex_dump){ + do_hex_dump = do_pkt_dump = 0; + } else if(do_pkt_dump){ + do_hex_dump = 1; + } else + do_pkt_dump = 1; + av_log_set_level(AV_LOG_DEBUG); + } } /* select the stream that we must read now by looking at the |