Gstreamer alsasrc元素错误(Gstreamer alsasrc element error)

编程入门 行业动态 更新时间:2024-10-07 20:25:05
Gstreamer alsasrc元素错误(Gstreamer alsasrc element error)

我清楚地安装了gst-plugins-base-1.8.1。

从https://gstreamer.freedesktop.org/modules/和下载

./configure make sudo make install

alsasrc 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 install

And 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=5001

I 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

更多推荐

本文发布于:2023-04-29 09:07:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1335588.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:元素   错误   alsasrc   Gstreamer   element

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!