Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-109662

Not support wav format in Qt 6.2.4 on win11

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.2.4
    • Multimedia
    • None
    • Windows

    Description

      I created an application with Qt6.2.4 on win 11, I want record audio with QMediaRecorder
      and save it as a wav format, but find that the supported formats do not include the wave format.
       

      // code placeholder
      QMediaFormat format;    
      qDebug() << "Supported Audio Codecs:";    
      for (auto _r : format.supportedAudioCodecs(QMediaFormat::Encode))    {        
            qDebug() << QMediaFormat::audioCodecDescription(_r);    
      }
      qDebug() << "Supported File Formats:";    
      for (auto _r : format.supportedFileFormats(QMediaFormat::Encode))    {        
            qDebug() << QMediaFormat::fileFormatDescription(_r);    
      }
      
      // output
      Supported Audio Codecs:
      "Free Lossless Audio Codec (FLAC)"
      "Advanced Audio Codec (AAC)"
      "MP3"
      "Dolby Digital (AC3)"
      "Windows Media Audio"
      "Apple Lossless Audio Codec (ALAC)"
      
      Supported File Formats:
      "MPEG-4 Audio"
      "Free Lossless Audio Codec (FLAC)"
      "MPEG-4 Video Container"
      "AAC""Windows Media Audio"
      "Windows Media Video"
      "MP3"
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            laknoll Lars Knoll
            yuzifu r c
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes