<div dir="ltr"><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 19, 2013 at 4:11 PM, Wim Taymans <span dir="ltr"><<a href="mailto:wim.taymans@gmail.com" target="_blank">wim.taymans@gmail.com</a>></span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div class="im">On 07/19/2013 12:33 PM, Deepak Jain wrote:<br>

</div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div class="im">
Hi,<br>
I am getting demuxed audio and video elementary streams from the server for a audio/video file.<br>
I am getting buffer, its size and PTS information. Data is H264 video and AAC audio.<br>
I am looking at below two approaches to get it working.<br>
<br></div>
_Approach 1:_<br>
<br>
_Approach 2:_<div class="im"><br>
<br>
Now here are some of my questions on which I need help:<br>
(1) If above two approaches at all would work for me?<br>
</div></blockquote>
Yes, the difference is that the second one creates a second thread.</blockquote><div> </div><div> </div><div> </div><div>So which approach do you think is easier to manage if we think of the whole system?</div><div> </div>
<div> </div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div class="im"><br>
<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
(2) If yes, then how audio video sync would be achieved?<br>
</blockquote>
<br></div>
By placing the same buffer running-time on buffers that need to be synchronized. The rules for<br>
placing timestamps are here <a href="http://cgit.freedesktop.org/gstreamer/gstreamer/tree/docs/design/part-synchronisation.txt" target="_blank">http://cgit.freedesktop.org/<u></u>gstreamer/gstreamer/tree/docs/<u></u>design/part-synchronisation.<u></u>txt</a><br>

and <a href="http://cgit.freedesktop.org/gstreamer/gstreamer/tree/docs/design/part-element-source.txt" target="_blank">http://cgit.freedesktop.org/<u></u>gstreamer/gstreamer/tree/docs/<u></u>design/part-element-source.txt</a><br>

<br>
Wim<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div class="im">
(3) If not, then what is the alternative approach?<br>
<br>
Thanks,<br>
<br>
Deepak<br>
<br>
<br>
<br>
<br></div>
______________________________<u></u>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.<u></u>freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/gstreamer-<u></u>devel</a><br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.<u></u>freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/gstreamer-<u></u>devel</a><br>
</blockquote></div><br></div></div>