Python 如何修复“警告:错误管道:无元素”;“疯狂”`

Python 如何修复“警告:错误管道:无元素”;“疯狂”`,python,c,gstreamer,Python,C,Gstreamer,我正在运行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 gs

我正在运行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-sugh gstreamer1.0-libav

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

此外,我还检查了mad插件是否已被黑名单使用 gst-inspect-1.0及其未列入黑名单

我已清除~/.cache/gstreamer-1.0/registry.*.bin。 下面的命令在ubuntu 18.04中失败

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

下面的命令有效,但我想使用“mad:但不是“decodebin”:
gst-launch-1.0-v filesrc location=/home/user/songs/song.mp3!decodebin!audioconvert!audioresample!autoaudiosink

来自GStreamer的1.12插件删除更改日志:

mad mp1/mp2/mp3解码器插件已从gst plugins丑陋中删除,因为libmad是GPL许可的,已经很长时间没有维护,并且有更好的替代品可用。请使用gst plugins丑陋中mpg123插件中的mpg123audiodec元素,或者使用包装ffmpeg库的gst libav模块中的avdec_mp3。我们ect表示,我们将能够在下一个周期内将mp3解码转换为gst插件,因为mp3的大部分专利最近已经过期或即将过期