当前位置: 首页 > 知识库问答 >
问题:

GStreamer-我的环境一定被污染了

翟嘉年
2023-03-14

最终,我尝试使用AWS Kinesis视频流。我按照说明,成功地构建了cpp生产者插件,但基本的gstreamer函数似乎无法正常工作。很可能是我在KVS设置期间搞乱了环境。试图调试这个,似乎我的环境如果在某个地方被污染了。简单的商品及服务税不起作用。

echo $GST_DEBUG
4
v4l2-ctl --list-devices
HD Pro Webcam C920 (usb-0000:00:14.0-13):
    /dev/video0
    /dev/video1
gst-device-monitor-1.0
0:00:00.000022374 20439 0x55eccd947000 INFO                GST_INIT gst.c:586:init_pre: Initializing GStreamer Core Library version 1.14.0
0:00:00.000052028 20439 0x55eccd947000 INFO                GST_INIT gst.c:587:init_pre: Using library installed in /home/train/anaconda3/lib
0:00:00.000057359 20439 0x55eccd947000 INFO                GST_INIT gst.c:607:init_pre: Linux xps8930 5.4.0-77-generic #86~18.04.1-Ubuntu SMP Fri Jun 18 01:23:22 UTC 2021 x86_64
0:00:00.000210792 20439 0x55eccd947000 INFO                GST_INIT gstmessage.c:127:_priv_gst_message_initialize: init messages
0:00:00.000459675 20439 0x55eccd947000 INFO                GST_INIT gstcontext.c:84:_priv_gst_context_initialize: init contexts
0:00:00.000658674 20439 0x55eccd947000 INFO      GST_PLUGIN_LOADING gstplugin.c:317:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:00.000737628 20439 0x55eccd947000 INFO      GST_PLUGIN_LOADING gstplugin.c:225:gst_plugin_register_static: registered static plugin "staticelements"
0:00:00.000742642 20439 0x55eccd947000 INFO      GST_PLUGIN_LOADING gstplugin.c:227:gst_plugin_register_static: added static plugin "staticelements", result: 1
0:00:00.000766492 20439 0x55eccd947000 INFO            GST_REGISTRY gstregistry.c:1727:ensure_current_registry: reading registry cache: /home/train/.cache/gstreamer-1.0/registry.x86_64.bin
0:00:00.001704356 20439 0x55eccd947000 INFO            GST_REGISTRY gstregistrybinary.c:621:priv_gst_registry_binary_read_cache: loaded /home/train/.cache/gstreamer-1.0/registry.x86_64.bin in 0.000917 seconds
0:00:00.001722697 20439 0x55eccd947000 INFO            GST_REGISTRY gstregistry.c:1583:scan_and_update_registry: Validating plugins from registry cache: /home/train/.cache/gstreamer-1.0/registry.x86_64.bin
0:00:00.001991025 20439 0x55eccd947000 INFO            GST_REGISTRY gstregistry.c:1685:scan_and_update_registry: Registry cache has not changed
0:00:00.001996780 20439 0x55eccd947000 INFO            GST_REGISTRY gstregistry.c:1762:ensure_current_registry: registry reading and updating done, result = 1
0:00:00.002000383 20439 0x55eccd947000 INFO                GST_INIT gst.c:807:init_post: GLib runtime version: 2.63.1
0:00:00.002004369 20439 0x55eccd947000 INFO                GST_INIT gst.c:809:init_post: GLib headers version: 2.56.1
0:00:00.002007594 20439 0x55eccd947000 INFO                GST_INIT gst.c:810:init_post: initialized GStreamer successfully
Probing devices...

0:00:00.002051832 20439 0x55eccd947000 WARN                 default gstdevicemonitor.c:458:gst_device_monitor_start:<devicemonitor0> No filters have been set, will expose all devices found
0:00:00.002063611 20439 0x55eccd947000 WARN                 default gstdevicemonitor.c:465:gst_device_monitor_start:<devicemonitor0> No providers match the current filters
Failed to start device monitor!

gst-launch-1.0 v4l2src ! xvimagesink
0:00:00.000026878 19950 0x557e65356400 INFO                GST_INIT gst.c:586:init_pre: Initializing GStreamer Core Library version 1.14.0
0:00:00.000042060 19950 0x557e65356400 INFO                GST_INIT gst.c:587:init_pre: Using library installed in /home/train/anaconda3/lib
0:00:00.000064166 19950 0x557e65356400 INFO                GST_INIT gst.c:607:init_pre: Linux xps8930 5.4.0-77-generic #86~18.04.1-Ubuntu SMP Fri Jun 18 01:23:22 UTC 2021 x86_64
0:00:00.000174203 19950 0x557e65356400 INFO                GST_INIT gstmessage.c:127:_priv_gst_message_initialize: init messages
0:00:00.000400110 19950 0x557e65356400 INFO                GST_INIT gstcontext.c:84:_priv_gst_context_initialize: init contexts
0:00:00.000548873 19950 0x557e65356400 INFO      GST_PLUGIN_LOADING gstplugin.c:317:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:00.000603380 19950 0x557e65356400 INFO      GST_PLUGIN_LOADING gstplugin.c:225:gst_plugin_register_static: registered static plugin "staticelements"
0:00:00.000622411 19950 0x557e65356400 INFO      GST_PLUGIN_LOADING gstplugin.c:227:gst_plugin_register_static: added static plugin "staticelements", result: 1
0:00:00.000649669 19950 0x557e65356400 INFO            GST_REGISTRY gstregistry.c:1727:ensure_current_registry: reading registry cache: /home/train/.cache/gstreamer-1.0/registry.x86_64.bin
0:00:00.001560214 19950 0x557e65356400 INFO            GST_REGISTRY gstregistrybinary.c:621:priv_gst_registry_binary_read_cache: loaded /home/train/.cache/gstreamer-1.0/registry.x86_64.bin in 0.000901 seconds
0:00:00.001598756 19950 0x557e65356400 INFO            GST_REGISTRY gstregistry.c:1583:scan_and_update_registry: Validating plugins from registry cache: /home/train/.cache/gstreamer-1.0/registry.x86_64.bin
0:00:00.001806632 19950 0x557e65356400 INFO            GST_REGISTRY gstregistry.c:1685:scan_and_update_registry: Registry cache has not changed
0:00:00.001812424 19950 0x557e65356400 INFO            GST_REGISTRY gstregistry.c:1762:ensure_current_registry: registry reading and updating done, result = 1
0:00:00.001817608 19950 0x557e65356400 INFO                GST_INIT gst.c:807:init_post: GLib runtime version: 2.63.1
0:00:00.001838279 19950 0x557e65356400 INFO                GST_INIT gst.c:809:init_post: GLib headers version: 2.56.1
0:00:00.001843281 19950 0x557e65356400 INFO                GST_INIT gst.c:810:init_post: initialized GStreamer successfully
0:00:00.001855168 19950 0x557e65356400 INFO            GST_PIPELINE gstparse.c:337:gst_parse_launch_full: parsing pipeline description 'v4l2src ! xvimagesink '
0:00:00.001863268 19950 0x557e65356400 WARN     GST_ELEMENT_FACTORY gstelementfactory.c:456:gst_element_factory_make: no such element factory "v4l2src"!
0:00:00.001871121 19950 0x557e65356400 ERROR           GST_PIPELINE grammar.y:816:priv_gst_parse_yyparse: no element "v4l2src"
0:00:00.001879687 19950 0x557e65356400 WARN     GST_ELEMENT_FACTORY gstelementfactory.c:456:gst_element_factory_make: no such element factory "xvimagesink"!
0:00:00.001884772 19950 0x557e65356400 ERROR           GST_PIPELINE grammar.y:816:priv_gst_parse_yyparse: no element "xvimagesink"
0:00:00.001890918 19950 0x557e65356400 ERROR           GST_PIPELINE grammar.y:901:priv_gst_parse_yyparse: link has no source [sink=@(nil)]
ERROR: pipeline could not be constructed: no element "v4l2src".

奇怪的是,AWS插头似乎就位了

export GST_PLUGIN_PATH=`pwd`/build
gst-inspect-1.0 kvssink

... the output is exactly what AWS says to expect
gst-launch-1.0 -v rtspsrc location=rtsp://<username>:<mypassword>@X.X.X.X:554//h264Preview_01_main short-header=TRUE ! rtph264depay ! video/x-h264, format=avc,alignment=au ! h264parse ! kvssink stream-name=sec-cam00 storage-size=128
0:00:00.000022068 20861 0x558719b40400 INFO                GST_INIT gst.c:586:init_pre: Initializing GStreamer Core Library version 1.14.0
0:00:00.000041120 20861 0x558719b40400 INFO                GST_INIT gst.c:587:init_pre: Using library installed in /home/train/anaconda3/lib
0:00:00.000060355 20861 0x558719b40400 INFO                GST_INIT gst.c:607:init_pre: Linux xps8930 5.4.0-77-generic #86~18.04.1-Ubuntu SMP Fri Jun 18 01:23:22 UTC 2021 x86_64
0:00:00.000224186 20861 0x558719b40400 INFO                GST_INIT gstmessage.c:127:_priv_gst_message_initialize: init messages
0:00:00.000481683 20861 0x558719b40400 INFO                GST_INIT gstcontext.c:84:_priv_gst_context_initialize: init contexts
0:00:00.000643144 20861 0x558719b40400 INFO      GST_PLUGIN_LOADING gstplugin.c:317:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:00.000679781 20861 0x558719b40400 INFO      GST_PLUGIN_LOADING gstplugin.c:225:gst_plugin_register_static: registered static plugin "staticelements"
0:00:00.000685079 20861 0x558719b40400 INFO      GST_PLUGIN_LOADING gstplugin.c:227:gst_plugin_register_static: added static plugin "staticelements", result: 1
0:00:00.000696647 20861 0x558719b40400 INFO            GST_REGISTRY gstregistry.c:1727:ensure_current_registry: reading registry cache: /home/train/.cache/gstreamer-1.0/registry.x86_64.bin
0:00:00.001644394 20861 0x558719b40400 INFO            GST_REGISTRY gstregistrybinary.c:621:priv_gst_registry_binary_read_cache: loaded /home/train/.cache/gstreamer-1.0/registry.x86_64.bin in 0.000939 seconds
0:00:00.001662943 20861 0x558719b40400 INFO            GST_REGISTRY gstregistry.c:1583:scan_and_update_registry: Validating plugins from registry cache: /home/train/.cache/gstreamer-1.0/registry.x86_64.bin
0:00:00.002679163 20861 0x558719b40400 INFO            GST_REGISTRY gstregistry.c:1685:scan_and_update_registry: Registry cache has not changed
0:00:00.002685537 20861 0x558719b40400 INFO            GST_REGISTRY gstregistry.c:1762:ensure_current_registry: registry reading and updating done, result = 1
0:00:00.002689246 20861 0x558719b40400 INFO                GST_INIT gst.c:807:init_post: GLib runtime version: 2.63.1
0:00:00.002693062 20861 0x558719b40400 INFO                GST_INIT gst.c:809:init_post: GLib headers version: 2.56.1
0:00:00.002696296 20861 0x558719b40400 INFO                GST_INIT gst.c:810:init_post: initialized GStreamer successfully
0:00:00.002707295 20861 0x558719b40400 INFO            GST_PIPELINE gstparse.c:337:gst_parse_launch_full: parsing pipeline description 'rtspsrc location=rtsp://admin:eAgleEyE5437@10.0.0.3:554//h264Preview_01_main short-header=TRUE ! rtph264depay ! video/x-h264, format=avc,alignment=au ! h264parse ! kvssink stream-name=sec-cam00 storage-size=128 '
0:00:00.002715675 20861 0x558719b40400 WARN     GST_ELEMENT_FACTORY gstelementfactory.c:456:gst_element_factory_make: no such element factory "rtspsrc"!
0:00:00.002722336 20861 0x558719b40400 ERROR           GST_PIPELINE grammar.y:816:priv_gst_parse_yyparse: no element "rtspsrc"
0:00:00.002729448 20861 0x558719b40400 WARN     GST_ELEMENT_FACTORY gstelementfactory.c:456:gst_element_factory_make: no such element factory "rtph264depay"!
0:00:00.002733774 20861 0x558719b40400 ERROR           GST_PIPELINE grammar.y:816:priv_gst_parse_yyparse: no element "rtph264depay"
0:00:00.002738443 20861 0x558719b40400 ERROR           GST_PIPELINE grammar.y:901:priv_gst_parse_yyparse: link has no source [sink=@(nil)]
0:00:00.002751141 20861 0x558719b40400 WARN     GST_ELEMENT_FACTORY gstelementfactory.c:456:gst_element_factory_make: no such element factory "h264parse"!
0:00:00.002756032 20861 0x558719b40400 ERROR           GST_PIPELINE grammar.y:816:priv_gst_parse_yyparse: no element "h264parse"
0:00:00.002760080 20861 0x558719b40400 ERROR           GST_PIPELINE grammar.y:901:priv_gst_parse_yyparse: link has no source [sink=@(nil)]
0:00:00.007178292 20861 0x558719b40400 INFO      GST_PLUGIN_LOADING gstplugin.c:901:_priv_gst_plugin_load_file_for_registry: plugin "/home/train/projects/amazon-kinesis-video-streams-producer-sdk-cpp/build/libgstkvssink.so" loaded
0:00:00.007189020 20861 0x558719b40400 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "kvssink"
0:00:00.007301650 20861 0x558719b40400 ERROR           GST_PIPELINE grammar.y:901:priv_gst_parse_yyparse: link has no source [sink=@0x558719bdc0a0]
WARNING: erroneous pipeline: no element "rtspsrc"

共有1个答案

顾超
2023-03-14

conda停用

所有这些问题都是由一个基本的conda环境激活引起的。停用康达就没事了。

 类似资料:
  • 烟花由中国古代人民较早发明,常用于盛大的典礼或表演中,也在除夕夜及元宵节中燃放用来烘托节日氛围。近年来随着环境污染的加剧,一些地区已经禁止燃放烟花了,那我们就用 Python 实现一场无污染的烟花秀。

  • 我受到了某种测试污染。当我单独运行失败测试时,它们会通过。当我把它们一起运行时,我会得到错误。这些错误与数据库无关。我不能理解错误。例如:页面: 我不明白,因为模块的内容不是必需的。另外,另一个测试的污染会导致这种情况吗?我的测试太多了,无法列出。 我唯一的想法是cookie被设置而不是由我的程序。有一堆cookie,它们具有奇怪的名称,如“ba743b”、“kvcd”、“kn_ai”等,并具有神

  • 描述 HTTP 参数污染,或者 HPP,在网站接受用户输入,将其用于生成发往其它系统的 HTTP 请求,并且不校验用户输出的时候发生。它以两种方式产生,通过服务器(后端)或者通过客户端。 在 StackExchange 上,SilverlightFox 提供了一个 HPP 服务端攻击的不错的例子。假设我们拥有以下站点:https://www.example.com/transferMoney.ph

  • 问题内容: 我想将画布保存为img。我有这个功能: 它给我错误: 未捕获到的SecurityError:无法在“ HTMLCanvasElement”上执行“ toDataURL”:可能无法导出污染的画布。 我该怎么办? 问题答案: 出于安全原因,您的本地驱动器被声明为“其他域”,并将污染画布。 (这是因为您最敏感的信息可能在本地驱动器上!)。 在测试时,请尝试以下解决方法: 将所有与页面相关的文

  • 我在React Native中有一个应用程序,当我运行npm安装时,我收到这个错误“在1182个扫描包中发现了15个漏洞(5个中等,10个高)”。运行npm audit后,大多数错误包含以下内容: 设定值的高原型污染 包集值 接上了 react-native的依赖关系 路径反应-原生 更多信息https://github.com/advisories/GHSA-4jqc-8m5r-9rpr 还有这

  • 遵循CORS上的线程缓存效果:请求的资源上不存在“Access Control Allow Origin”头 我已经能够用我的html画布解决一个奇怪的CORS问题。正如上面的线程中所述,当通过下面的函数添加图像时,我收到了标准的浏览器CORS违规警告,但根据是否清除浏览器缓存,我无法真正重现原因。当删除属性时,我完全能够通过此函数从S3向画布添加图像: 现在我的应用程序想通过导出画布 但是,由于