1. 程式人生 > >qt5播放mp3檔案遇到問題及解決方法

qt5播放mp3檔案遇到問題及解決方法

問題:

Warning: “No decoder available for type ‘audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2,parsed=(boolean)true’.”
Error: “Your GStreamer installation is missing a plug-in.”

解決方法:

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

ps:
ubuntu-gnome 14.04