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 553520 - tools: add gst-play utility that wraps playbin for testing purposes
tools: add gst-play utility that wraps playbin for testing purposes
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal enhancement
: 1.1.4
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 610086 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-09-24 07:16 UTC by Stefan Sauer (gstreamer, gtkdoc dev)
Modified: 2013-08-17 15:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
convinience script for "gst-launch [opts] playbin uri=<file|uri>" (541 bytes, text/plain)
2008-09-24 07:17 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
  Details
tools: add simple command-line gst-play utility for testing purposes (10.22 KB, patch)
2013-08-14 16:11 UTC, Tim-Philipp Müller
committed Details | Review

Description Stefan Sauer (gstreamer, gtkdoc dev) 2008-09-24 07:16:08 UTC
playbin expects a full uri which is inconvinient to type. I am using a small shell-script called gst-play to play files from local directory, full paths and streams. I suspect that I am not the only one who has such a script, what about merging the niceties from all of them and adding this to gstreamer/tools?
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2008-09-24 07:17:35 UTC
Created attachment 119277 [details]
convinience script for "gst-launch [opts] playbin uri=<file|uri>"
Comment 2 Edward Hervey 2013-08-13 18:45:15 UTC
This bug has an assigned developer but has not received activity in almost a year.

Is the assigned person still working on this ?
Comment 3 Tim-Philipp Müller 2013-08-14 16:11:24 UTC
Created attachment 251623 [details] [review]
tools: add simple command-line gst-play utility for testing purposes

Differs from a plain gst-launch-1.0 playbin uri=... pipeline in that
it can take multiple arguments and as such allows testing of things
like gapless playback, switching between different formats and the
like. Very minimal at this point.
Comment 4 Tim-Philipp Müller 2013-08-14 16:13:31 UTC
No script please.

I have WONTFIXed requests like this in the past, but have changed my mind on that. A little command line utility that's packaged and gets installed might be useful after all, even more so if it can take multiple arguments.
Comment 5 Sebastian Dröge (slomo) 2013-08-15 07:55:57 UTC
Review of attachment 251623 [details] [review]:

Looks good, ship it :)

IIRC Wim had some code to catch keypresses somewhere, which would allow to implement seeking with the arrow keys for example

::: tools/gst-play.c
@@ +28,3 @@
+#define GST_CAT_DEFAULT play_debug
+
+/* FIXME: add gst-i18n-app.h ? */

Yes?

@@ +119,3 @@
+      }
+      break;
+    case GST_MESSAGE_ERROR:{

Maybe print warnings too but don't exit?
Comment 6 Sebastian Dröge (slomo) 2013-08-16 11:54:49 UTC
*** Bug 610086 has been marked as a duplicate of this bug. ***
Comment 7 Tim-Philipp Müller 2013-08-16 14:47:01 UTC
Added some more bits, like buffering handling and some such.

 commit 8cd2d0a67293aa4a7fb6fe440fd209dd31f28a3a
 Author: Tim-Philipp Müller <tim@centricular.net>
 Date:   Wed Aug 14 17:04:19 2013 +0100

    tools: add simple command-line gst-play utility for testing purposes
    
    Differs from a plain gst-launch-1.0 playbin uri=... pipeline in that
    it can take multiple arguments and as such allows testing of things
    like gapless playback, switching between different formats and the
    like. Very minimal at this point, we'll probably want to add
    interactive controls and more options at some point.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=553520
Comment 8 Stefan Sauer (gstreamer, gtkdoc dev) 2013-08-17 12:29:16 UTC
Shouldn't this have a trivial man-page?
Comment 9 Tim-Philipp Müller 2013-08-17 15:42:18 UTC
> Shouldn't this have a trivial man-page?

It should. I'll add one. (I knew there was something missing..)