id3v2mux

id3v2mux — Adds an ID3v2 header to the beginning of MP3 files using taglib

Synopsis




                    GstId3v2Mux;

Description

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

Element Information

plugin taglib
author Christophe Fergeau <teuf@gnome.org>
class Formatter/Metadata

Details

GstId3v2Mux

typedef struct _GstId3v2Mux GstId3v2Mux;

See Also

GstID3Demux, GstTagSetter