Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to make QAudioDecoder decode mp3 on CentOS?
Forum Updated to NodeBB v4.3 + New Features

How to make QAudioDecoder decode mp3 on CentOS?

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 973 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dmitriano
    wrote on last edited by
    #1

    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.

    the_T 1 Reply Last reply
    0
    • D Dmitriano

      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.

      the_T Offline
      the_T Offline
      the_
      wrote on last edited by the_
      #2

      @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

      -- No support in PM --

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved