change h264Parser caps while pipe is running

Patrick Fischer patrick.fischer at vitec.com
Thu Jan 31 14:19:37 UTC 2019


Hello

is it possible to change the caps of the h264Parser during runtime?
I would like to change the "stream-format" from avc to byte-stream at runtime to get NAL units at the output.

The pipe is in the running state:


i have tested

...

gst_element_link_many(data.h264Parser, data.h264parseCapsfilter, data.videoAppSink, NULL);
...


GstCaps *h264ParserFiltercaps = gst_caps_new_simple ("video/x-h264",
                                            "stream-format", G_TYPE_STRING, "byte-stream",  //  <--- change from avc to byte-stream
                                            "parsed", G_TYPE_BOOLEAN, "true",
                                            "alignment", G_TYPE_STRING, "au",
                                            NULL);
g_object_set (G_OBJECT (data.h264parseCapsfilter), "caps", h264ParserFiltercaps, NULL);
gst_caps_unref (h264ParserFiltercaps);


did't change the stream-format :-(



regards

Patrick


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190131/02469b65/attachment.html>


More information about the gstreamer-devel mailing list