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 760905 - taginject: Unable to add tags with spaces using example pipeline from docs
taginject: Unable to add tags with spaces using example pipeline from docs
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.x
Other Linux
: Normal minor
: 1.7.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-01-20 21:22 UTC by Michael Monreal
Modified: 2016-01-21 15:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Monreal 2016-01-20 21:22:30 UTC
The gstreamer docs [1] describe how to quote special characters when using the taginject element. The given example works for gstreamer-0.10 (gstreamer-plugins-good-0.10.31-15.fc23.x86_64) but fails with gstreamer-1 (gstreamer1-plugins-good-1.6.2-1.fc23.x86_64):

$ gst-launch-1.0 audiotestsrc num-buffers=100 ! taginject tags="keywords=\{\"testone\",\"audio\"\},title=\"audio testtone\"" ! vorbisenc ! oggmux ! filesink location=test.ogg
WARNING: erroneous pipeline: no element "testtone"

I also tried simple quoting like tags="album-artist=foo bar" but that does not work ether. Please fix gstreamer and/or the docs.

[1] http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-taginject.html
Comment 1 Tim-Philipp Müller 2016-01-21 15:34:21 UTC
Add a \ before the space in \"audio testtone\". This is not a problem in code, just with gst-launch-1.0 used from the shell.

This should fix it:

commit 5d147467928b47b12439cc1519041a4093357aef
Author: Tim-Philipp Müller <tim@centricular.com>
Date:   Thu Jan 21 15:29:46 2016 +0000

    taginject: fix sample pipeline in docs
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679571