我清楚地安装了gst-plugins-base-1.8.1。
从https://gstreamer.freedesktop.org/modules/和下载
./configure make sudo make installalsasrc elemenet在这个基础插件。 我从https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/查看
但是当我运行这个
gst-launch alsasrc device=hw:1 ! audioconvert ! audioresample ! alawenc ! rtppcmapay ! udpsink host=192.168.20.26 port=5001我得到这个错误
ERROR: pipeline could not be constructed: no element "alsasrc".我该怎么办?
I installed gst-plugins-base-1.8.1 clearly.
Download from https://gstreamer.freedesktop.org/modules/ and
./configure make sudo make installAnd alsasrc elemenet is in that base plugin. I check it from https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/
But when I run this
gst-launch alsasrc device=hw:1 ! audioconvert ! audioresample ! alawenc ! rtppcmapay ! udpsink host=192.168.20.26 port=5001I get this error
ERROR: pipeline could not be constructed: no element "alsasrc".How can I should do??
最满意答案
首先 - 你使用gst-launch而不是gst-launch-1.0 ..其次 - 你是否也编译过gstreamer核心 ? 基础取决于这个..你需要编译它..
然后你必须检查版本,如果你真的在1.8,而不是在某些系统默认的gstreamer(我猜你在linux / mac上):
gst-launch-1.0 --version
默认情况下,在Linux上,gstreamer被安装到/ usr / local / prefix ..这是通过PATH等选择的。也许你还必须设置GST_PLUGIN_BASE和LD_LIBRARY_PATH和PATH,以编译gst-plugins-base在gstreamer之上(核心)..
检查它并更新问题..你可以给我写一个你做过的评论
first - you used gst-launch and not gst-launch-1.0 .. second - did you compile also the gstreamer core? The -base depends on this.. you need to have it compiled..
Then you have to check the version if you really are on that 1.8 and not on some system default gstreamer (I guess you are on linux/mac):
gst-launch-1.0 --version
By default on Linux the gstreamer is make installed into /usr/local/ prefix.. which is picked with PATH etc.. maybe you have to also set GST_PLUGIN_BASE and LD_LIBRARY_PATH and PATH in order to compile gst-plugins-base on top of gstreamer (core)..
check it and update question.. you may write me a comment that you did
更多推荐
发布评论