<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Hello,</p>
<p><br>
</p>
<p>What if you will stream video container with metadata inside?</p>
<p>For example MKV file with subtitles?</p>
<p><br>
</p>
<p>PS sorry for late reply</p>
<p><br>
</p>
<p>Mikl</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> gstreamer-devel <gstreamer-devel-bounces@lists.freedesktop.org> on behalf of myamens <mrayyamen@gmail.com><br>
<b>Sent:</b> Monday, February 27, 2017 5:10:09 AM<br>
<b>To:</b> gstreamer-devel@lists.freedesktop.org<br>
<b>Subject:</b> Match RTP packets with decoded image frames</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hello,<br>
<br>
I am currently using GStreamer to stream video over network. In my<br>
application, I need to perfectly sync data with the video images (zero<br>
latency between both data and the corresponding images). <br>
Since data size per frame is very small (8 bytes), I am adding this data<br>
into the first RTP packet's padding for each encoded frame just before<br>
sending it over UDP. On the receiver side, after I receive the packet I<br>
extract the data from the RTP padding and save it in a queue. Once the frame<br>
is decoded, I pop from the queue the first element which suppose to match<br>
the decoded frame. <br>
In theory it should work fine, however in practice, the sink can drop some<br>
frames which would results mismatching between the frames and the<br>
corresponding data in the queue.<br>
<br>
I am looking for better solutions in which I can perfectly sync between the<br>
received RTP packets and the corresponding decoded image frames.<br>
<br>
I tried to add metadata into the RTP packets on the receiver side, and<br>
extract the meta data after decoding, however it didn't work (the metadata<br>
is removed apparently). <br>
<br>
Looking forward for an advice!<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Match-RTP-packets-with-decoded-image-frames-tp4682031.html">
http://gstreamer-devel.966125.n4.nabble.com/Match-RTP-packets-with-decoded-image-frames-tp4682031.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
gstreamer-devel@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div>
</span></font>
</body>
</html>