我应该使用哪个gstreamer rtp payloader元素来包装AAC音频?

时间:2018-03-01 19:56:42

标签: gstreamer rtp aac

我试图弄清楚用于通过RTP传输AAC音频的正确gstreamer元素。

通过在文件中转储播放列表的点图,我可以得出结论,来自tsdemux的上限为audio/mpeg,mpegversion:2,stream-format:adts

如果我使用以下管道

gst-launch-1.0 -v filesrc location=$BA ! tsdemux ! audio/mpeg ! rtpmpapay ! filesink location=/tmp/test.rtp

失败了:

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1: caps = audio/mpeg
WARNING: from element /GstPipeline:pipeline0/GstTSDemux:tsdemux0: Delayed linking failed.
Additional debug info:
/var/tmp/portage/media-libs/gstreamer-1.12.3/work/gstreamer-1.12.3/gst/parse/grammar.y(510): gst_parse_no_more_pads (): /GstPipeline:pipeline0/GstTSDemux:tsdemux0:
failed delayed linking some pad of GstTSDemux named tsdemux0 to some pad of GstRtpMPAPay named rtpmpapay0
ERROR: from element /GstPipeline:pipeline0/GstTSDemux:tsdemux0: Internal data stream error.
Additional debug info:
/var/tmp/portage/media-libs/gst-plugins-bad-1.12.3/work/gst-plugins-bad-1.12.3/gst/mpegtsdemux/mpegtsbase.c(1613): mpegts_base_loop (): /GstPipeline:pipeline0/GstTSDemux:tsdemux0:
streaming stopped, reason not-linked (-1)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

我应该使用哪个gstreamer元素将AAC音频包装在RTP数据包中?

1 个答案:

答案 0 :(得分:0)

我想它是rtpmp4apay: RTP MPEG4 audio payloader。也许你在payloader之前也需要aacparse