0

我是 gstreamer 处理的新手。我正在按照 Gstreamer 教程在 Orangepi Zero 开发套件上设置 Gstreamer。我正在尝试通过 Gstreamer 运行视频流,但它会引发如下错误:

媒体:野生动物.mp4

命令:

gst-launch-1.0 filesrc location= /home/ash/Videos/Wildlife.mp4 ! videorate ! videoconvert ! jpegenc ! autovideosink

Setting pipeline to PAUSED ...

Pipeline is PREROLLING ...

WARNING: from element /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0: 

Failed to connect to X display server

Additional debug info:

gstglimagesink.c(833): _ensure_gl_setup (): /GstGLImageSinkBin:autovideosink0-
actual-sink-glimage/GstGLImageSink:sink

Pipeline is PREROLLED ...

Setting pipeline to PLAYING ...

New clock: GstSystemClock

**Got EOS from element "pipeline0".**

Execution ended after 0:00:00.000987695

Setting pipeline to PAUSED ...

Setting pipeline to READY ...

Setting pipeline to NULL ...

Freeing pipeline ...

当我尝试播放媒体时:“Wildlife.ogv”

gst-launch-1.0 filesrc location= /home/ash/Videos/Wildlife.ogv ! videorate ! videoconvert ! jpegenc ! autovideosink

Setting pipeline to PAUSED ...

Pipeline is PREROLLING ...

WARNING: from element /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0: 

Failed to connect to X display server

Additional debug info:

gstglimagesink.c(833): _ensure_gl_setup (): /GstGLImageSinkBin:autovideosink0-actual-sink-glimage/GstGLImageSink:sink

ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal data flow error.

Additional debug info:

gstbasesrc.c(2948): gst_base_src_loop (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:

streaming task paused, reason error (-5)
ERROR: pipeline doesn't want to preroll.

Setting pipeline to NULL ...

Freeing pipeline ...

运行两种不同的视频格式时出现两个不同的错误。

请提出解决方案。谢谢

4

0 回答 0