[Libav-user] How to decode mp4a-latm content in RTP using ffmpeg?

Ajita Pandey Ajita-Pandey at hcl.com
Wed Mar 28 15:37:47 CEST 2012


I donot know how it works for RTP but when I try to decode mp4a-latm content in ffmpeg+hardware decoder.
I need to check the LOAS sync word and muxlength in each packet even the return buffer size from the decode function equals to the muxlength.


From: libav-user-bounces at ffmpeg.org [mailto:libav-user-bounces at ffmpeg.org] On Behalf Of NITIN GOYAL
Sent: Wednesday, March 28, 2012 6:42 PM
To: This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter.
Subject: [Libav-user] How to decode mp4a-latm content in RTP using ffmpeg?


I am trying to decode the mp4a-latm content using ffmpeg. I have used the CodecID as Codec_ID_AAC_LATM and extracted the config parameter from the SDP and further extracted the audio content from the RTP by removing the rtp header and sent it to decodeAudio4 function but the decode function always return the negative value.

I have gone through the RFC 3016 and the code of rtpdec_latm.c in ffmpeg src also but i am not able to find where i am doing the mistake and what exactly the procedure to send the content to decode.

As general, we need to send the config value from SDP and then the raw audio packet form the RTP after removing the header but its not working.

Can someone help me in it?




The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120328/34d59d1f/attachment.html>

More information about the Libav-user mailing list