examples/gst-discover: Show duration of audio/video streams.

Original commit message from CVS:
reviewed by: Edward Hervey  <bilboed@bilboed.com>
* examples/gst-discover:
Show duration of audio/video streams.
Specify units for values.
Fixes #432521
This commit is contained in:
Edward Hervey 2007-07-27 11:04:55 +00:00
parent c45722519b
commit c2a593851e
2 changed files with 16 additions and 6 deletions

View file

@ -1,3 +1,11 @@
2007-07-27 Aidan Delaney <a.j.delaney@brighton.ac.uk>
reviewed by: Edward Hervey <bilboed@bilboed.com>
* examples/gst-discover:
Show duration of audio/video streams.
Specify units for values.
Fixes #432521
2007-07-20 Stefan Kost <ensonic@users.sf.net>
* gst/gst-disable-loadsave.ignore:

View file

@ -42,17 +42,19 @@ def succeed(d):
pp('has video', d.is_video)
if d.is_video:
pp('video caps', d.videocaps)
pp('video width', d.videowidth)
pp('video height', d.videoheight)
pp('framerate', '%s/%s' % (d.videorate.num, d.videorate.denom))
pp('video width (pixels)', d.videowidth)
pp('video height (pixels)', d.videoheight)
pp('video length (ms)', d.videolength / gst.MSECOND)
pp('framerate (fps)', '%s/%s' % (d.videorate.num, d.videorate.denom))
pp('has audio', d.is_audio)
if d.is_audio:
pp('audio caps', d.audiocaps)
pp('audio format', d.audiofloat and 'floating-point' or 'integer')
pp('sample rate', d.audiorate)
pp('sample width', d.audiowidth)
pp('sample depth', d.audiodepth)
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 channels', d.audiochannels)
sys.exit(0)