Commit 7ebe9f4f authored by Edward Hervey's avatar Edward Hervey 🤘

examples/gst-discover: Beautify output of discoverer's duration.

Original commit message from CVS:
* examples/gst-discover:
Beautify output of discoverer's duration.
parent a7d29b2f
2008-12-06 Edward Hervey <edward.hervey@collabora.co.uk>
* examples/gst-discover:
Beautify output of discoverer's duration.
2008-12-06 Edward Hervey <edward.hervey@collabora.co.uk>
* testsuite/test_event.py:
......
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment