<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi All,<div><br></div><div>I am writing an app that takes raw AAC packets generated by a HW encoder I have no control over, and I am inserting these directly into an AVPacket (copying directly to Pkt.data). </div><div><br></div><div>however when I pass to the mpegts mux, I am getting this error </div><div>" <b style="font-size: 12pt;">[mpegts @ 0x91b3600] AAC bitstream not in ADTS format and extradata missing"</b></div><div><b style="font-size: 12pt;"><br></b></div><div>It seems, I have to set the extra data field as the stream is not in ADTS format.. any idea how / what I need to set the extradata to?</div><div><br></div><div>Done quite a bit of searching with no luck. I am using 44,100 sample rate, 64000 bit rate and 2 channels. I also need this for 1 audio channel.</div><div><br></div><div>Any pointers would be much appreciated.</div><div><br></div><div>Thanks,</div><div>Danny</div>
</div></body>
</html>