<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;"><br><div><blockquote type="cite"><div dir="ltr"><div>For h264: When I reboot (or boot) my pc and start my server, connect to it using VLC or MPlayer, it works perfeclty. But when I stop it and restart it, connect to it using VLC or MPlayer again, at the first loop I get "non-existing PPS referenced" errors (no video displayed) but it starts streaming perfectly (and endless) at the 2nd loop again. In other words, i have to reboot after each launch of the server to see my h264 streaming working fine...</div></div></blockquote><div><br></div></div>The problem here, I think, is that - in your H.264 video stream - SPS and PPS NAL units are occurring only at the start of the stream. Therefore, if a client tries to connect to the stream in some position other than the start, the server is having trouble finding the SPS and PPS NAL units.<div><br></div><div>First, you should make sure that when your "OnDemandServerMediaSubsession" subclass's constructor calls the "OnDemandServerMediaSubsession" constructor, it sets the "reuseFirstSource" parameter to True. That way, if more than one client connects concurrently, the server won't try to read the stream again for the second (and other) clients.</div><div><br></div><div><div>Second, in your implementation of the "createNewRTPSink()" virtual function, you may need to use one of the versions of "H264VideoRTPSink::createNew()" that specify the SPS and PPS NAL units.</div></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>