Gstreamer Playbin无法在虚拟机上播放视频

问题描述 投票:0回答:1

我很难让playbin元素在VM上运行。当我运行管道时:

gst-launch-1.0 playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm

我收到以下错误:

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Got context from element 'source': gst.soup.session=context, session=(SoupSession)NULL, force=(boolean)false;
Got context from element 'sink': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0";
Got context from element 'playsink': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0";
Redistribute latency...
ERROR: from element /GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:vbin/GstGLImageSinkBin:glimagesinkbin0/GstGLColorConvertElement:glcolorconvertelement0: Failed to convert video buffer
Additional debug info:
gstglcolorconvertelement.c(218): gst_gl_color_convert_element_prepare_output_buffer (): /GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:vbin/GstGLImageSinkBin:glimagesinkbin0/GstGLColorConvertElement:glcolorconvertelement0
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

有谁知道为什么元素glcolorconvertelement0无法转换视频缓冲区?

我目前正在使用xubuntu(18.04.1)运行虚拟机,安装了最后一个gstreamer pakage(1.14.1)。

附加信息:当我尝试播放本地.mp4文件时,我也遇到了同样的错误。在VM之外它一切正常。

谢谢大家

virtual-machine gstreamer gstreamer-1.0
1个回答
0
投票

我设法搞清楚了。它就像在VM屏幕设置上更改(虚拟)视频卡一样简单。

VM Screen Settings

© www.soinside.com 2019 - 2024. All rights reserved.