mirror of https://git.ffmpeg.org/ffmpeg.git
ffmpeg: Interactivity support. Try pressing +-hs.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
b025431bfe
commit
0f6a8579af
12
ffmpeg.c
12
ffmpeg.c
|
@ -2591,6 +2591,18 @@ static int transcode(AVFormatContext **output_files,
|
||||||
key = read_key();
|
key = read_key();
|
||||||
if (key == 'q')
|
if (key == 'q')
|
||||||
break;
|
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
|
/* select the stream that we must read now by looking at the
|
||||||
|
|
Loading…
Reference in New Issue