<div dir="ltr">Hi,<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 14, 2015 at 2:45 PM, Wiser, Tyson <span dir="ltr"><<a href="mailto:TWiser@logostech.net" target="_blank">TWiser@logostech.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">I recently found libdvbpsi and have been attempting to use it as a transport stream demuxer. I have looked through the limited documentation and also at the examples provided. From these I have been able to successfully get access to
the information in the PAT and PMT. What I have not been able to figure out, however, is how to get access to a particular demuxed PES.<u></u><u></u></p>
<p class="MsoNormal"><u></u></p></div></div></blockquote><div><br></div><div>libdvbpsi is a simple PSI parser that only parses the MPEG-TS layer of a stream. It does not handle the packetized elementary stream (PES). You will have to code that yourself.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"> <u></u></p>
<p class="MsoNormal">The TSs that I need to demux contain a video stream and a metadata stream. The PID of each stream may change, so parsing the PAT and PMT is necessary so that I can find the relevant PIDs. That all seems to work well and has been well demonstrated
in the examples. Once I have the relevant PIDs, how do I then get access to the demuxed PES packets (without the TS headers, potentially without the PES headers as well, though I would still need access to the PTS and DTS)? I have not been able to find any
hints in the documentation or in the examples. I do not need to have the contents of the PES packets decoded; I will use other libraries for that.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Can anyone provide any examples? Thanks in advance for your help.</p></div></div></blockquote><div><br></div><div>Take a look at the source code of VLC especially modules/demux/ts.c.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><u></u><u></u></p>
</div>
</div>
<br>_______________________________________________<br>
libdvbpsi-devel mailing list<br>
<a href="mailto:libdvbpsi-devel@videolan.org">libdvbpsi-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/libdvbpsi-devel" target="_blank">https://mailman.videolan.org/listinfo/libdvbpsi-devel</a><br>
<br></blockquote></div><br></div><div class="gmail_extra">Kind regards,<br><br></div><div class="gmail_extra">Jean-Paul Saman<br></div></div>