简体   繁体   English

如何解决`警告:错误的管道:没有元素“疯狂”`

[英]How to fix `WARNING: erroneous pipeline: no element “mad”`

I am running a gstreamer command to play mp3 from terminal with The following command: 我正在运行一个gstreamer命令,用以下命令从终端播放mp3:

gst-launch-1.0 -v filesrc location=/home/user/songs/song.mp3 ! gst-launch-1.0 -v filesrc location = / home / user / songs / song.mp3! mad ! 疯了! audioconvert ! audioconvert! audioresample ! 听觉样本! autoaudiosink autoaudiosink

I am getting the error below and the mp3 is not playing 我收到下面的错误,mp3没有播放

WARNING: erroneous pipeline: no element "mad" 警告:错误的管道:没有元素“疯狂”

I have installed gstreamer plugins already with command below: 我已经使用以下命令安装了gstreamer插件:

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

They are installed successfully but the error remains. 它们已成功安装但错误仍然存​​在。

Also I have checked whether mad plugin has been blacklisted using gst-inspect-1.0 and its not blacklisted. 此外,我已经检查了疯狂的插件是否已被列入黑名单使用gst-inspect-1.0并且未列入黑名单。

I have cleared ~/.cache/gstreamer-1.0/registry.*.bin. 我已经清除了〜/ .cache / gstreamer-1.0 / registry。*。bin。

The command below is failing in ubuntu 18.04 以下命令在ubuntu 18.04中失败

gst-launch-1.0 -v filesrc location=/home/user/songs/song.mp3 ! gst-launch-1.0 -v filesrc location = / home / user / songs / song.mp3! mad ! 疯了! audioconvert ! audioconvert! audioresample ! 听觉样本! autoaudiosink autoaudiosink

The command below works but I want to use "mad: but not "decodebin": 下面的命令有效,但我想使用“mad:but not”decodebin“:

gst-launch-1.0 -v filesrc location=/home/user/songs/song.mp3 ! gst-launch-1.0 -v filesrc location = / home / user / songs / song.mp3! decodebin ! decodebin! audioconvert ! audioconvert! audioresample ! 听觉样本! autoaudiosink autoaudiosink

From the GStreamer's 1.12 Changelog on plugins removal: 从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. 疯狂的mp1 / mp2 / mp3解码器插件已从gst-plugins-ugly中移除,因为libmad已获得GPL许可,已经很长时间没有维护,并且有更好的替代品可用。 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. 使用gst-plugins-ugly中的mpg123插件中的mpg123audiodec元素,或者包含ffmpeg库的gst-libav模块中的avdec_mp3。 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. 我们希望我们能够在下一个周期中将mp3解码转移到gst-plugins-good,因为大多数关于mp3的专利已经过期或即将到期。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM