[FFmpeg-cvslog] ffplay: add 10 minute seek support to ffplay
Panagiotis H.M. Issaris
git at videolan.org
Fri Dec 16 15:33:45 CET 2011
ffmpeg | branch: release/0.9 | Panagiotis H.M. Issaris <takis.issaris at uhasselt.be> | Mon Nov 28 13:48:13 2011 +0100| [2a66a653413b36e8171aa4db758f7c51e1304f4d] | committer: Michael Niedermayer
ffplay: add 10 minute seek support to ffplay
Signed-off-by: Marton Balint <cus at passwd.hu>
(cherry picked from commit 91a3ea671adda0039c6c221f158a88391416b574)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2a66a653413b36e8171aa4db758f7c51e1304f4d
---
doc/ffplay.texi | 3 +++
ffplay.c | 7 +++++++
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/doc/ffplay.texi b/doc/ffplay.texi
index b4d6dbc..06666f6 100644
--- a/doc/ffplay.texi
+++ b/doc/ffplay.texi
@@ -168,6 +168,9 @@ Seek backward/forward 10 seconds.
@item down/up
Seek backward/forward 1 minute.
+ at item page down/page up
+Seek backward/forward 10 minutes.
+
@item mouse click
Seek to percentage in file corresponding to fraction of width.
diff --git a/ffplay.c b/ffplay.c
index 04289df..9f3be0c 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2853,6 +2853,12 @@ static void event_loop(VideoState *cur_stream)
case SDLK_w:
toggle_audio_display(cur_stream);
break;
+ case SDLK_PAGEUP:
+ incr = 600.0;
+ goto do_seek;
+ case SDLK_PAGEDOWN:
+ incr = -600.0;
+ goto do_seek;
case SDLK_LEFT:
incr = -10.0;
goto do_seek;
@@ -3122,6 +3128,7 @@ static int opt_help(const char *opt, const char *arg)
"s activate frame-step mode\n"
"left/right seek backward/forward 10 seconds\n"
"down/up seek backward/forward 1 minute\n"
+ "page down/page up seek backward/forward 10 minutes\n"
"mouse click seek to percentage in file corresponding to fraction of width\n"
);
return 0;
More information about the ffmpeg-cvslog
mailing list