[FFmpeg-trac] #2605(avformat:new): Raw audio in MP4 container
FFmpeg
trac at avcodec.org
Thu May 23 20:27:42 CEST 2013
#2605: Raw audio in MP4 container
-------------------------------------+-------------------------------------
Reporter: asukhanov | Owner:
Type: defect | Status: new
Priority: normal | Component: avformat
Version: unspecified | Resolution:
Keywords: MOV MP4 | Blocked By:
demuxer | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by asukhanov):
I had a chance to do some investigation.
In file I provided to you Audio TRAK has wrong STSZ atom. Sample size must
be = 4, but it 1.
Before Patch
http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=50059bde77674977d9134f3c1151a63cb7a2391c
ffmpeg could find this bug in the stream (as long as it's PCM, we can
calculate sample size) and fix it.
Also please take a look on Audio STTS:
EntryCount 2
Entry[0].SampleCount 688128
Entry[0].SampleDelta 0
Entry[1].SampleCount 0
Entry[1].SampleDelta 0
As long as we do have 2 entries inside of audio STTS: condition inside of
this 'if' statement = true:
http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavformat/mov.c;h=d5e1f893f573d794a8a81c4e20dd2ae026034809;hb=HEAD#l1967
so we use alt_sample_size = 1 (incorrect) instead of sample size = 4
(correct)
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2605#comment:1>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list