大家好我试图在我的Pi和Windows电脑之间设置Gstreamer。我的命令是:
裨:
~ raspivid -n -w 1280 -h 720 -b 1000000 -fps 15 -t 0 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=10 pt=96 ! udpsink host=[IP] port=9000
PC:
gst-launch-1.0 -v udpsrc port=9000 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264" ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink sync=f
我收到错误:
sudo: /home/pi: command not found
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstH264Parse:h264parse0: No valid frames found before end of stream
Additonal debug info:
gst_base_parse_sink_event_default (): /GstPipeline:pipeline0/GstH264Parse:h264parse0
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
任何帮助都会非常感谢!!
答案 0 :(得分:0)
(他刚刚在行中省略了sudo,但实际上他输入了它)。 他的主目录是/ home / pi,〜扩展到/ home / pi。 ~rabivid -n -w 1280 -h 720 -b 1000000 -fps 15 -t 0 -o - 扩展到 / home / pi raspivid -n -w 1280 -h 720 -b 1000000 -fps 15 -t 0 -o - 因此“命令未找到”,因为/ home / pi不是可执行文件。这个错误命令的结果通过管道传输到gst-launch-1.0,当然,没有有效的帧!