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

videoRecorder.resolution not respected

XMLWordPrintable

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

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes