Solved How to make QAudioDecoder decode mp3 on CentOS?
-
Hello!
I wrote a small sample application that decodes a sound file specified in its command line argument with QAudioDecoder and plays it with QAudioOutput. In general it works, the only problem is that I cannot determine for sure what sound formats (wav 16/24/32 bit, mp3, etc...) are supported on what OS. For example, after installing gstreamer0.10-fluendo-mp3 package on Ubuntu I was able to play (decode) mp3 files with my sample app, but I am not sure what package should I install on CentOS to play mp3 files? Also not all 24/32 bit WAV files are decoded on my Ubuntu and CentOS machines. -
@Dmitriano
CentOS does not support such "bad" codecs as mp3, you need to install the following packages:- gstreamer{,1}-plugins-ugly
- gstreamer-plugins-bad-nonfree
- gstreamer1-plugins-bad-freeworld
as stated here https://wiki.centos.org/TipsAndTricks/MultimediaOnCentOS7