<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello<br>
<br>
is it possible to change the caps of the h264Parser during runtime?<br>
I would like to change the "stream-format" from avc to byte-stream at runtime to get NAL units at the output.<br>
<p>The pipe is in the running state:</p>
<p><br>
</p>
<p>i have tested</p>
<p>...</p>
<pre style="background-color:#ffffff;color:#000000;font-family:'DejaVu Sans Mono';font-size:8,6pt;">gst_element_link_many(data.<span style="color:#660e7a;">h264Parser</span>, data.<span style="color:#660e7a;">h264parseCapsfilter</span>, data.<span style="color:#660e7a;">videoAppSink</span>, <span style="color:#1f542e;font-weight:bold;">NULL</span>);
...
</pre>
<pre style="background-color:#ffffff;color:#000000;font-family:'DejaVu Sans Mono';font-size:8,6pt;"><span style="color:#371f80;">GstCaps </span>*h264ParserFiltercaps = gst_caps_new_simple (<span style="color:#008000;font-weight:bold;">"video/x-h264"</span>,
                                            <span style="color:#008000;font-weight:bold;">"stream-format"</span>, <span style="color:#1f542e;font-weight:bold;">G_TYPE_STRING</span>, <span style="color:#008000;font-weight:bold;">"byte-stream"</span>,  //  <--- change from avc to byte-stream
                                            <span style="color:#008000;font-weight:bold;">"parsed"</span>, <span style="color:#1f542e;font-weight:bold;">G_TYPE_BOOLEAN</span>, <span style="color:#008000;font-weight:bold;">"true"</span>,
                                            <span style="color:#008000;font-weight:bold;">"alignment"</span>, <span style="color:#1f542e;font-weight:bold;">G_TYPE_STRING</span>, <span style="color:#008000;font-weight:bold;">"au"</span>,
                                            <span style="color:#1f542e;font-weight:bold;">NULL</span>);
g_object_set (<span style="color:#1f542e;font-weight:bold;">G_OBJECT </span>(<span style="color:#660e7a;">data</span>.<span style="color:#660e7a;">h264parseCapsfilter</span>), <span style="color:#008000;font-weight:bold;">"caps"</span>, h264ParserFiltercaps, <span style="color:#1f542e;font-weight:bold;">NULL</span>);
gst_caps_unref (h264ParserFiltercaps);


did't change the stream-format :-(

</pre>
<br>
regards<br>
<br>
Patrick<br>
<br>
<br>
</body>
</html>