我想從Raspberry Pi Zero W流視頻數據到運行Windows 10的PC。我用這個視頻作爲我的來源:https://www.youtube.com/watch?v=lNvYanDLHZA,這是我使用的代碼(使用我的電腦的實際IP地址,而不是10.30.0.0我假裝在這裏):Gstreamer錯誤:管道不能構造:語法錯誤
樹莓派bash腳本:
#!/bin/bash
clear
raspivid -n -t 0 -rot 270 -w 960 -h 720 -fps 30 -b 6000000 -o - | gst-launch-1.0 -e -vvvv fdsrc ! h264parse ! rtph264pay pt=96 config-interval=5 ! udpsink host=10.30.0.0 port=5000
Windows批處理腳本:
cd C:\gstreamer\1.0\x86_64\bin
gst-launch-1.0 -e -v udpsrc port=5000 ! application/x-rtp, payload=96 ! rtpjitterbuffer ! rtph264depay ! avdec_h264 ! fpsdisplaysink sync=false text-overlay=false
但是,運行後,我的批處理腳本崩潰。我得到的錯誤是對「gst-launch-1.0 -e -v udpsrc port=5000
」的一部分,它是:
ERROR: Pipeline could not be constructed: syntax error
任何想法,我能做些什麼來糾正呢?謝謝
我在Ubuntu上測試了你的接收端腳本,它在我的系統上工作正常。你的安裝完成了嗎? –
是的。我卸載了它並在計算機上重新安裝了兩次。 – FlyerKitten