taginject

Element that injects new metadata tags, but passes incoming data through unmodified.

Example launch lines

 gst-launch-1.0 audiotestsrc num-buffers=100 ! taginject tags="title=testsrc,artist=gstreamer" ! vorbisenc ! oggmux ! filesink location=test.ogg

set title and artist

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

set keywords and title demonstrating quoting of special chars and handling lists

 gst-launch-1.0.exe audiotestsrc num-buffers=500 ! taginject tags="title=MyTitle,artist=MyArtist,album=MyAlbum,genre=MyGenre" scope=global ! qtmux ! filesink location=test.m4a

set title, artist, album and genre. set scope as global

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──GstBaseTransform
                    ╰──taginject

Factory details

Authors: – Stefan Kost

Classification:Generic

Rank – none

Plugin – debug

Package – GStreamer Good Plug-ins

Pad Templates

sink

ANY

Presencealways

Directionsink

Object typeGstPad


src

ANY

Presencealways

Directionsrc

Object typeGstPad


Properties

merge-mode

“merge-mode” GstTagMergeMode *

Merge mode to merge tags from this element with upstream tags.

Flags : Read / Write

Default value : replace (2)

Since : 1.26


scope

“scope” GstTagScope *

Scope of tags to inject (stream | global).

Flags : Read / Write

Default value : stream (0)

Since : 1.24


tags

“tags” gchararray

List of tags to inject into the target file

Flags : Read / Write

Default value : NULL


The results of the search are