I am running a gstreamer command to play mp3 from terminal with The following command:
gst-launch-1.0 -v filesrc location=/home/user/songs/song.mp3 ! mad ! audioconvert ! audioresample ! autoaudiosink
I am getting the error below and the mp3 is not playing
WARNING: erroneous pipeline: no element "mad"
I have installed gstreamer plugins already with command below:
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.
I have cleared ~/.cache/gstreamer-1.0/registry.*.bin.
The command below is failing in ubuntu 18.04
gst-launch-1.0 -v filesrc location=/home/user/songs/song.mp3 ! mad ! audioconvert ! audioresample ! autoaudiosink
The command below works but I want to use "mad: but not "decodebin":
gst-launch-1.0 -v filesrc location=/home/user/songs/song.mp3 ! decodebin ! audioconvert ! audioresample ! autoaudiosink