0
我正在嘗試使用gstreamer和netcat將來自Raspberry pi相機的h264視頻流式傳輸到Android設備。 我目前能流樹莓使用這個視頻:在Windows中使用從Raspberry Pi到Android的GStreamer TCP流式傳輸
gst-launch-1.0 tcpclientsrc host=192.168.0.14 port=5001 ! queue2 max-size-buffers=1 ! decodebin ! autovideosink sync=false
//ON RASPBERRY
raspivid -t 0 -hf -n -h 480 -w 640 -fps 15 -o - | nc -l -p 5001
和接收流而這個效果很好。
然後我試着在Gstreamer示例文件夾中找到一個簡單的C應用程序,在窗口中接收流。而且這個效果也很好。
現在我的目標是使用gstreamer庫在Android設備上接收流。我能夠編譯和運行5個包含的教程,但我無法正確修改教程3以使其接收流。 我創建這樣的管道:
data->pipeline = gst_parse_launch("tcpclientsrc host=192.168.2.205 port=5001 ! queue2 max-size-buffers=1 ! decodebin ! autovideosink sync=false", &error);
但它返回以下錯誤:
Error received from element tcpclientsrc1: Could not open resource for reading
感謝所有幫助
在黑暗中拍攝:也許端口被其他應用程序使用?你有嘗試其他端口 – nayana
感謝你的消化不良,但它沒有解決問題 – asdf