After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 751903 - gst-play: print audio/video/subtitle tracks details
gst-play: print audio/video/subtitle tracks details
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-07-03 13:57 UTC by Hugues Fruchet
Modified: 2018-11-03 11:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
tools: gst-play: print audio/video/subtitle tracks details (4.33 KB, patch)
2015-07-03 13:57 UTC, Hugues Fruchet
none Details | Review

Description Hugues Fruchet 2015-07-03 13:57:40 UTC
Created attachment 306712 [details] [review]
tools: gst-play: print audio/video/subtitle tracks details

Allows to print tracks details when playbin reach playing state:

* audio
$> gst-play-1.0 /gorillaz.wav
0 video stream(s), 1 audio stream(s), 0 text stream(s)
|
|-[audio]
  |-[audio stream 0]
    |- codec: Uncompressed 16-bit PCM audio


* video
$> gst-play-1.0 /foreman.3gp             
1 video stream(s), 0 audio stream(s), 0 text stream(s)
|-[video]
  |-[video stream 0]
    |- codec: H.264


* audio/video
$> gst-play-1.0 /big_buck_bunny_1080p_h264.mov
1 video stream(s), 1 audio stream(s), 0 text stream(s)
|-[video]
| |-[video stream 0]
|   |- codec: H.264
|
|-[audio]
  |-[audio stream 0]
    |- codec: MPEG-4 AAC
    |- bitrate: 359245


* audio/video/subtitles, multiple tracks
$> gst-play-1.0 "dvb://ARTE HD"
1 video stream(s), 4 audio stream(s), 3 text stream(s)
|-[video]
| |-[video stream 0]
|   |- codec: H.264
|
|-[audio]
| |-[audio stream 0]
| | |- codec: MPEG-1 Layer 2 (MP2)
| | |- language: fr
| | |- bitrate: 256000
| |-[audio stream 1]
| | |- codec: MPEG-1 Layer 2 (MP2)
| | |- language: qaa
| | |- bitrate: 256000
| |-[audio stream 2]
| | |- codec: MPEG-1 Layer 2 (MP2)
| | |- language: de
| | |- bitrate: 128000
| |-[audio stream 3]
|   |- codec: MPEG-1 Layer 2 (MP2)
|   |- language: qad
|   |- bitrate: 128000
|
|-[subtitle]
  |-[subtitle stream 0]
  | |- language: fr
  |-[subtitle stream 1]
  | |- language: de
  |-[subtitle stream 2]
    |- language: fr
Comment 1 Hugues Fruchet 2015-07-03 14:01:42 UTC
This code is derived from GStreamer SDK code example here: http://docs.gstreamer.com/display/GstSDK/Playback+tutorial+2%3A+Subtitle+management
Comment 2 Sebastian Dröge (slomo) 2015-07-03 14:04:34 UTC
The one in GstPlayer has this since some time already, together with a proper media information API: https://github.com/sdroege/gst-player/tree/master/gst-play


I plan to replace gst-play with the one from GstPlayer after 1.6 release, so not sure how useful it is to merge this now.
Comment 3 GStreamer system administrator 2018-11-03 11:39:13 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/205.