projects
/
experiments
/
gstreamer.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
1a730f9
)
gst-trick-mode.py: pass the speed rate as a command line argument
author
Antonio Ospite <ao2@ao2.it>
Wed, 17 Sep 2014 11:35:48 +0000
(13:35 +0200)
committer
Antonio Ospite <ao2@ao2.it>
Wed, 17 Sep 2014 11:44:02 +0000
(13:44 +0200)
python/gst-trick-mode.py
patch
|
blob
|
history
diff --git
a/python/gst-trick-mode.py
b/python/gst-trick-mode.py
index
0bb5877
..
45e7af2
100755
(executable)
--- a/
python/gst-trick-mode.py
+++ b/
python/gst-trick-mode.py
@@
-72,15
+72,16
@@
class Player:
def main(args):
def usage():
- sys.stdout.write("usage: %s <filename>\n" % args[0])
+ sys.stdout.write("usage: %s <filename>
<speedrate>
\n" % args[0])
- if len(args) !=
2
:
+ if len(args) !=
3
:
usage()
sys.exit(1)
uri = Gst.filename_to_uri(args[1])
+ rate = float(args[2])
- player = Player(uri,
3.0
)
+ player = Player(uri,
rate
)
player.run()
if __name__ == '__main__':