<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Aug 25, 2014 at 3:20 AM, Shishir Pokharel <span dir="ltr"><<a href="mailto:Shishir.Pokharel@on24.com" target="_blank">Shishir.Pokharel@on24.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Hi list,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am developing an application to convert different video format to H.264 and transport it via RTMP protocol to FMS server. I am bit confused about asterisk Video Frame , my confusion is does the Video frame has the RTP headers on it or
 the just the video data?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Going through the asterisk code I figured out the frame structure (ast_frame) has frame-> datalen (length of data) & frame->data.ptr(pointer to actual data). Does this data contains only video data’s or there is RTP headers information’s
 too ?</p></div></div></blockquote><div><br></div><div>Just the video data.  </div><div><br></div><div>For sending, The frames sometimes also have an optimization, frame->offset, which is how many bytes are available ahead of frame->data.ptr.  That lets you write headers and use the frame's buffer directly for a socket send instead of having to copy the data to another buffer for every frame you're sending.</div>

<div><br></div><div>Good luck with your work!</div><div><br></div><div>-- </div><div>Russell Bryant </div></div><br></div></div>