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

Non consistent default multimedia settings when setting null properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • 5.13.1
    • Multimedia
    • None
    • Linux/X11

    Description

      QAudioRecorder (QMediaRecorder) api use audio (QAudioEncoderSettings) and video (QVideoEncoderSettings) settings.
      Their documentation state then any empty/null passed values would allow the backend to automatically choose appropriate default.
      On my Linux/X11/gstreamer distribution, the audio default settings are:

      Input: default:
      Container: video/quicktime, variant=(string)3gpp
      Codec: audio/AMR
      Sample Rate: -1
      Quality: 2

      But, if i change the properties to something other and then decide to back to default (using null strings or -1 etc), then the new default are not consistent, resulting to those settings:

      Input: default:
      Container: video/x-flv
      Codec: audio/x-adpcm, layout=(string)dvi
      Sample Rate: -1
      Quality: 2

       This is problematic and not reliable.

      Also not that those are audio settings of a QAudioRecorder, and the supported container formats return both audio and video containers.. quite annoying.

      One would expect that in this inherited class only audio container be reported.

      More generally, it would even make more sense to have both supportedAudioContainers and supportedVideoContainers instead to make parity with the codec helpers.

      Attachments

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

        Activity

          People

            valentyn.doroshchuk Valentyn Doroshchuk
            filipe.azevedo Filipe Azevedo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes