在gstreamer中给出“内部数据流错误”消息的原因是什么?

时间:2014-01-27 14:17:24

标签: gstreamer

当我尝试这个命令时:

**gst-launch-0.10 -v rtspsrc location=rtsp://127.0.0.1:8554/test 
  caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,
  encoding-name=(string)H264" ! rtpmp2tdepay ! mpegtsdemux ! ffdec_h264 ! autovideosink** 

我收到错误:

**ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0: 
Internal data flow error.**

在gstreamer中将错误称为“内部数据流错误”的主要原因是什么?

2 个答案:

答案 0 :(得分:8)

internal data flow错误有很多潜在原因。要遇到有问题的地方,只需逐步连接fakesink元素并尝试。

gst-launch-0.10 -v rtspsrc location=rtsp://127.0.0.1:8554/test   caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,  encoding-name=(string)H264"  ! fakesink
gst-launch-0.10 -v rtspsrc location=rtsp://127.0.0.1:8554/test   caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,  encoding-name=(string)H264" ! rtpmp2tdepay  ! fakesink
gst-launch-0.10 -v rtspsrc location=rtsp://127.0.0.1:8554/test   caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,  encoding-name=(string)H264" ! rtpmp2tdepay  ! mpegtsdemux  ! fakesink
...

答案 1 :(得分:7)

不幸的是,某些事情无效。使用环境变量GST_DEBUG="*:2"重新运行该命令以查看所有警告。