<div dir="ltr">Hi Tim,<div><br></div><div>Thanks.</div><div>My AAC frame is with ADTS header.</div><div>How can I set format with ADTS? Thanks.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Tim Müller <<a href="mailto:tim@centricular.com">tim@centricular.com</a>> 於 2020年8月5日 週三 下午5:01寫道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, 2020-08-05 at 09:36 +0800, Psychesnet Hsieh wrote:<br>
<br>
Hi,<br>
<br>
> Question:<br>
> 1. The server always return failure when receive packet? Why? How can<br>
> I fix it?<br>
<br>
It tells you right there in the log :)<br>
<br>
> 0:00:04.060492843 65130 0x5571ecf301e0 INFO GST_EVENT<br>
> gstevent.c:820:gst_event_new_caps: creating caps event audio/mpeg,<br>
> mpegversion=(int)4, stream-format=(string)raw<br>
> 0:00:04.060544955 65130 0x5571ecf301e0 ERROR aacparse<br>
> gstaacparse.c:354:gst_aac_parse_sink_setcaps:<aacparse0> Need<br>
> codec_data for raw AAC<br>
<br>
It expects a codec data field in the caps if you pass stream-<br>
format=raw.<br>
<br>
Alternatively you can try passing the AAC data with an ADTS header.<br>
<br>
Cheers<br>
Tim<br>
-- <br>
Tim Müller, Centricular Ltd - <a href="http://www.centricular.com" rel="noreferrer" target="_blank">http://www.centricular.com</a><br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>