GNOME Bugzilla – Bug 760905
taginject: Unable to add tags with spaces using example pipeline from docs
Last modified: 2016-01-21 15:34:21 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
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