【问题标题】:GStreamer pipeline wont prerollGStreamer 管道不会预卷
【发布时间】:2016-08-07 08:49:47
【问题描述】:

大家好,我正在尝试在我的 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

电脑:

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 ...

任何帮助将非常感谢!

【问题讨论】:

  • 检查错误输出的第一行-找不到命令-那里发生了什么?我没有看到任何 sudo .. 顺便说一句,我猜 RPI 上没有 sudo

标签: camera raspberry-pi gstreamer


【解决方案1】:

(他只是省略了该行中的 sudo,但实际上是他输入的)。 他的主目录是 /home/pi,并且 ~ 扩展为 /home/pi。 ~ raspivid -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,当然,没有有效的帧!

【讨论】:

    猜你喜欢
    • 2016-09-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-29
    相关资源
    最近更新 更多