Windows上的GStreamer缺少插件

时间:2020-06-15 10:24:13

标签: windows installation plugins gstreamer

我已在Windows 10上安装了最新版本的gstreamer(v1.16.2),并进行了完整安装并测试了一些简单的示例,并检查了一些常见的元素是否丢失。

使用如下命令:

gst-launch-1.0 videotestsrc ! capsfilter caps=video/x-raw,format=GRAY8 ! videoconvert ! autovideosink

我收到此日志:

GST_INIT gst.c:810:init_post: initialized GStreamer successfully
GST_PIPELINE gstparse.c:337:gst_parse_launch_full: parsing pipeline description 'videotestsrc ! capsfilter caps=video/x-raw,format=GRAY8 ! videoconvert ! autovideosink '
GST_ELEMENT_FACTORY gstelementfactory.c:462:gst_element_factory_make: no such element factory "videotestsrc"!
GST_PIPELINE grammar.y:816:priv_gst_parse_yyparse: no element "videotestsrc"
GST_ELEMENT_FACTORY gstelementfactory.c:462:gst_element_factory_make: no such element factory "capsfilter"!
GST_PIPELINE grammar.y:816:priv_gst_parse_yyparse: no element "capsfilter"
GST_PIPELINE grammar.y:901:priv_gst_parse_yyparse: link has no source [sink=@0000000000000000]
GST_ELEMENT_FACTORY gstelementfactory.c:462:gst_element_factory_make: no such element factory "videoconvert"!
GST_PIPELINE grammar.y:816:priv_gst_parse_yyparse: no element "videoconvert"
GST_PIPELINE grammar.y:901:priv_gst_parse_yyparse: link has no source [sink=@0000000000000000]
GST_ELEMENT_FACTORY stelementfactory.c:462:gst_element_factory_make: no such element factory "autovideosink"!
GST_PIPELINE grammar.y:816:priv_gst_parse_yyparse: no element "autovideosink"
GST_PIPELINE grammar.y:901:priv_gst_parse_yyparse: link has no source [sink=@0000000000000000]

我还检查了安装程序是否创建了指向 C:\ gstreamer \ 1.0 \ x86_64 的新环境变量 GSTREAMER_1_0_ROOT_X86_64 ,并且还添加了 bin < / strong>文件夹添加到路径

MSI安装程序是否需要任何其他步骤才能在Windows计算机上注册其插件?

1 个答案:

答案 0 :(得分:1)

最后我找到了问题及其解决方案。至少在Windows上... Gstreamer生成带有已注册插件列表的bin文件。该文件存储在此路径

C:\Users\<name_of_user>\AppData\Local\Microsoft\Windows\INetCache\gstreamer-1.0\registry.x86_64.bin

第一次启动时似乎出现了问题,插件列表已损坏。如果删除此bin文件并通过 gst-launch-1.0 启动任何命令,它将再次检查其自身的所有插件,并刷新该bin文件。