问题描述
我正在使用Ubuntu(14.04),尝试使用gstreamer时出现此错误.
Am using Ubuntu(14.04) and I am getting this error while trying to use gstreamer.
gst-launch-1.0 v4l2src ! video/x-raw,width=640,height=480 ! x264enc ! h264parse ! rtph264pay ! udpsink host=127.0.0.1 port=5000
我已经检查了gst-inspect-1.0 v4l2src
I have checked the gst-inspect-1.0 v4l2src
它说找不到元素没有这样的元素或插件'v4l2src'"
It say element not found "No such element or plugin 'v4l2src'"
我该怎么办?从哪里可以得到这个元素或插件.我尝试重新安装整个gstreamer.但是我无法这样做.
What should I do ? From where can I get this element or plugin. I have tried resinstalling entire gstreamer. But am unable to do so.
推荐答案
v4l2src
插件属于gstreamer-plugins-good
软件包;所以
the v4l2src
plugin belongs to the gstreamer-plugins-good
package; so
sudo apt-get install gstreamer1.0-plugins-good
应该帮助您
Gstreamer将大多数插件打包在单独的软件包中;你有
Gstreamer packages most of its plugins in separate packages; you have
- gst-plugins-base
- gst-plugins-good
- gst-plugins-ugly
等等.它们是可插拔的;因此,仅更新gstreamer不会自动选择对您有利的gst-plugins ...
and more. They are pluggable; so just updating gstreamer won't auto-select gst-plugins-good for you...
这篇关于Gstreamer错误:无法构造管道:没有元素"v4l2src"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!