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

videoRecorder.resolution not respected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.11.0
    • Multimedia
    • None
    • Android

    Description

      This may be present on other platforms, but the immediate case is on android.
      given:

          videoRecorder {
      	audioCodec: "aac"
      	mediaContainer: "mp4"
      	frameRate: 30
      	videoEncodingMode: CameraRecorder.AverageBitRateEncoding
      	resolution: Qt.size(1920,1080)
      	videoCodec: "h264"
          }
      

      is not enough to produce a recording matching the specified properties.

      I had to add:

      onRecorderStateChanged:  {
      	camera.videoRecorder.resolution =  Qt.size(1920,1080);
      }
      

      to get it to actually take and remain. It seems that somewhere along the line the preference is getting lost. I'm guessing it's when it goes into unloaded state and comes back out?

      D libacquirefaces.so: qrc:/main.qml:98 (onRecorderStatusChanged): qml: recorderStatus: LoadedStatus
      D libacquirefaces.so: qrc:/main.qml:109 (onRecorderStateChanged): qml: recorderState: undefined
      D libacquirefaces.so: qrc:/main.qml:98 (onRecorderStatusChanged): qml: recorderStatus: UnloadedStatus
      D libacquirefaces.so: qrc:/main.qml:98 (onRecorderStatusChanged): qml: recorderStatus: LoadedStatus

      Attachments

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

        Activity

          People

            valentyn.doroshchuk Valentyn Doroshchuk
            scorp1us Jason Hihn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes