[asterisk-dev] Does asterisk video frame contains video data only or there is RTP headers too ?

Shishir Pokharel Shishir.Pokharel at on24.com
Mon Aug 25 12:12:38 CDT 2014


Thanks Russell.

From: asterisk-dev-bounces at lists.digium.com [mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of Russell Bryant
Sent: Monday, August 25, 2014 4:55 AM
To: Asterisk Developers Mailing List
Subject: Re: [asterisk-dev] Does asterisk video frame contains video data only or there is RTP headers too ?

On Mon, Aug 25, 2014 at 3:20 AM, Shishir Pokharel <Shishir.Pokharel at on24.com<mailto:Shishir.Pokharel at on24.com>> wrote:
Hi list,

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?

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 ?

Just the video data.

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.

Good luck with your work!

--
Russell Bryant

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140825/029baa08/attachment.html>


More information about the asterisk-dev mailing list