How can make rtpmp4gpay work with udpsink?

Psychesnet Hsieh psychesnet at gmail.com
Thu Aug 6 00:53:19 UTC 2020


Hi Tim,

Yes, I already try it before. "gst-launch-1.0 udpsrc port=1234 !
application/x-rtp,media=audio,clock-rate=16000,encoding-name=MPEG4-GENERIC,mode=AAC-lbr
! rtpmp4gdepay ! aacparse ! audio/mpeg,mpegversion=4,stream-format=adts !
avdec_aac ! autoaudiosink"



















*0:00:01.898194873 43326 0x55b40429e1e0 INFO               GST_EVENT
gstevent.c:820:gst_event_new_caps: creating caps event application/x-rtp,
media=(string)audio, clock-rate=(int)16000,
encoding-name=(string)MPEG4-GENERIC, mode=(string)AAC-lbr0:00:01.898364972
43326 0x55b40429e1e0 INFO               GST_EVENT
gstevent.c:820:gst_event_new_caps: creating caps event audio/mpeg,
mpegversion=(int)4, stream-format=(string)raw0:00:01.898457880 43326
0x55b40429e1e0 ERROR               aacparse
gstaacparse.c:354:gst_aac_parse_sink_setcaps:<aacparse0> Need codec_data
for raw AAC0:00:01.898602694 43326 0x55b40429e1e0 INFO
GST_EVENT gstevent.c:900:gst_event_new_segment: creating segment event time
segment start=0:00:00.000000000, offset=0:00:00.000000000,
stop=99:99:99.999999999, rate=1.000000, applied_rate=1.000000, flags=0x00,
time=0:00:00.000000000, base=0:00:00.000000000, position 0:00:01.817802228,
duration 99:99:99.9999999990:00:01.898746315 43326 0x55b40429e1e0 ERROR
          aacparse gstaacparse.c:354:gst_aac_parse_sink_setcaps:<aacparse0>
Need codec_data for raw AAC0:00:01.898818251 43326 0x55b40429e1e0 ERROR
          aacparse gstaacparse.c:354:gst_aac_parse_sink_setcaps:<aacparse0>
Need codec_data for raw AAC0:00:01.898895373 43326 0x55b40429e1e0 WARN
            basesrc gstbasesrc.c:3072:gst_base_src_loop:<udpsrc0> error:
Internal data stream error.0:00:01.898923016 43326 0x55b40429e1e0 WARN
            basesrc gstbasesrc.c:3072:gst_base_src_loop:<udpsrc0> error:
streaming stopped, reason not-negotiated (-4)0:00:01.898983683 43326
0x55b40429e1e0 INFO        GST_ERROR_SYSTEM
gstelement.c:2140:gst_element_message_full_with_details:<udpsrc0> posting
message: Internal data stream error.0:00:01.899123271 43326 0x55b40429e1e0
INFO        GST_ERROR_SYSTEM
gstelement.c:2167:gst_element_message_full_with_details:<udpsrc0> posted
error message: Internal data stream error.0:00:01.899194207 43326
0x55b40429e1e0 ERROR               aacparse
gstaacparse.c:354:gst_aac_parse_sink_setcaps:<aacparse0> Need codec_data
for raw AAC0:00:01.899223748 43326 0x55b40429e1e0 ERROR
aacparse gstaacparse.c:354:gst_aac_parse_sink_setcaps:<aacparse0> Need
codec_data for raw AAC0:00:01.899272123 43326 0x55b40429e1e0 ERROR
      aacparse gstaacparse.c:354:gst_aac_parse_sink_setcaps:<aacparse0>
Need codec_data for raw AACERROR: from element
/GstPipeline:pipeline0/GstUDPSrc:udpsrc0: Internal data stream
error.Additional debug info:gstbasesrc.c(3072): gst_base_src_loop ():
/GstPipeline:pipeline0/GstUDPSrc:udpsrc0:streaming stopped, reason
not-negotiated (-4)0:00:01.899395118 43326 0x55b40429e1e0 WARN
audiobasesink
gstaudiobasesink.c:1115:gst_audio_base_sink_wait_event:<autoaudiosink0-actual-sink-pulse>
error: Sink not negotiated before eos event.Execution ended after
0:00:01.819139648Setting pipeline to PAUSED ...*

Looks like I use the wrong way to set it. How can I change stream-format as
adts? Thanks.

Tim Müller <tim at centricular.com> 於 2020年8月5日 週三 下午6:36寫道:

> On Wed, 2020-08-05 at 17:04 +0800, Psychesnet Hsieh wrote:
>
> > My AAC frame is with ADTS header.
> > How can I set format with ADTS? Thanks.
>
> Tried stream-format=adts yet?
>
> Cheers
>  Tim
>
> --
> Tim Müller, Centricular Ltd - http://www.centricular.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200806/c50ca07b/attachment-0001.htm>


More information about the gstreamer-devel mailing list