GStreamer Good Plugins 0.10 Plugins Reference Manual | ||||
---|---|---|---|---|
GstId3v2Mux;
This element adds ID3v2 tags to the beginning of a stream using the taglib library. More precisely, the tags written are ID3 version 2.4.0 tags (which means in practice that some hardware players or outdated programs might not be able to read them properly).
Applications can set the tags to write using the GstTagSetter interface. Tags sent by upstream elements will be picked up automatically (and merged according to the merge mode set via the tag setter interface).
Here is a simple pipeline that transcodes a file from Ogg/Vorbis to mp3 format with an ID3v2 that contains the same as the the Ogg/Vorbis file:
gst-launch -v filesrc location=foo.ogg ! decodebin ! audioconvert ! lame ! id3v2mux ! filesink location=foo.mp3
Make sure the Ogg/Vorbis file actually has comments to preserve. You can verify the tags were written using:
gst-launch -m filesrc location=foo.mp3 ! id3demux ! fakesink silent=TRUE 2> /dev/null | grep taglist
plugin | taglib |
author | Christophe Fergeau <teuf@gnome.org> |
class | Formatter/Metadata |