TS音频流通过UDP时出错

时间:2015-12-11 10:52:39

标签: gstreamer

我有一个只包含音频数据的ts文件,我必须通过UDP传输这些数据。

我使用了下面的管道,

gst-launch-1.0 -v filesrc location=/home/uurmi/Desktop/GStreamer/Tasks/audio.ts ! tsdemux ! mpegtsmux ! rtpmp2tpay ! queue ! udpsink host=192.168.1.139 port=7000 sync=true

执行时我发现以下错误,

/GstPipeline:pipeline0/GstTSDemux:tsdemux0.GstPad:audio_0041: caps = "NULL"

如何解决此问题?

1 个答案:

答案 0 :(得分:0)

通过使用以下管道而不是上面的管道来解决我的问题

gst-launch-1.0 -v filesrc location=/home/uurmi/Desktop/GStreamer/Tasks/audio.ts ! tsdemux ! faad ! faac ! aacparse ! mpegtsmux ! rtpmp2tpay ! queue ! udpsink host=192.168.1.139 port=7000 sync=true

用这个管道替换上面的管道,

然后我可以通过UDP传输音频数据。

相关问题