我嘗試使用流式傳輸和OpenCV的GStreamer的我的攝像頭......對於這第一個我測試使用此命令行:GStreamer的RTP流媒體網絡攝像頭
gst-launch v4l2src ! ffmpegcolorspace ! theoraenc ! rtptheorapay ! udpsink host=localhost port=5000 sync=false -v
然後我嘗試使用此命令行看到流:
gst-launch udpsrc port=5000 caps="video/x-raw-yuv, format=(fourcc)I420, framerate=(fraction)30/1, width=(int)640, height=(int)480, interlaced=(boolean)false" ! rtptheoradepay ! theoradec ! ximagesink
,但我得到一個錯誤:無法連接到udpsrc0和rtptheoradepay0無法鏈接到udpsrc0 rtptheoradepay0
然後我嘗試使用VLC來看看我從攝像頭全光照得g rtp:// @ localhost:5000但是沒有發生...
我做錯了什麼?
我運行Ubuntu 10.10在GStreamer和混帳repositorie編譯插件...
在此先感謝!