<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="MSHTML 8.00.6001.19190">
</head>
<body style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space">
<div dir="ltr" align="left"><span class="059365910-01102014"><font color="#0000ff" size="2" face="Arial">Thanks for the hint Ross,
</font></span></div>
<div dir="ltr" align="left"><span class="059365910-01102014"><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span class="059365910-01102014"> <font color="#0000ff" size="2" face="Arial">
The Marker Bit seems to be set correctly by GStreamer.</font></span></div>
<div> </div>
<div><span class="059365910-01102014"></span><font face="Arial"><font color="#0000ff"><font size="2">R<span class="059365910-01102014">egards</span></font></font></font></div>
<div><font face="Arial"><font color="#0000ff"><font size="2"><span class="059365910-01102014"></span></font></font></font> </div>
<div><font face="Arial"><font color="#0000ff"><font size="2"><span class="059365910-01102014">Jean-Luc Bonnet</span></font></font></font></div>
<div><br>
</div>
<div dir="ltr" lang="fr" class="OutlookMessageHeader" align="left">
<hr tabindex="-1">
<font size="2" face="Tahoma"><b>De :</b> live-devel [mailto:live-devel-bounces@ns.live555.com]
<b>De la part de</b> Ross Finlayson<br>
<b>Envoyé :</b> mardi 30 septembre 2014 17:09<br>
<b>À :</b> LIVE555 Streaming Media - development & use<br>
<b>Objet :</b> Re: [Live-devel] Receive H264 packets from GStreamer<br>
</font><br>
</div>
<div></div>
<div>
<blockquote type="cite">
<div>
<div><font size="2" face="Arial"><span class="587120412-30092014"> I want to receive H264 video frame over RTP from a GStreamer server. I use
<font size="2"><strong>H264VideoRTPSource</strong> which works fine, I receive all RTP packets.</font></span></font></div>
<div><font size="2" face="Arial"><span class="587120412-30092014"></span></font> </div>
<div><font size="2" face="Arial">But <strong>rtph264pay</strong> GStreamer's component which generate H264 payload send only One NAL Unit per RTP packet. Is there a way to rebuild the whole video frame at Live 555 side.</font></div>
</div>
</blockquote>
<div><br>
</div>
</div>
It's the job of the decoder to figure out how to render the incoming NAL units - which includes deciding when one video frame (called an 'access unit' in H.264 parlance) ends, and the next one begins.
<div><br>
</div>
<div>However, as a hint, you can use the value of the RTP packet's 'M' (i.e., 'marker') bit, which is (supposed to be) set for the last RTP packet of an 'access unit' (i.e., video frame). I.e., you can call "RTPSource::curPacketMarkerBit()" to test this. Note,
though, that this is only a hint, because this last RTP packet may have been lost (or the server might not have properly set the 'M' bit in the first place).</div>
<br>
<div apple-content-edited="true"><span style="LINE-HEIGHT: normal; WIDOWS: 2; TEXT-TRANSFORM: none; FONT-VARIANT: normal; FONT-STYLE: normal; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT-FAMILY: Helvetica; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); FONT-WEIGHT: normal; 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" class="Apple-style-span"><span style="LINE-HEIGHT: normal; WIDOWS: 2; TEXT-TRANSFORM: none; FONT-VARIANT: normal; FONT-STYLE: normal; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT-FAMILY: Helvetica; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); FONT-WEIGHT: normal; 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" class="Apple-style-span">Ross
Finlayson<br>
Live Networks, Inc.<br>
<a href="http://www.live555.com/">http://www.live555.com/</a></span></span> </div>
<br>
This message is subject to the following terms and conditions: <a href="http://www.barco.com/en/maildisclaimer">
MAIL DISCLAIMER</a>
</body>
</html>