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

[FFmpeg audiorecorder example: AAC container fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.8.3, 6.9
    • 6.8
    • Multimedia
    • None

      A corrupted file is created when recording audio using AAC audio codec and AAC container format. Recording with the same codec but with  MPEG-4 Audio/.m4a container works fine. After recording to .aac, FFmpeg outputs

      [aac @ 0x7fae44d8d500] Qavg: 132.799 

      , but it does that when recording to .m4a as well. However, trying to play the .aac file with ffplay version 6.1.1 gives this output:

      [aac @ 0x7f953a81f980] Format aac detected only with low score of 1, misdetection possible!
      [aac @ 0x7f953ad05880] Error decoding AAC frame header.
      [aac @ 0x7f953ad05880] More than one AAC RDB per ADTS frame is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
      [aac @ 0x7f953ad05880] channel element 3.2 is not allocated
      [aac @ 0x7f953ad05880] channel element 1.9 is not allocated
      [aac @ 0x7f953ad05880] Number of bands (27) exceeds limit (11).
      [aac @ 0x7f953ad05880] Error decoding AAC frame header.
      [aac @ 0x7f953ad05880] Assuming an incorrectly encoded 7.1 channel layout instead of a spec-compliant 7.1(wide) layout, use -strict 1 to decode according to the specification instead.
      [aac @ 0x7f953ad05880] Reserved bit set.
      [aac @ 0x7f953ad05880] Number of scalefactor bands in group (59) exceeds limit (49).
      [aac @ 0x7f953ad05880] channel element 1.9 is not allocated
      [aac @ 0x7f953ad05880] Reserved bit set.
      [aac @ 0x7f953ad05880] Number of scalefactor bands in group (44) exceeds limit (40).
      [aac @ 0x7f953ad05880] channel element 2.9 is not allocated
      [aac @ 0x7f953ad05880] channel element 2.0 is not allocated
      [aac @ 0x7f953ad05880] channel element 2.5 is not allocated
      [aac @ 0x7f953ad05880] Number of scalefactor bands in group (56) exceeds limit (49).
      [aac @ 0x7f953ad05880] channel element 1.3 is not allocated
      [aac @ 0x7f953ad05880] channel element 2.1 is not allocated
      [aac @ 0x7f953ad05880] channel element 2.7 is not allocated
      [aac @ 0x7f953a81f980] Packet corrupt (stream = 0, dts = NOPTS).
      [aac @ 0x7f953ad05880] Sample rate index in program config element does not match the sample rate index configured by the container.
      [aac @ 0x7f953ad05880] channel element 2.2 is not allocated
      [aac @ 0x7f953ad05880] channel element 3.5 is not allocated
      [aac @ 0x7f953ad05880] channel element 3.3 is not allocated
      [aac @ 0x7f953a81f980] Could not find codec parameters for stream 0 (Audio: aac (Main), 5.0, fltp): unspecified sample rate
      Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
      Input #0, aac, from '/Users/lars/Music/record_0007.aac':
        Duration: N/A, bitrate: N/A
        Stream #0:0: Audio: aac (Main), 5.0, fltp
      Failed to open file '/Users/lars/Music/record_0007.aac' or configure filtergraph 

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

            lars.sutterud Lars Sutterud
            lars.sutterud Lars Sutterud
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes