[FFmpeg-trac] #7282(avformat:new): ffmpeg generates improper HE-AACv2 fMP4 files

FFmpeg trac at avcodec.org
Wed Jun 27 07:39:00 EEST 2018


#7282: ffmpeg generates improper HE-AACv2 fMP4 files
-----------------------------------+--------------------------------------
             Reporter:  ronak2121  |                     Type:  defect
               Status:  new        |                 Priority:  important
            Component:  avformat   |                  Version:  git-master
             Keywords:             |               Blocked By:
             Blocking:             |  Reproduced by developer:  0
Analyzed by developer:  0          |
-----------------------------------+--------------------------------------
 Summary of the bug:

 ffmpeg is unable to generate HE-AACv2 fMP4 files that can be properly read
 by non-ffmpeg tooling as HE-AACv2. This is because the
 defaultSampleDuration inside of the moof atoms is set to 2048, instead of
 1024, just like it is for LC-AAC.

 It seems like ffmpeg does not properly read the HE-AACv2 profile when
 writing into the defaultSampleDuration field in the moof atom.

 How to reproduce:
 {{{
 % ffmpeg -i "$FILE.mp4" -codec copy -hls_time 0.975238095238095
 -hls_segment_type fmp4 -hls_flags single_file+append_list+split_by_time
 -hls_playlist_type vod "$FILE.m3u8"

 with an HE-AACv2 audio file created by the same version of ffmpeg.

 ffmpeg version

 ffmpeg version git-2018-06-23-b86c575 Copyright (c) 2000-2018 the FFmpeg
 developers
   built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-b86c575 --enable-
 shared --enable-pthreads --enable-version3 --enable-hardcoded-tables
 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl
 --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-
 librubberband --enable-libvorbis --enable-libvpx --enable-libx264
 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma
 --enable-nonfree
   libavutil      56. 18.102 / 56. 18.102
   libavcodec     58. 20.103 / 58. 20.103
   libavformat    58. 17.101 / 58. 17.101
   libavdevice    58.  4.101 / 58.  4.101
   libavfilter     7. 25.100 /  7. 25.100
   libavresample   4.  0.  0 /  4.  0.  0
   libswscale      5.  2.100 /  5.  2.100
   libswresample   3.  2.100 /  3.  2.100
   libpostproc    55.  2.100 / 55.  2.100
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7282>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list