#8505: fast aac encoder produces invalid output for x86 32-bit builds
-------------------------------------+-------------------------------------
             Reporter:               |                    Owner:  (none)
  LeadAssimilator                    |
                 Type:  defect       |                   Status:  open
             Priority:  important    |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  regression   |               Blocked By:
  aac                                |
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by Simon):

 I'm investigating a reproduction with:

 ffmpeg version N-66244-g468615f204-static
 https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2023 the FFmpeg
 developers
   built with gcc 8 (Debian 8.3.0-6)
   configuration: --enable-gpl --enable-version3 --enable-static --disable-
 debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio
 --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp
 --enable-libgme --enable-gray --enable-libfribidi --enable-libass
 --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb
 --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband
 --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis
 --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-
 amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-
 libx265 --enable-libxml2 --enable-libxvid --enable-libzimg
   libavutil      58. 13.101 / 58. 13.101
   libavcodec     60. 21.100 / 60. 21.100
   libavformat    60.  9.100 / 60.  9.100
   libavdevice    60.  2.100 / 60.  2.100
   libavfilter     9.  8.102 /  9.  8.102
   libswscale      7.  3.100 /  7.  3.100
   libswresample   4. 11.100 /  4. 11.100
   libpostproc    57.  2.100 / 57.  2.100
 Hyper fast Audio and Video encoder

 (is N-66244-g468615f204-static this before or after the mentioned commit?)


 On a specific audio input, subsequent decode reliably produces :

 [aac @ 0xcba1d80] Number of bands (43) exceeds limit (41).ed=98.4x
 [aist#0:1/aac @ 0xcbcb800] Error submitting packet to decoder: Invalid
 data found when processing input

 Encode command:
 ./ffmpeg -i ./media/aacorg.mp4 -y -dn -vn ./media/aaconly.mp4

 Decode command:
 ./ffmpeg -i ./media/aaconly.mp4  -f wav -vn -y /dev/null



 This version seems to not reproduce the issue:

 ffmpeg version 6.1-static https://johnvansickle.com/ffmpeg/  Copyright (c)
 2000-2023 the FFmpeg developers
   built with gcc 8 (Debian 8.3.0-6)
   configuration: --enable-gpl --enable-version3 --enable-static --disable-
 debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio
 --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp
 --enable-libgme --enable-gray --enable-libaom --enable-libfribidi
 --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt
 --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab
 --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264
 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid
 --enable-libzvbi --enable-libzimg
   libavutil      58. 29.100 / 58. 29.100
   libavcodec     60. 31.102 / 60. 31.102
   libavformat    60. 16.100 / 60. 16.100
   libavdevice    60.  3.100 / 60.  3.100
   libavfilter     9. 12.100 /  9. 12.100
   libswscale      7.  5.100 /  7.  5.100
   libswresample   4. 12.100 /  4. 12.100
   libpostproc    57.  3.100 / 57.  3.100
 Hyper fast Audio and Video encoder

 I am also unable to reproduce with 7.0.2:
 ffmpeg version 7.0.2-static https://johnvansickle.com/ffmpeg/  Copyright
 (c) 2000-2024 the FFmpeg developers
   built with gcc 8 (Debian 8.3.0-6)
   configuration: --enable-gpl --enable-version3 --enable-static --disable-
 debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio
 --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp
 --enable-libgme --enable-gray --enable-libaom --enable-libfribidi
 --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt
 --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab
 --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264
 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid
 --enable-libzvbi --enable-libzimg
   libavutil      59.  8.100 / 59.  8.100
   libavcodec     61.  3.100 / 61.  3.100
   libavformat    61.  1.100 / 61.  1.100
   libavdevice    61.  1.100 / 61.  1.100
   libavfilter    10.  1.100 / 10.  1.100
   libswscale      8.  1.100 /  8.  1.100
   libswresample   5.  1.100 /  5.  1.100
   libpostproc    58.  1.100 / 58.  1.100
 Universal media converter



 However, if I use -ss to start the encoding from 1 hour into the audio
 (the issue occurs at  ~01:47:14), the issues does not occur.  If I
 transcode to mp3, and then encode, the issue does not occur.  I can only
 reproduce from the original aac input (with or without video in the source
 mp4).
 So the issue is very hard to reproduce, so it's possible the mods MAY have
 just changed the parameters enough to hide it for now.

 unfortunately I don't have permission to share the complete source audio,
 and trying to trim it prevents the issue from occurring.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/8505#comment:26>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to