5

I am using the FFMPEG C API to decode the audio in an MP4 file.

My code works when decoding an OGG or MP3 file, but fails on the first frame of AAC audio in an MP4

I get this error from

avcodec_send_packet(codecContext, packet)

[aac @ 0x7f80eb9e3a00] Number of bands (31) exceeds limit (5)

What is the "number of bands" and how do I increase it? What does this message really mean?

Thank you in advance

opus111
  • 2,744
  • 4
  • 25
  • 41
  • Show your code. – llogan Apr 06 '17 at 18:09
  • Hello Lord, My code is in Scala and calls the java-cpp-presets wrapper for FFMEG. It also involves Custom I/IO from data in a Java Buffer. This is a long way of saying the whole code is big and might cause more questions than it answers. Which part of the code do you need to see? Is this problem perhaps part of the creation of the codec or format? – opus111 Apr 06 '17 at 22:39
  • A self-contained code that is sufficient to reproduce the error would be useful. – bot1131357 May 11 '17 at 06:28

0 Answers0