You can also build ADTS header and attach it with every frame, following link gives information about ADTS header;<div><a href="http://wiki.multimedia.cx/index.php?title=ADTS">http://wiki.multimedia.cx/index.php?title=ADTS</a> <br>
<br><div class="gmail_quote">On Mon, Mar 19, 2012 at 9:01 PM, Neil Jones <span dir="ltr">&lt;<a href="mailto:neiljay@gmail.com">neiljay@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Im trying to play MP4 files with my AAC Decoder but im having problems.<br>
<br>
the file im playing is &#39;cooper.mp4&#39; from these samples<br>
<a href="http://www.mp3-tech.org/tests/aac_48/samples/sample6.zip" target="_blank">http://www.mp3-tech.org/tests/aac_48/samples/sample6.zip</a><br>
<br>
this is a 48Khz LC-AAC with SBR (ie HE-AAC), looking a this with<br>
qtdemux and fakesink gives:<br>
<br>
<br>
 gst-launch -vvv filesrc location=cooper.mp4 ! qtdemux ! fakesink | more<br>
<br>
....<br>
caps = audio/mpeg, mpegversion=(int)4, framed=(boolean)true,<br>
stream-format=(string)raw, codec_data=(buffer)139056e5a0,<br>
rate=(int)44100, channels=(int)2<br>
....<br>
<br>
So as qtdemux gives us raw data (not adts or adif framed) I need to<br>
setup my decoder on the info provided by qtdemux, unfortunatley it<br>
gives me the wrong sample rate 44.1 instead of 48 and I need to know<br>
that the profile has SBR as this effects my decoder setup.<br>
<br>
How do other AAC decoders deal with this? Do they just parse the raw<br>
data, I cant easily do this as my plugin is for a hardware decoder.<br>
<br>
Any help appreciated,<br>
<br>
Cheers,<br>
<br>
Neil<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<br><br>Sudarshan Bisht<br>
</div>