这里是我尝试:网络摄像头流媒体使用的GStreamer通过UDP
gst-launch -v udpsrc port=1234 ! fakesink dump=1
我测试:
gst-launch -v audiotestsrc ! udpsink host=127.0.0.1 port=1234
,一切工作正常,我可以看到包到达从audiotestsrc
现在让我们来测试网络摄像头的来源:
gst-launch -v v4l2src device=/dev/video0 ! queue ! videoscale method=1 ! "video/x-raw-yuv,width=320,height=240" ! queue ! videorate ! "video/x-raw-yuv,framerate=(fraction)15/1" ! queue ! udpsink host=127.0.0.1 port=1234
没有任何反应,转储中不显示任何软件包。
以下是服务器中详细显示的logdump。
有没有人有这方面的线索?
忘了提:与autovideosink更换udpsink例如我可以看到摄像头就好了 –