我想从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