<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><blockquote type="cite">./openRTSP -v <a href="rtsp://192.168.1.214/axis-media/media.amp?streamprofile=Quality">rtsp://192.168.1.214/axis-media/media.amp?streamprofile=Quality</a> | ./testH264VideoToTransportStreamUDP<br><br>The issue I am encountering is that if, during the process of streaming, the client loses connection and then reconnects, it cannot decode the stream because it cannot see SPS/PPS.  I analyzed a saved TS file and I noticed that the SPS/PPS is only sent with the first IDR frame and then never again.  <br><br>So my question is what would be a way to have SPS/PPS NAL units repeated in the TS stream by the MPEG2TransportStreamFromESSource filter so that a UDP client (decoder) can resume decoding after intermittently disconnecting and reconnecting?<br></blockquote><div><br></div></div>I suggest looking at how "openRTSP" outputs H.264 video data to a file.  In particular:<div>- See "testProgs/playCommon.cpp", line 830, and note the call to "subsession->fmtp_spropparametersets()".</div><div>- See also the implementation of the "H264VideoFileSink" class ("liveMedia/H264VideoFileSink.cpp", line 66), and note how it parses the 'sprop-parameter-string' into SPS/PPS NAL-units, by calling "parseSPropParameterSets()".</div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>