[FFmpeg-trac] #5993(ffmpeg:new): Not written DecoderSpecificInfo with aac_adtstoasc bsf and empty_moov flags

FFmpeg trac at avcodec.org
Mon Dec 5 05:42:27 EET 2016


#5993: Not written DecoderSpecificInfo with aac_adtstoasc bsf and empty_moov flags
---------------------------------+--------------------------------------
             Reporter:  miyukki  |                     Type:  defect
               Status:  new      |                 Priority:  normal
            Component:  ffmpeg   |                  Version:  git-master
             Keywords:           |               Blocked By:
             Blocking:           |  Reproduced by developer:  0
Analyzed by developer:  0        |
---------------------------------+--------------------------------------
 Summary of the bug:

 Not written DecoderSpecificInfo in esds atom box in MP4 with set
 aac_adtstoasc bsf and empty_moov flags.

 1. mov_init() disable a AVFMT_FLAG_AUTO_BSF flag if FF_MOV_FLAG_EMPTY_MOOV
 flag set.
 https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/movenc.c#L5556-L5559

 2. Did not called aac_adtstoasc_filter.c in first_frame_done process.
 https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/aac_adtstoasc_bsf.c#L78-L121

 3. Write esds header without DecoderSpecificInfo before first_frame_done
 process when disable AVFMT_FLAG_AUTO_BSF. Then player  couldn't be played
 audio.

 How to reproduce:
 {{{
 % ffmpeg -i source.ts -f mp4 -vcodec copy -acodec copy -bsf:a
 aac_adtstoasc dest.mp4 # video and audio could be played
 % ffmpeg -i source.ts -f mp4 -vcodec copy -acodec copy -bsf:a
 aac_adtstoasc -movflags empty_moov dest.mp4 # audio couldn't be played!

 ffmpeg built on 1f5630af51f24d79053b6bef5b8b3ba93d637306
 player for test is VLC 2.2.4
 }}}

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


More information about the FFmpeg-trac mailing list