我已经在我的目标板上安装了 gstreamer-1.0。 当我运行以下命令时:
gst-launch-1.0 filesrc location="/home/test.mp4" ! decodebin ! videoconvert ! xvimagesink
I am getting the following output:
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0: Could not initialise Xv output
Additional debug info:
xvimagesink.c(1765): gst_xvimagesink_open (): /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0:
Could not open display (null)
Setting pipeline to NULL ...
Freeing pipeline ..
请提出一些使管道正常工作的解决方案。
问候,
赛纳思
最佳答案
嗯,你有 libxv 吗?
寻找
当您检查 gst-inspect-1.0 xvimagesink
时会发生什么?
还有提到的库路径 (| grep Filename
).. 你可以 ldd 它:
ldd /usr/local/lib/gstreamer-1.0/libgstxvimagesink.so
我也遇到了一些问题..尝试安装 libxv-dev 或 libxv1..也许 dev 更安全。
关于linux - 无法初始化 Xv 输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37562232/