summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2008-12-06 14:13:55 +0000
committerEdward Hervey <bilboed@bilboed.com>2008-12-06 14:13:55 +0000
commit7ebe9f4fe4c86ea689c2c6a44377130c2335113d (patch)
treefada87d269bbbab80f474b802b62911819d83b26 /examples
parenta7d29b2f47ed8d4b805546acad9bcf53d69a8b44 (diff)
examples/gst-discover: Beautify output of discoverer's duration.
Original commit message from CVS: * examples/gst-discover: Beautify output of discoverer's duration.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/gst-discover6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/gst-discover b/examples/gst-discover
index 94c448f..fa630b1 100755
--- a/examples/gst-discover
+++ b/examples/gst-discover
@@ -44,7 +44,7 @@ def succeed(d):
pp('video caps', d.videocaps)
pp('video width (pixels)', d.videowidth)
pp('video height (pixels)', d.videoheight)
- pp('video length (ms)', d.videolength / gst.MSECOND)
+ pp('video length (hh:mm:ss)', gst.TIME_ARGS(d.videolength))
pp('framerate (fps)', '%s/%s' % (d.videorate.num, d.videorate.denom))
pp('has audio', d.is_audio)
@@ -54,9 +54,9 @@ def succeed(d):
pp('sample rate (Hz)', d.audiorate)
pp('sample width (bits)', d.audiowidth)
pp('sample depth (bits)', d.audiodepth)
- pp('audio length (ms)', d.audiolength / gst.MSECOND)
+ pp('audio length (hh:mm:ss)', gst.TIME_ARGS(d.audiolength))
pp('audio channels', d.audiochannels)
-
+
sys.exit(0)
def discover(path):