[FFmpeg-trac] #5070(undetermined:new): Lot of artifacts in AAC encoder and duration is incorrect

FFmpeg trac at avcodec.org
Sun Dec 6 11:49:34 CET 2015


#5070: Lot of artifacts in AAC encoder and duration is incorrect
-------------------------------------+-------------------------------------
             Reporter:  d4eva        |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:  git-
  undetermined                       |  master
             Keywords:  aac          |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 There are lot of artifacts in the resulting m4a file, also the duration of
 the m4a file differs from the original wav file.

 How to reproduce:
 {{{
 ffmpeg started on 2015-12-06 at 12:40:33
 Report written to "ffmpeg-20151206-124033.log"
 Command line:
 "D:\\converted\\output\\ffmpeg.exe" -report -i short.wav -y short.m4a
 ffmpeg version 2.8.git Copyright (c) 2000-2015 the FFmpeg developers
   built with gcc 5.2.0 (i686-win32-dwarf-rev0, Built by MinGW-W64 project)
   configuration: --enable-memalign-hack --extra-cflags=-I/local/include
 --extra-ldflags=-L/local/lib --extra-cflags=-U__STRICT_ANSI__ --extra-
 ldflags='-static-libgcc -static-libstdc++' --disable-shared --disable-doc
 --enable-encoder=aac --enable-static --enable-ffmpeg --enable-ffplay
   libavutil      55. 10.100 / 55. 10.100
   libavcodec     57. 16.101 / 57. 16.101
   libavformat    57. 19.100 / 57. 19.100
   libavdevice    57.  0.100 / 57.  0.100
   libavfilter     6. 20.100 /  6. 20.100
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
 Splitting the commandline.
 Reading option '-report' ... matched as option 'report' (generate a
 report) with argument '1'.
 Reading option '-i' ... matched as input file with argument 'short.wav'.
 Reading option '-y' ... matched as option 'y' (overwrite output files)
 with argument '1'.
 Reading option 'short.m4a' ... matched as output file.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option report (generate a report) with argument 1.
 Applying option y (overwrite output files) with argument 1.
 Successfully parsed a group of options.
 Parsing a group of options: input file short.wav.
 Successfully parsed a group of options.
 Opening an input file: short.wav.
 [wav @ 00a04280] Format wav probed with size=2048 and score=99
 [wav @ 00a04280] Before avformat_find_stream_info() pos: 44 bytes
 read:36872 seeks:2
 [wav @ 00a04280] probing stream 0 pp:32
 [wav @ 00a04280] probing stream 0 pp:31
 [wav @ 00a04280] probing stream 0 pp:30
 [wav @ 00a04280] probing stream 0 pp:29
 [wav @ 00a04280] probing stream 0 pp:28
 [wav @ 00a04280] probing stream 0 pp:27
 [wav @ 00a04280] probing stream 0 pp:26
 [wav @ 00a04280] probing stream 0 pp:25
 [wav @ 00a04280] probing stream 0 pp:24
 [wav @ 00a04280] probing stream 0 pp:23
 [wav @ 00a04280] probing stream 0 pp:22
 [wav @ 00a04280] probing stream 0 pp:21
 [wav @ 00a04280] probing stream 0 pp:20
 [wav @ 00a04280] probing stream 0 pp:19
 [wav @ 00a04280] probing stream 0 pp:18
 [wav @ 00a04280] probing stream 0 pp:17
 [wav @ 00a04280] probing stream 0 pp:16
 [wav @ 00a04280] probing stream 0 pp:15
 [wav @ 00a04280] probing stream 0 pp:14
 [wav @ 00a04280] probing stream 0 pp:13
 [wav @ 00a04280] probing stream 0 pp:12
 [wav @ 00a04280] probing stream 0 pp:11
 [wav @ 00a04280] probing stream 0 pp:10
 [wav @ 00a04280] probing stream 0 pp:9
 [wav @ 00a04280] probing stream 0 pp:8
 [wav @ 00a04280] probing stream 0 pp:7
 [wav @ 00a04280] probing stream 0 pp:6
 [wav @ 00a04280] probing stream 0 pp:5
 [wav @ 00a04280] probing stream 0 pp:4
 [wav @ 00a04280] probing stream 0 pp:3
 [wav @ 00a04280] probing stream 0 pp:2
 [wav @ 00a04280] probing stream 0 pp:1
 [wav @ 00a04280] probed stream 0
 [wav @ 00a04280] parser not found for codec pcm_s16le, packets or times
 may be invalid.
 [wav @ 00a04280] All info found
 [wav @ 00a04280] After avformat_find_stream_info() pos: 204844 bytes
 read:266248 seeks:2 frames:50
 Guessed Channel Layout for  Input Stream #0.0 : stereo
 Input #0, wav, from 'short.wav':
   Duration: 00:00:11.79, bitrate: 1414 kb/s
     Stream #0:0, 50, 1/44100: Audio: pcm_s16le ([1][0][0][0] / 0x0001),
 44100 Hz, 2 channels, s16, 1411 kb/s
 Successfully opened the file.
 Parsing a group of options: output file short.m4a.
 Successfully parsed a group of options.
 Opening an output file: short.m4a.
 Successfully opened the file.
 detected 8 logical cores
 [graph 0 input from stream 0:0 @ 00a089a0] Setting 'time_base' to value
 '1/44100'
 [graph 0 input from stream 0:0 @ 00a089a0] Setting 'sample_rate' to value
 '44100'
 [graph 0 input from stream 0:0 @ 00a089a0] Setting 'sample_fmt' to value
 's16'
 [graph 0 input from stream 0:0 @ 00a089a0] Setting 'channel_layout' to
 value '0x3'
 [graph 0 input from stream 0:0 @ 00a089a0] tb:1/44100 samplefmt:s16
 samplerate:44100 chlayout:0x3
 [audio format for output stream 0:0 @ 00a0be20] Setting 'sample_fmts' to
 value 'fltp'
 [audio format for output stream 0:0 @ 00a0be20] Setting 'sample_rates' to
 value
 '96000|88200|64000|48000|44100|32000|24000|22050|16000|12000|11025|8000|7350'
 [audio format for output stream 0:0 @ 00a0be20] auto-inserting filter
 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the
 filter 'audio format for output stream 0:0'
 [AVFilterGraph @ 00a0ef20] query_formats: 4 queried, 6 merged, 3 already
 done, 0 delayed
 [auto-inserted resampler 0 @ 00a0c0e0] [SWR @ 03f12840] Using s16p
 internally between filters
 [auto-inserted resampler 0 @ 00a0c0e0] ch:2 chl:stereo fmt:s16 r:44100Hz
 -> ch:2 chl:stereo fmt:fltp r:44100Hz
 Output #0, ipod, to 'short.m4a':
   Metadata:
     encoder         : Lavf57.19.100
     Stream #0:0, 0, 1/44100: Audio: aac (mp4a / 0x6134706D), 44100 Hz,
 stereo, fltp, 128 kb/s
     Metadata:
       encoder         : Lavc57.16.101 aac
 Stream mapping:
   Stream #0:0 -> #0:0 (pcm_s16le (native) -> aac (native))
 Press [q] to stop, [?] for help
 cur_dts is invalid (this is harmless if it occurs once at the start per
 stream)
 cur_dts is invalid (this is harmless if it occurs once at the start per
 stream)
 size=     110kB time=00:00:07.10 bitrate= 126.7kbits/s
 [output stream 0:0 @ 00a0bca0] EOF on sink link output stream 0:0:default.
 No more output streams to write to, finishing.
 [aac @ 03ed3b00] Trying to remove 324 more samples than there are in the
 queue
 size=     185kB time=00:00:11.79 bitrate= 128.5kbits/s
 video:0kB audio:182kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 1.491890%
 Input file #0 (short.wav):
   Input stream #0:0 (audio): 508 packets read (2079472 bytes); 508 frames
 decoded (519868 samples);
   Total: 508 packets (2079472 bytes) demuxed
 Output file #0 (short.m4a):
   Output stream #0:0 (audio): 508 frames encoded (519868 samples); 509
 packets muxed (186676 bytes);
   Total: 509 packets (186676 bytes) muxed
 508 frames successfully decoded, 0 decoding errors
 [AVIOContext @ 03ed3f00] Statistics: 30 seeks, 532 writeouts
 [aac @ 03ed3b00] Qavg: 3679.664
 [AVIOContext @ 00a080a0] Statistics: 2120448 bytes read, 2 seeks
 }}}
 Patches should be submitted to the ffmpeg-devel mailing list and not this
 bug tracker.

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


More information about the FFmpeg-trac mailing list