Gstreamer 1.16.2 filesrc 元素找不到我的文件

问题描述

我想在我的棋盘图像上应用鱼眼 gstreamer 元素:

gst-launch-1.0 filesrc location=EmaginResult.jpeg ! fisheye ! autovideosink

当我运行它时,终端显示

error: XDG_RUNTIME_DIR not set in the environment.
ERROR: Pipeline doesn't want to pause.
Got context from element 'autovideosink0': gst.gl.GLdisplay=context,gst.gl.GLdisplay=(GstGLdisplay)"\(GstGLdisplayX11\)\ gldisplayx11-0";
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Resource not found.
Additional debug info:
gstfilesrc.c(532): gst_file_src_start (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:
No such file "EmaginResult.jpeg"
Setting pipeline to NULL ...
Freeing pipeline ... 

但是当我跑步时:

gst-launch-1.0 autovideosrc ! fisheye ! autovideosink

显示

enter image description here

我想在我的棋盘图像上使用相同的过滤器,请有人帮助我。 谢谢。

编辑:
经过一些研究,我意识到我应该在应用鱼眼滤镜之前解码我的图像,所以之前的管道变成如下:

gst-launch-1.0 filesrc location=EmaginResult.jpg ! jpegdec ! fisheye ! imagefreeze ! autovideosink

还是没有得到任何结果,终端显示

error: XDG_RUNTIME_DIR not set in the environment.
Pipeline is prerollING ...
Got context from element 'autovideosink0': gst.gl.GLdisplay=context,gst.gl.GLdisplay=(GstGLdisplay)"\(GstGLdisplayX11\)\ gldisplayx11-0";
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3072): gst_base_src_loop (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:
streaming stopped,reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ... 

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...