Gstreamer 通过UDP传输音频流时出错
我有一个只包含音频数据的ts文件,我必须通过UDP传输这些数据 我使用了下面的管道Gstreamer 通过UDP传输音频流时出错,gstreamer,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
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"
如何解决此问题?我的问题通过使用下面的管道而不是上面的管道来解决
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
通过将上述管道替换为该管道
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
然后我可以通过UDP传输音频数据。您可以在分析相同问题时更新问题。。