<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1" style="">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 13px;">
<div style="">If you are using the HTTP Live Streaming that depends on the MPEG-2 Transport Stream, I implemented this on live cameras by gorilla subclassing (Cut-n-paste and modify) the MPEG2TransportStreamFromESSource  to a MPEG2TransportStreamFromESSource4iOS
 class. I changed the inserting of the PAT and PMT to be relative to a chosen number of keyframes instead of a random time so I could easily segment it on the fly downstream.
<br>
<br>
HLS on ios is extreamly picky about the segment size and what it starts with. While it must have recieved at least once in the past, I start each segment with it and a keyframe to allow connections at any time.<br>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF605317"><font color="#000000" face="Tahoma" size="2"><b>From:</b> live-devel-bounces@ns.live555.com [live-devel-bounces@ns.live555.com] on behalf of Ross Finlayson [finlayson@live555.com]<br>
<b>Sent:</b> Thursday, January 24, 2013 7:00 PM<br>
<b>To:</b> LIVE555 Streaming Media - development & use<br>
<b>Subject:</b> Re: [Live-devel] Question About PAT/PMT in MPEG2<br>
</font><br>
</div>
<div></div>
<div>
<div>
<blockquote type="cite">I'm building and iOS application, where I'm using a RTSP Client (based on testRTSPClient) to receive a MPEG2 stream</blockquote>
<div><br>
</div>
Because you refer to "PAT" and "PMT" information, I assume you're referring to a MPEG-2 *Transport* stream.  (There are other kinds of MPEG-2 streams as well.)</div>
<div><br>
</div>
<div><br>
<blockquote type="cite">and then I'm trying to decode the frames with help of FFMPEG. My question is: Is it possible to obtain the PAT and PMT information  before I  pass the frames to FFMPEG with help of the live555 library, or does the live555 library has
 nothing to do with this task and it should be handle by FFMPEG?<br>
</blockquote>
<div><br>
</div>
</div>
The latter.  When the RTSP/RTP client receives the MPEG Transport Stream data, it doesn't inspect its contents at all.  So your decoder will need to do that.<br>
<br>
<div><span class="Apple-style-span" style=""><span class="Apple-style-span" style="">Ross Finlayson<br>
Live Networks, Inc.<br>
<a href="http://www.live555.com/" target="_blank">http://www.live555.com/</a></span></span>
</div>
<br>
</div>
</div>
</div>
<P>This message and any attachments contain confidential and proprietary 
information, and may contain privileged information, belonging to one or more 
affiliates of Windy City Wire Cable & Technology Products, LLC. No privilege 
is waived by this transmission. Unauthorized use, copying or disclosure of such 
information is prohibited and may be unlawful. If you receive this message in 
error, please delete it from your system, destroy any printouts or copies of it, 
and notify the sender immediately by e-mail or phone.</P><br></body>
</html>