[FFmpeg-trac] #11035(undetermined:new): MPEG-4 ALS decoder seems capped at 2^28 bytes .mp4 file size

FFmpeg trac at avcodec.org
Tue May 28 01:12:36 EEST 2024


#11035: MPEG-4 ALS decoder seems capped at 2^28 bytes .mp4 file size
--------------------------------------+----------------------------------
             Reporter:  H2Swine       |                     Type:  defect
               Status:  new           |                 Priority:  normal
            Component:  undetermined  |                  Version:  7.0
             Keywords:                |               Blocked By:
             Blocking:                |  Reproduced by developer:  0
Analyzed by developer:  0             |
--------------------------------------+----------------------------------
 How to reproduce:
 Pick a "sufficiently big" WAVE file.
 Compress it with the MPEG-4 ALS reference decoder RM23 as found at
 [http://web.archive.org/web/20120219094440/http://www.nue.tu-
 berlin.de/menue/forschung/projekte/beendete_projekte/mpeg-
 4_audio_lossless_coding_als/parameter/en/#230252]
 using the -MP4 parameter.
 Check that the encoded .mp4 file exceeds 268435456 bytes. Then just try to
 decode it:


 {{{
 % ffmpeg -i slightlytoolongALSfile.mp4 throwaway.wav
 ffmpeg version 7.0.1-essentials_build-www.gyan.dev Copyright (c) 2000-2024
 the FFmpeg developers
   built with gcc 13.2.0 (Rev5, Built by MSYS2 project)
 }}}

 Output will be like the following:

 {{{
 [aist#0:0/mp4als @ 0000027da5867440] [dec:als @ 0000027da5862400] Error
 submitting packet to decoder: Invalid data found when processing input
 [aist#0:0/mp4als @ 0000027da5867440] [dec:als @ 0000027da5862400] Decode
 error rate 1 exceeds maximum 0.666667
 [aist#0:0/mp4als @ 0000027da5867440] [dec:als @ 0000027da5862400] Task
 finished with error code: -1145393733 (Error number -1145393733 occurred)
 [aist#0:0/mp4als @ 0000027da5867440] [dec:als @ 0000027da5862400]
 Terminating thread with return code -1145393733 (Error number -1145393733
 occurred)
 [aost#0:0/pcm_s16le @ 0000027da5867dc0] No filtered frames for output
 stream, trying to initialize anyway.
 }}}

 Then shorten the WAVE file and try again. If the .mp4 file ends up less
 than 268435456 , ffmpeg should decode it just fine.
 Try again with -l (for wasted bits) and if that reduces the file size, you
 might be able to encode more samples. Try with -i (force dual mono,
 increase file size), and you will have to crop off more samples from the
 WAVE before encoding, if ffmpeg is to handle it.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11035>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list