How can make rtpmp4gpay work with udpsink?

Tim Müller tim at
Wed Aug 5 09:01:06 UTC 2020

On Wed, 2020-08-05 at 09:36 +0800, Psychesnet Hsieh wrote:


> Question:
> 1. The server always return failure when receive packet? Why? How can
> I fix it?

It tells you right there in the log :)

> 0:00:04.060492843 65130 0x5571ecf301e0 INFO               GST_EVENT
> gstevent.c:820:gst_event_new_caps: creating caps event audio/mpeg,
> mpegversion=(int)4, stream-format=(string)raw
> 0:00:04.060544955 65130 0x5571ecf301e0 ERROR               aacparse
> gstaacparse.c:354:gst_aac_parse_sink_setcaps:<aacparse0> Need
> codec_data for raw AAC

It expects a codec data field in the caps if you pass stream-

Alternatively you can try passing the AAC data with an ADTS header.

Tim Müller, Centricular Ltd -

More information about the gstreamer-devel mailing list