GNOME Bugzilla – Bug 751903
gst-play: print audio/video/subtitle tracks details
Last modified: 2018-11-03 11:39:13 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
This code is derived from GStreamer SDK code example here: http://docs.gstreamer.com/display/GstSDK/Playback+tutorial+2%3A+Subtitle+management
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.
-- 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.