Opened 11 years ago

Last modified 11 years ago

#3408 open defect

ffmpeg fails to decode aac in mpeg-ts

Reported by: Dave Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: aac
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

ffmpeg does not want to play my audio in that video stream while vlc works fine to read the original stream using faad
command:

ffmpeg -i dump.ts -map 0 -c:v rawvideo -c:a pcm_s16le -f null -

ffmpeg version N-60700-g07b4b0c
built on Feb 17 2014 08:35:59

ffmpeg output:

[h264 @ 0x36e7b60] mmco: unref short failure
[aac @ 0x36e85c0] channel element 0.0 is not allocated

Last message repeated 6 times

[h264 @ 0x36e7b60] mmco: unref short failure
[aac @ 0x36e85c0] channel element 0.0 is not allocated

Last message repeated 209 times

[mpegts @ 0x36e39c0] decoding for stream 1 failed
[mpegts @ 0x36e39c0] PES packet size mismatch
[mpegts @ 0x36e39c0] Could not find codec parameters for stream 1 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp, 95 kb/s): unspecified sample rate
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'dump.ts':

Duration: 00:00:51.84, start: 33732.762167, bitrate: 933 kb/s
Program 26

Metadata:

service_name : my video
service_provider:

Stream #0:0[0x33d]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, smpte170m), 544x480 [SAR 40:33 DAR 136:99], 29.75 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Stream #0:1[0x335](spa): Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp, 95 kb/s

[abuffer @ 0x37177a0] Value inf for parameter 'time_base' out of range [0 - 2.14748e+09]

Last message repeated 1 times

[abuffer @ 0x37177a0] Error setting option time_base to value 1/0.
[graph 1 input from stream 0:1 @ 0x3716a20] Error applying options to the filter

Attachments (1)

dump_cut.ts (2.4 MB ) - added by Carl Eugen Hoyos 11 years ago.

Change History (7)

comment:1 by Carl Eugen Hoyos, 11 years ago

Keywords: ffmpeg refuse to read the audio stream removed
Priority: importantnormal

Please provide the input sample and please post the complete, uncut console output.

comment:2 by Dave, 11 years ago

here is the sample file:
http://www.mediafire.com/download/jdu8aommct32owb/dump.ts

here the full output

ffmpeg -i dump.ts -map 0 -c:v rawvideo -c:a pcm_s16le -f null -
ffmpeg version N-60700-g07b4b0c Copyright (c) 2000-2014 the FFmpeg developers
  built on Feb 17 2014 08:35:59 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --enable-static --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3
  libavutil      52. 64.100 / 52. 64.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavdevice    55. 10.100 / 55. 10.100
  libavfilter     4.  1.102 /  4.  1.102
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
[h264 @ 0x36e7b60] non-existing SPS 0 referenced in buffering period
[h264 @ 0x36e7b60] non-existing PPS 0 referenced
[h264 @ 0x36e7b60] non-existing SPS 0 referenced in buffering period
[h264 @ 0x36e7b60] non-existing PPS 0 referenced
[h264 @ 0x36e7b60] decode_slice_header error
[h264 @ 0x36e7b60] no frame!
[h264 @ 0x36e7b60] non-existing SPS 0 referenced in buffering period
[h264 @ 0x36e7b60] non-existing PPS 0 referenced
[h264 @ 0x36e7b60] non-existing SPS 0 referenced in buffering period
[h264 @ 0x36e7b60] non-existing PPS 0 referenced
[h264 @ 0x36e7b60] decode_slice_header error
[h264 @ 0x36e7b60] no frame!
[h264 @ 0x36e7b60] non-existing SPS 0 referenced in buffering period
[h264 @ 0x36e7b60] non-existing PPS 0 referenced
[h264 @ 0x36e7b60] non-existing SPS 0 referenced in buffering period
[h264 @ 0x36e7b60] non-existing PPS 0 referenced
[h264 @ 0x36e7b60] decode_slice_header error
[h264 @ 0x36e7b60] no frame!
[h264 @ 0x36e7b60] non-existing SPS 0 referenced in buffering period
[h264 @ 0x36e7b60] non-existing PPS 0 referenced
[h264 @ 0x36e7b60] non-existing SPS 0 referenced in buffering period
[h264 @ 0x36e7b60] non-existing PPS 0 referenced
[h264 @ 0x36e7b60] decode_slice_header error
[h264 @ 0x36e7b60] no frame!
[h264 @ 0x36e7b60] non-existing SPS 0 referenced in buffering period
[h264 @ 0x36e7b60] non-existing PPS 0 referenced
[h264 @ 0x36e7b60] non-existing SPS 0 referenced in buffering period
[h264 @ 0x36e7b60] non-existing PPS 0 referenced
[h264 @ 0x36e7b60] decode_slice_header error
[h264 @ 0x36e7b60] no frame!
[aac @ 0x36e85c0] channel element 0.0 is not allocated
    Last message repeated 6 times
[h264 @ 0x36e7b60] non-existing SPS 0 referenced in buffering period
[h264 @ 0x36e7b60] non-existing PPS 0 referenced
[h264 @ 0x36e7b60] non-existing SPS 0 referenced in buffering period
[h264 @ 0x36e7b60] non-existing PPS 0 referenced
[h264 @ 0x36e7b60] decode_slice_header error
[h264 @ 0x36e7b60] no frame!
[h264 @ 0x36e7b60] non-existing SPS 0 referenced in buffering period
[h264 @ 0x36e7b60] non-existing PPS 0 referenced
[h264 @ 0x36e7b60] non-existing SPS 0 referenced in buffering period
[h264 @ 0x36e7b60] non-existing PPS 0 referenced
[h264 @ 0x36e7b60] decode_slice_header error
[h264 @ 0x36e7b60] no frame!
[h264 @ 0x36e7b60] non-existing SPS 0 referenced in buffering period
[h264 @ 0x36e7b60] non-existing PPS 0 referenced
[h264 @ 0x36e7b60] non-existing SPS 0 referenced in buffering period
[h264 @ 0x36e7b60] non-existing PPS 0 referenced
[h264 @ 0x36e7b60] decode_slice_header error
[h264 @ 0x36e7b60] no frame!
[h264 @ 0x36e7b60] non-existing SPS 0 referenced in buffering period
[h264 @ 0x36e7b60] non-existing PPS 0 referenced
[h264 @ 0x36e7b60] non-existing SPS 0 referenced in buffering period
[h264 @ 0x36e7b60] non-existing PPS 0 referenced
[h264 @ 0x36e7b60] decode_slice_header error
[h264 @ 0x36e7b60] no frame!
[aac @ 0x36e85c0] channel element 0.0 is not allocated
    Last message repeated 20 times
[h264 @ 0x36e7b60] non-existing SPS 0 referenced in buffering period
[h264 @ 0x36e7b60] non-existing PPS 0 referenced
[h264 @ 0x36e7b60] non-existing SPS 0 referenced in buffering period
[h264 @ 0x36e7b60] non-existing PPS 0 referenced
[h264 @ 0x36e7b60] decode_slice_header error
[h264 @ 0x36e7b60] no frame!
[h264 @ 0x36e7b60] mmco: unref short failure
[aac @ 0x36e85c0] channel element 0.0 is not allocated
    Last message repeated 6 times
[h264 @ 0x36e7b60] mmco: unref short failure
[aac @ 0x36e85c0] channel element 0.0 is not allocated
    Last message repeated 209 times
[mpegts @ 0x36e39c0] decoding for stream 1 failed
[mpegts @ 0x36e39c0] PES packet size mismatch
[mpegts @ 0x36e39c0] Could not find codec parameters for stream 1 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp, 95 kb/s): unspecified sample rate
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'dump.ts':
  Duration: 00:00:51.84, start: 33732.762167, bitrate: 933 kb/s
  Program 26 
    Metadata:
      service_name    : my video
      service_provider: 
    Stream #0:0[0x33d]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, smpte170m), 544x480 [SAR 40:33 DAR 136:99], 29.75 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x335](spa): Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp, 95 kb/s
[abuffer @ 0x37177a0] Value inf for parameter 'time_base' out of range [0 - 2.14748e+09]
    Last message repeated 1 times
[abuffer @ 0x37177a0] Error setting option time_base to value 1/0.
[graph 1 input from stream 0:1 @ 0x3716a20] Error applying options to the filter.
Error opening filters!
Last edited 11 years ago by Carl Eugen Hoyos (previous) (diff)

comment:3 by Carl Eugen Hoyos, 11 years ago

Component: undeterminedavcodec
Keywords: aac added
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

by Carl Eugen Hoyos, 11 years ago

Attachment: dump_cut.ts added

comment:4 by Carl Eugen Hoyos, 11 years ago

$ ffmpeg -i dump.ts
ffmpeg version N-60815-g8bcacd9 Copyright (c) 2000-2014 the FFmpeg developers
  built on Feb 22 2014 13:32:11 with icc (ICC) 14.0.2 20140120
  configuration: --cc=/opt/intel/composer_xe_2013_sp1.2.144/bin/intel64/icc --enable-gpl
  libavutil      52. 65.100 / 52. 65.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavdevice    55. 10.100 / 55. 10.100
  libavfilter     4.  1.103 /  4.  1.103
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
[h264 @ 0x33cc2a0] non-existing SPS 0 referenced in buffering period
[h264 @ 0x33cc2a0] non-existing PPS 0 referenced
[h264 @ 0x33cc2a0] non-existing SPS 0 referenced in buffering period
[h264 @ 0x33cc2a0] non-existing PPS 0 referenced
[h264 @ 0x33cc2a0] decode_slice_header error
[h264 @ 0x33cc2a0] no frame!
[h264 @ 0x33cc2a0] non-existing SPS 0 referenced in buffering period
[h264 @ 0x33cc2a0] non-existing PPS 0 referenced
[h264 @ 0x33cc2a0] non-existing SPS 0 referenced in buffering period
[h264 @ 0x33cc2a0] non-existing PPS 0 referenced
[h264 @ 0x33cc2a0] decode_slice_header error
[h264 @ 0x33cc2a0] no frame!
[h264 @ 0x33cc2a0] non-existing SPS 0 referenced in buffering period
[h264 @ 0x33cc2a0] non-existing PPS 0 referenced
[h264 @ 0x33cc2a0] non-existing SPS 0 referenced in buffering period
[h264 @ 0x33cc2a0] non-existing PPS 0 referenced
[h264 @ 0x33cc2a0] decode_slice_header error
[h264 @ 0x33cc2a0] no frame!
[h264 @ 0x33cc2a0] non-existing SPS 0 referenced in buffering period
[h264 @ 0x33cc2a0] non-existing PPS 0 referenced
[h264 @ 0x33cc2a0] non-existing SPS 0 referenced in buffering period
[h264 @ 0x33cc2a0] non-existing PPS 0 referenced
[h264 @ 0x33cc2a0] decode_slice_header error
[h264 @ 0x33cc2a0] no frame!
[h264 @ 0x33cc2a0] non-existing SPS 0 referenced in buffering period
[h264 @ 0x33cc2a0] non-existing PPS 0 referenced
[h264 @ 0x33cc2a0] non-existing SPS 0 referenced in buffering period
[h264 @ 0x33cc2a0] non-existing PPS 0 referenced
[h264 @ 0x33cc2a0] decode_slice_header error
[h264 @ 0x33cc2a0] no frame!
[aac @ 0x33ccd00] channel element 0.0 is not allocated
    Last message repeated 6 times
[h264 @ 0x33cc2a0] non-existing SPS 0 referenced in buffering period
[h264 @ 0x33cc2a0] non-existing PPS 0 referenced
[h264 @ 0x33cc2a0] non-existing SPS 0 referenced in buffering period
[h264 @ 0x33cc2a0] non-existing PPS 0 referenced
[h264 @ 0x33cc2a0] decode_slice_header error
[h264 @ 0x33cc2a0] no frame!
[h264 @ 0x33cc2a0] non-existing SPS 0 referenced in buffering period
[h264 @ 0x33cc2a0] non-existing PPS 0 referenced
[h264 @ 0x33cc2a0] non-existing SPS 0 referenced in buffering period
[h264 @ 0x33cc2a0] non-existing PPS 0 referenced
[h264 @ 0x33cc2a0] decode_slice_header error
[h264 @ 0x33cc2a0] no frame!
[h264 @ 0x33cc2a0] non-existing SPS 0 referenced in buffering period
[h264 @ 0x33cc2a0] non-existing PPS 0 referenced
[h264 @ 0x33cc2a0] non-existing SPS 0 referenced in buffering period
[h264 @ 0x33cc2a0] non-existing PPS 0 referenced
[h264 @ 0x33cc2a0] decode_slice_header error
[h264 @ 0x33cc2a0] no frame!
[h264 @ 0x33cc2a0] non-existing SPS 0 referenced in buffering period
[h264 @ 0x33cc2a0] non-existing PPS 0 referenced
[h264 @ 0x33cc2a0] non-existing SPS 0 referenced in buffering period
[h264 @ 0x33cc2a0] non-existing PPS 0 referenced
[h264 @ 0x33cc2a0] decode_slice_header error
[h264 @ 0x33cc2a0] no frame!
[aac @ 0x33ccd00] channel element 0.0 is not allocated
    Last message repeated 20 times
[h264 @ 0x33cc2a0] non-existing SPS 0 referenced in buffering period
[h264 @ 0x33cc2a0] non-existing PPS 0 referenced
[h264 @ 0x33cc2a0] non-existing SPS 0 referenced in buffering period
[h264 @ 0x33cc2a0] non-existing PPS 0 referenced
[h264 @ 0x33cc2a0] decode_slice_header error
[h264 @ 0x33cc2a0] no frame!
[h264 @ 0x33cc2a0] mmco: unref short failure
[aac @ 0x33ccd00] channel element 0.0 is not allocated
    Last message repeated 6 times
[h264 @ 0x33cc2a0] mmco: unref short failure
[aac @ 0x33ccd00] channel element 0.0 is not allocated
    Last message repeated 209 times
[mpegts @ 0x33c8100] decoding for stream 1 failed
[mpegts @ 0x33c8100] PES packet size mismatch
[mpegts @ 0x33c8100] Could not find codec parameters for stream 1 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp, 95 kb/s): unspecified sample rate
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'dump.ts':
  Duration: 00:00:51.84, start: 33732.762167, bitrate: 933 kb/s
  Program 118
    Metadata:
      service_name    : Antena Latina - RD
      service_provider:
    Stream #0:0[0x33d]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, smpte170m), 544x480 [SAR 40:33 DAR 136:99], 29.75 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x335](spa): Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp, 95 kb/s
At least one output file must be specified

comment:5 by Carl Eugen Hoyos, 11 years ago

Summary: ffmpeg refuse to play audio inffmpeg fails to decode aac in mpeg-ts

comment:6 by Carl Eugen Hoyos, 11 years ago

Probably a duplicate of ticket #3003.

Note: See TracTickets for help on using tickets.