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 727223 - Add grl-launch tool
Add grl-launch tool
Status: RESOLVED FIXED
Product: grilo
Classification: Other
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: grilo-maint
grilo-maint
Depends on:
Blocks:
 
 
Reported: 2014-03-28 09:37 UTC by Juan A. Suarez Romero
Modified: 2014-04-03 14:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gst-launch to run Grilo from command line (20.00 KB, patch)
2014-03-28 09:47 UTC, Juan A. Suarez Romero
committed Details | Review

Description Juan A. Suarez Romero 2014-03-28 09:37:31 UTC
GStreamer has a nice tool to run gstreamer from command line: gst-launch.

In grilo case, so far we have grilo-test-ui, we encourage people to use to find out if a bug is in Grilo or not, as well as to test things in Grilo.

But clearly we need a more flexible tool, something like gst-launch, that allow to test grilo with different parameters, and save the results for later analysis.
Comment 1 Juan A. Suarez Romero 2014-03-28 09:47:36 UTC
Created attachment 273156 [details] [review]
gst-launch to run Grilo from command line

This tool is inspired by gst-launch.

It allows to run Grilo commands from command-line (so far it can run browse, resolve, search, query and may_resolve).

It allows to specify the flags to use (full, fast_only, ...), the keys to retrieve (or "*" for all), skip, count, and some other parameters.

Passing a media is done either by using the source name (in this case the media is the root container) or a serialized media (either a basic or full serialized media). There's a parameter to print the serialized media so you can copy and paste later for further operations.

Results can be redirected to a file and loaded with a spreadsheet, as they are CSV format.


As example, let's browse Jamendo plugin from the container

$ grl-launch-0.2 -S -k title,artist,album -c 1 browse grl-jamendo
grlbox://grl-jamendo/1,Artists,Artists,
1 result
$ grl-launch-0.2 -S -k title,artist,album -c 1 browse grlbox://grl-jamendo/1
grlbox://grl-jamendo/1%2F5,Both,Both,
1 result
$ grl-launch-0.2 -S -k title,artist,album -c 1 browse grlbox://grl-jamendo/1%2F5
grlbox://grl-jamendo/2%2F33,Simple Exercice,Both,Simple Exercice
1 result
$ grl-launch-0.2 -S -k title,artist,album -c 1 browse grlbox://grl-jamendo/2%2F33
grlaudio://grl-jamendo/4%2F241,Simple Exercice,Both,Simple Exercice
1 result