gpt4 book ai didi

python - 如何修复 `WARNING: erroneous pipeline: no element "疯狂“`

转载 作者:行者123 更新时间:2023-11-30 16:17:54 32 4
gpt4 key购买 nike

我正在运行 gstreamer 命令,使用以下命令从终端播放 mp3:

gst-launch-1.0 -v filesrc location=/home/user/songs/song.mp3 !疯狂的 !音频转换!音频重采样!自动音频接收器

我收到以下错误,并且 mp3 无法播放

警告:错误的管道:没有元素“mad”

我已经使用以下命令安装了 gstreamer 插件:

sudo apt-get install gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav

它们已成功安装,但错误仍然存​​在。

我还检查了 mad 插件是否已被列入黑名单gst-inspect-1.0 并且它没有被列入黑名单。

我已清除 ~/.cache/gstreamer-1.0/registry.*.bin。

以下命令在 ubuntu 18.04 中失败

gst-launch-1.0 -v filesrc 位置=/home/user/songs/song.mp3 !疯狂的 !音频转换!音频重采样!自动音频接收器

下面的命令有效,但我想使用“mad:但不是“decodebin”:

gst-launch-1.0 -v filesrc location=/home/user/songs/song.mp3 !解码器!音频转换!音频重采样!自动音频接收器

最佳答案

摘自 GStreamer 的 1.12 更新日志中有关插件删除的内容:

The mad mp1/mp2/mp3 decoder plugin was removed from gst-plugins-ugly, as libmad is GPL licensed, has been unmaintained for a very long time, and there are better alternatives available. Use the mpg123audiodec element from the mpg123 plugin in gst-plugins-ugly instead, or avdec_mp3 from the gst-libav module which wraps the ffmpeg library. We expect that we will be able to move mp3 decoding to gst-plugins-good in the next cycle seeing that most patents around mp3 have expired recently or are about to expire.

关于python - 如何修复 `WARNING: erroneous pipeline: no element "疯狂“`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56132573/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com