<div dir="ltr">Hello Mustafa.<br><div><br></div><div>First of all, I don't think you need to do anything particular with h264 pipeline. Of course, you can lose some number of last frames, but IMHO it is not very critical to the Viewer. So, either send PIPELINE_FLUSH event or do nothing with it at all. Just change the encoder.</div><div>Second, about metadata. I haven't the chance to work with mpegtsmux element, but I did the same trick with other elements and notice, that some elements create a separate pad for different GST_CAPS. So, while debugging this, try to put on_pad_added callback to your mpegtsmux element, and check, is it being called while you're pushing different frames to it. If does, try to re-link sink to the new pad.</div><div><br></div><div>Best regards,</div><div>Anton.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 9, 2020 at 12:15 PM MustafaBkrc <<a href="mailto:mustafa.bkrc93@gmail.com">mustafa.bkrc93@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Toshick <br>
<br>
Thank you for your reply, you are right, I dont need to send EOS event to<br>
downstream. Which event you can suggest? Maybe GST_EVENT_RECONFIGURE event<br>
could be useful. And is there any function to catch eos event before go to<br>
donwstream ?<br>
<br>
I also understood  the problem that I wrote, the reason that I cannot send<br>
the stream is , after EOS event all pipeline stream stops so I have to start<br>
stream with the start stream event. I send the start event to the pad I<br>
blocked in which is decodebin element.  <br>
<br>
But I face with another problem, the mpegtsmux still have the same metadata<br>
(about h264enc metadata I think). I realised that output of the ffplay.<br>
ffplay was still trying to solve stream with h264 encoder.<br>
<br>
So I also changed the mpegtsmux with the new one at runtime, them problem is<br>
solved. But this way code can be much more complicated if I add more element<br>
after decodebin or mpegtsmux element (maybe I have to change the all<br>
elements after decodebin until the udpsink element).<br>
<br>
I dont  know how to reconfigure or inject metadata to mpegtsmux element or<br>
any element. Maybe If I change the metadata of mpegtsmux I dont have to<br>
change any element.<br>
<br>
If you know how can I change the metadata of mpegtsmux ( h264 metadata to<br>
h265 metadata ), I searched but I could not find a solution of doing this.<br>
Could you point me to correct way of changing metadata . I would be very<br>
appreciated. <br>
<br>
Best Regards,<br>
Mustafa.<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>