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

Audio files overwritten by AudioRecorder cause errors when played in MediaPlayer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 6.10.0 RC
    • Multimedia
    • None
    • macOS

      Environment:

      MacOS 15.6.1

      Qt Creator 18.0.0 

      Qt 6.10 RC

       

      Steps to reproduce:

      1. Run audio recorder example and record a sample with MPEG-4 cotnainer and FLAC codec.
      2. Run QML media player app and play recorded file.  
      3. Using audio recorder app overwrite previously recorded file with the same settings.
      4. Play the overwritten audio file. 

      Expected: The file is played without any errors. 

      Actual: The error pops up - the file cannot be played:

      [flac @ 0x7f9eb62a2980] decode_frame() failed
      [flac @ 0x7f9eb62a3000] invalid sync code
      [flac @ 0x7f9eb62a3000] invalid frame header
      [flac @ 0x7f9eb62a3000] decode_frame() failed
      [flac @ 0x7f9eb62a3640] invalid sync code
      [flac @ 0x7f9eb62a3640] invalid frame header
      [flac @ 0x7f9eb62a3640] decode_frame() failed
      [flac @ 0x7f9eb62a3cc0] invalid sync code
      [flac @ 0x7f9eb62a3cc0] invalid frame header
      [flac @ 0x7f9eb62a3cc0] decode_frame() failed
      [flac @ 0x7f9eb629e380] invalid sync code
      [flac @ 0x7f9eb629e380] invalid frame header
      [flac @ 0x7f9eb629e380] decode_frame() failed
      [flac @ 0x7f9eb629e9c0] invalid sync code
      [flac @ 0x7f9eb629e9c0] invalid frame header
      [flac @ 0x7f9eb629e9c0] decode_frame() failed
      [flac @ 0x7f9eb629f040] invalid sync code
      [flac @ 0x7f9eb629f040] invalid frame header
      [flac @ 0x7f9eb629f040] decode_frame() failed
      [flac @ 0x7f9eb629f680] invalid sync code
      [flac @ 0x7f9eb629f680] invalid frame header
      [flac @ 0x7f9eb629f680] decode_frame() failed
      [flac @ 0x7f9eb629fd00] invalid sync code
      [flac @ 0x7f9eb629fd00] invalid frame header
      [flac @ 0x7f9eb629fd00] decode_frame() failed
      [flac @ 0x7f9eb62a0340] invalid sync code
      [flac @ 0x7f9eb62a0340] invalid frame header
      [flac @ 0x7f9eb62a0340] decode_frame() failed
      [flac @ 0x7f9eb62a09c0] invalid sync code
      [flac @ 0x7f9eb62a09c0] invalid frame header
      [flac @ 0x7f9eb62a09c0] decode_frame() failed
      [flac @ 0x7f9eb62a1000] invalid sync code
      [flac @ 0x7f9eb62a1000] invalid frame header
      [flac @ 0x7f9eb62a1000] decode_frame() failed 

      NOTE: The problem seems to be with the media player app which may cache the file. When I do the same, but skip step 2 (play the originally recorded file) then the overwritten file is played without any problems. Anyway, I report this one as it may reveals some problems. 

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

            qtmultimediateam Qt Multimedia Team
            lkos Łukasz Kosiorowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes