GNOME Bugzilla – Bug 727223
Add grl-launch tool
Last modified: 2014-04-03 14:34:10 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.
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