[FFmpeg-trac] #2605(avformat:new): Raw audio in MP4 container
FFmpeg
trac at avcodec.org
Thu May 23 20:17:45 CEST 2013
#2605: Raw audio in MP4 container
-------------------------------------+-------------------------------------
Reporter: asukhanov | Type: defect
Status: new | Priority: normal
Component: avformat | Version:
Keywords: MOV MP4 | unspecified
demuxer | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
I found that commit http://ffmpeg.org/pipermail/ffmpeg-
cvslog/2012-March/048842.html
breaks MOV demuxing in case if input file has PCM audio inside and wrong
STSZ sample_size for this audio trak.
I have a file which I successfully transcoded with ffmpeg before this
patch:
Audio trak is PCM signed 16 LE.
Timescale = 44100
num_channels = 2
bits_per_sample = 16
Each sample duration = 1, so Each sample size should be = num_channels *
bits_per_sample / 8 * duration = 4 bytes
But STSZ wrongly has sample_size = 1 byte.
I uploaded file on ftp://upload.ffmpeg.org:
audio_silence_after_ffmpeg_upgrade.mov
Before this patch
http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=50059bde77674977d9134f3c1151a63cb7a2391c
ffmpeg was able to fix this stream error and decode audio successfully.
How to reproduce:
% ffplay audio_silence_after_ffmpeg_upgrade.mov
ffplay version git-2013-05-15-1a36c75 Copyright (c) 2003-2013 the FFmpeg
developers
built on May 14 2013 19:05:26 with gcc 4.6 (Ubuntu/Linaro
4.6.3-1ubuntu5)
configuration: --enable-gpl --enable-nonfree --enable-pthreads --enable-
libx264 --enable-libfaac --enable-libmp3lame --extra-
cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib
libavutil 52. 31.100 / 52. 31.100
libavcodec 55. 9.100 / 55. 9.100
libavformat 55. 7.100 / 55. 7.100
libavdevice 55. 0.100 / 55. 0.100
libavfilter 3. 67.100 / 3. 67.100
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2605>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list