在带有Raspbian Stretch的Raspberry Pi 3上使用gstreamer播放视频

我尝试使用gstreamer在Raspbian stretch上播放视频,但失败了。我开始安装gst-omx,并尝试了以下管道:

gst-launch-1.0 videotestsrc ! videoconvert ! glimagesink
-> ERROR: from element /GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0/GstGLImageSink:sink: Failed to connect to X display server

gst-launch-1.0 --gst-debug=3 uridecodebin uri=file:///opt/test/file.mp4 ! autovideosink
and
gst-launch-1.0 --gst-debug=3 playbin uri=file:///opt/test/file.mp4
-> gldisplay gstgldisplay_x11.c:88:gst_gl_display_x11_new: Failed to open X11 display connection with name, '(null)'

看起来GStreamer正在寻找一个X显示服务器。但我不想用它。

有没有人让它在Raspbian上运行?它似乎在Wheezy上起作用。

转载请注明出处:http://www.hqqscc.com/article/20230526/1191213.html