Opened 5 years ago

Last modified 5 years ago

#1762 new enhancement

mp4 file with 2 'mp4a' boxes in a 'stsd' box

Reported by: chungying Owned by:
Priority: wish Component: avformat
Version: unspecified Keywords: mov mp4a stsd
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
There is a mp4 file with 2 'mp4a' boxes in a 'stsd' box.

Acording to ISO IEC 14496-12, the 'sample_description_index' field in 'tfhd' box gives the index of the sample entry in 'stsd' box.

However, in 'ff_mov_read_stsd_entries' always takes the information of the last 'mp4a' box instead of read the 'sample_description_index' field.

Maybe the information of stsd can be recorde as a list and apply the information indexed by 'sample_description_index'.

How to reproduce:
The file I attached always without sound output.
Since the value of 'sample_description_index' field in this file is '1', but the information applied is in the second 'mp4a' box. (The number of entries start from 1.)

Attachments (1)

ffmpeg_aac.mp4 (315.8 KB) - added by chungying 5 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 5 years ago by cehoyos

  • Keywords mov added; mp4 removed

Complete, uncut console output of "ffmpeg -i yourfile.mp4" missing and please provide a sample.

Changed 5 years ago by chungying

comment:2 Changed 5 years ago by chungying

Console output:

ffmpeg version N-44601-gcb3591e Copyright (c) 2000-2012 the FFmpeg developers
  built on Sep 19 2012 16:28:01 with gcc 4.7.1 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runt
ime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass -
-enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-l
ibfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenj
peg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheo
ra --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li
bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena
ble-zlib
  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 56.100 / 54. 56.100
  libavformat    54. 27.101 / 54. 27.101
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3. 16.104 /  3. 16.104
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 023fce00] Could not find codec parameters for stream
0 (Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, 1 channels, s16): unspecified frame
 size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
ffmpeg_aac.mp4: could not find codec parameters

comment:3 Changed 5 years ago by cehoyos

Which software supports decoding the sample?

comment:4 Changed 5 years ago by chungying

I can't find any software to decode this sample so far.

comment:5 Changed 5 years ago by cehoyos

  • Priority changed from normal to wish
  • Type changed from defect to enhancement

How do you know the file is valid?

comment:6 follow-up: Changed 5 years ago by chungying

As above mentioned, according to ISO IEC 1449-12, this file should be played normally.
I have another file which content is described by the last 'mp4a' box and it can be played normally.
You can find the file at
http://download.tsi.telecom-paristech.fr/gpac/DASH_CONFORMANCE/TelecomParisTech/__old_deprecated/isobmf/audio/segment-single/counter-10mn_mp3_dash.mp4

comment:7 in reply to: ↑ 6 Changed 5 years ago by cehoyos

Replying to chungying:

As above mentioned, according to ISO IEC 1449-12, this file should be played normally.

Thanks for clarifying.

I have another file which content is described by the last 'mp4a' box and it can be played normally.

I downloaded the sample and it does not play for me.
Which software did you use?

Note: See TracTickets for help on using tickets.