mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
examples/gst-discover: Beautify output of discoverer's duration.
Original commit message from CVS: * examples/gst-discover: Beautify output of discoverer's duration.
This commit is contained in:
parent
a7d29b2f47
commit
7ebe9f4fe4
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
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):
|
||||
|
|
Loading…
Reference in a new issue