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

Gstreamer Playbin fails to play video on Virtual Machine

我很难让 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 屏幕设置上更改(虚拟)视频卡一样简单。

VM Screen Settings