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

Video files continue to be written after state change to stopped.

XMLWordPrintable

    • iOS/tvOS/watchOS
    • 6e3d6bf8322efd609d3a3ed33c5101072176ed5a

      I have an application that records video. When I get (in QML) the onRecorderStateChanged event, data has not finished being written to the file when videoRecorder.recorderState == CameraRecorder.StoppedState.

      I discovered this by attempting to hash the file (QCryptographicHash) and verifying the checksums.

      I believe this is because in AVFMediaRecorderControlIOS::stopWriter() it emits the stateChange, then actually tells the writer to stop.

      Unfortunately, I have to sample the file repeatedly until the file no longer changes, but this isn't 100%. The file may be added to after some delay. I'd like to have it 100% with no delay.

      Also, the time varies that the file is typically done writing. iPhones 4S counter intuitively finish sooner than iPhone5.

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

            andysh Andy Shaw
            scorp1us Jason Hihn
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes