Not able to write the tags in matroskamux

Sebastian Dröge sebastian at centricular.com
Mon Jun 13 07:26:36 UTC 2016


On Fr, 2016-06-10 at 03:26 -0700, brateesh wrote:
> Hi all,
> trying to write tags in the mkv video stream
> pipeline is appsrc|videoconvert|openh264enc|matoskamux|filesink
> 
> code:
> ...
> mux = gst_element_factory_make("matroskamux", NULL);
> ...
> GstTagSetter *tagsetter = GST_TAG_SETTER(mux);
> 	gst_tag_register("test", GST_TAG_FLAG_META,G_TYPE_INT, "-test", 
> "tag to
> test its function", NULL);
> 	gst_tag_setter_add_tags(tagsetter,
> GST_TAG_MERGE_REPLACE,"video-codec","checking-codec",NULL);
>         gst_tag_setter_add_tags(tagsetter,
> GST_TAG_MERGE_APPEND,"test",100,NULL);
> ...
> 
> while reading the tags on bus i can only read default tags
> container-format : Matroska
> video-codec:h264
> 
> even video-codec tag value not changed

matroskamux does not support writing of arbitrary tags currently,
there's only a limited set of tags that are supported.

And the video-codec is not stored as a tag in the Matroska container
but in the codec metadata about the streams (and it is based on the
caps, not the tag event). In the demuxer the tag is then created again
from that.


What are you trying to do?

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160613/f0bdf64d/attachment.sig>


More information about the gstreamer-devel mailing list