当我尝试此命令时:
**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中,将错误作为"内部数据流错误"的主要原因是什么?
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
...
这是不起作用的不幸情况。重新运行带有环境变量GST_DEBUG="*:2"
的命令以查看所有警告。