New submission from aviad rozenhek <avia...@gmail.com>:

I am trying to mux AAC [2 channel, 44.1khz] into mpeg-ts stream.
it does not work for me, when I use ffmpeg to decode the file, ffmpeg 
misdetects the number of channels and sampling rate of audio.
when using ffplay, the video plays without audio.

 

running encoding:
-----------------

$> ffmpeg -i c:\temp\Bray-Cocoon_PC.avi -acodec aac -f mpegts 
c:\temp\test.ts
FFmpeg version SVN-r21118, Copyright (c) 2000-2010 Fabrice Bellard, et 
al.
  built on Jan 10 2010 06:06:24 with gcc 4.4.2
  configuration: --enable-shared --disable-static --enable-memalign-hack 
--cross-prefix=i686-mingw32- --cc=ccache-i686-m
ingw32-gcc --target-os=mingw32 --arch=i686 --cpu=i686 --enable-avisynth 
--enable-gpl --enable-version3 --enable-bzlib --
enable-libgsm --enable-libfaad --enable-pthreads --enable-libvorbis --
enable-libtheora --enable-libspeex --enable-libmp3
lame --enable-libopenjpeg --enable-libxvid --enable-libschroedinger --
enable-libx264 --enable-libopencore_amrwb --enable
-libopencore_amrnb
  libavutil     50. 7. 0 / 50. 7. 0
  libavcodec    52.46. 0 / 52.46. 0
  libavformat   52.46. 0 / 52.46. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 8. 0 /  0. 8. 0

Seems stream 0 codec frame rate differs from container frame rate: 
30000.00 (30000/1) -> 29.97 (30000/1001)
Input #0, avi, from 'c:\temp\Bray-Cocoon_PC.avi':
  Duration: 00:03:19.49, start: 0.000000, bitrate: 2410 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 512x384 [PAR 1:1 DAR 4:3], 29.97 
fps, 29.97 tbr, 29.97 tbn, 30k tbc
    Stream #0.1: Audio: mp3, 44100 Hz, 2 channels, s16, 192 kb/s
File 'c:\temp\test.ts' already exists. Overwrite ? [y/N] y
Output #0, mpegts, to 'c:\temp\test.ts':
    Stream #0.0: Video: mpeg2video, yuv420p, 512x384 [PAR 1:1 DAR 4:3], 
q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
    Stream #0.1: Audio: aac, 44100 Hz, 2 channels, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
[mpegts @ 01b6afa0]dts < pcr, TS is invalid
frame= 1174 fps=211 q=31.0 Lsize=    2785kB time=39.14 bitrate= 
582.9kbits/s
video:1959kB audio:325kB global headers:0kB muxing overhead 21.970058%

running decoding
----------------

C:\Users\aviad\Documents\Downloads\bin>ffmpeg -i c:\temp\test.ts 
c:\temp\test.mov
FFmpeg version SVN-r21118, Copyright (c) 2000-2010 Fabrice Bellard, et 
al.
  built on Jan 10 2010 06:06:24 with gcc 4.4.2
  configuration: --enable-shared --disable-static --enable-memalign-hack 
--cross-prefix=i686-mingw32- --cc=ccache-i686-m
ingw32-gcc --target-os=mingw32 --arch=i686 --cpu=i686 --enable-avisynth 
--enable-gpl --enable-version3 --enable-bzlib --
enable-libgsm --enable-libfaad --enable-pthreads --enable-libvorbis --
enable-libtheora --enable-libspeex --enable-libmp3
lame --enable-libopenjpeg --enable-libxvid --enable-libschroedinger --
enable-libx264 --enable-libopencore_amrwb --enable
-libopencore_amrnb
  libavutil     50. 7. 0 / 50. 7. 0
  libavcodec    52.46. 0 / 52.46. 0
  libavformat   52.46. 0 / 52.46. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 8. 0 /  0. 8. 0
[mpegts @ 01d08c40]max_analyze_duration reached

Seems stream 0 codec frame rate differs from container frame rate: 59.94 
(60000/1001) -> 29.97 (30000/1001)
Input #0, mpegts, from 'c:\temp\test.ts':
  Duration: 00:00:39.82, start: 0.700000, bitrate: 572 kb/s
  Program 1 Service01
    Metadata:
      name            : Service01
      provider_name   : FFmpeg
    Stream #0.0[0x100]: Video: mpeg2video, yuv420p, 512x384 [PAR 1:1 DAR 
4:3], 104857 kb/s, 29.97 fps, 29.97 tbr, 90k tb
n, 59.94 tbc
    Stream #0.1[0x101]: Audio: aac, 88200 Hz, 5 channels, s16, 105 kb/s
Output #0, mov, to 'c:\temp\test.mov':
    Stream #0.0: Video: mpeg4, yuv420p, 512x384 [PAR 1:1 DAR 4:3], q=2-
31, 200 kb/s, 30k tbn, 29.97 tbc
    Stream #0.1: Audio: aac, 88200 Hz, 5 channels, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
[aac @ 0029b930]channel element 1.0 is not allocated
Error while decoding stream #0.1
[aac @ 0029b930]More than one AAC RDB per ADTS frame is not implemented. 
Update your FFmpeg version to the newest one fr
om SVN. If the problem still occurs, it means that your file has a 
feature which has not been implemented.
[aac @ 0029b930]Error decoding AAC frame header.
Error while decoding stream #0.1
[aac @ 0029b930]Sample rate index in program config element does not 
match the sample rate index configured by the conta
iner.
[aac @ 0029b930]Not evaluating a further program_config_element as this 
construct is dubious at best.
[aac @ 0029b930]channel element 2.14 is not allocated
Error while decoding stream #0.1
[aac @ 0029b930]More than one AAC RDB per ADTS frame is not implemented. 
Update your FFmpeg version to the newest one fr
om SVN. If the problem still occurs, it means that your file has a 
feature which has not been implemented.
[aac @ 0029b930]Error decoding AAC frame header.
Error while decoding stream #0.1
[aac @ 0029b930]Sample rate index in program config element does not 
match the sample rate index configured by the conta
iner.
[aac @ 0029b930]Not evaluating a further program_config_element as this 
construct is dubious at best.
[aac @ 0029b930]channel element 2.11 is not allocated
Error while decoding stream #0.1
[aac @ 0029b930]More than one AAC RDB per ADTS frame is not implemented. 
Update your FFmpeg version to the newest one fr
om SVN. If the problem still occurs, it means that your file has a 
feature which has not been implemented.
[aac @ 0029b930]Error decoding AAC frame header.
Error while decoding stream #0.1
[aac @ 0029b930]More than one AAC RDB per ADTS frame is not implemented. 
Update your FFmpeg version to the newest one fr
om SVN. If the problem still occurs, it means that your file has a 
feature which has not been implemented.
[aac @ 0029b930]Error decoding AAC frame header.
Error while decoding stream #0.1
[aac @ 0029b930]Sample rate index in program config element does not 
match the sample rate index configured by the conta
iner.
[aac @ 0029b930]Not evaluating a further program_config_element as this 
construct is dubious at best.
[aac @ 0029b930]channel element 1.8 is not allocated
Error while decoding stream #0.1
[aac @ 0029b930]More than one AAC RDB per ADTS frame is not implemented. 
Update your FFmpeg version to the newest one fr
om SVN. If the problem still occurs, it means that your file has a 
feature which has not been implemented.
[aac @ 0029b930]Error decoding AAC frame header.
Error while decoding stream #0.1
[aac @ 0029b930]Sample rate index in program config element does not 
match the sample rate index configured by the conta
iner.
[aac @ 0029b930]Not evaluating a further program_config_element as this 
construct is dubious at best.
Resampling with input channels greater than 2 unsupported.
Can not resample 3 channels @ 64000 Hz to 5 channels @ 88200 Hz

----------
messages: 8804
priority: normal
status: new
substatus: new
title: AAC not working in mpegts
topic: avcodec, avformat
type: bug

_____________________________________________________
FFmpeg issue tracker <iss...@roundup.ffmpeg.org>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue1674>
_____________________________________________________

Reply via email to