Opened 13 years ago

Closed 12 years ago

#319 closed defect (invalid)

FFplay: AAC 5.1 sounds distorted

Reported by: Jose Santiago Owned by: Michael Niedermayer
Priority: normal Component: ffplay
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

File is located at:

wget http://208.51.85.91/I_Am_Legend-Trailer.mp4 .

File plays fine on VLC v1.0.6.

Attachments (1)

test.aac (2.0 MB ) - added by Carl Eugen Hoyos 13 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by Jose Santiago, 13 years ago

jsantiago@josepc:/mnt/centshare/ffmpeg/trunk/build/build-linux$ SDL_DSP_NOSELECT=1 SDL_AUDIODRIVER=alsa stage/bin/ffplay ./I_Am_Legend-Trailer.mp4
ffplay version 0.7-VF, Copyright (c) 2003-2011 the FFmpeg developers

built on Jun 28 2011 09:58:53 with gcc 4.3.3
configuration: --extra-version=VF --prefix=/mnt/centshare/ffmpeg/trunk/build/build-linux/stage --extra-cflags='-I/mnt/centshare/ffmpeg/trunk/build/../src/libavformat -I/mnt/centshare/ffmpeg/trunk/build/../src/libavcodec -DCONFIG_AUDIO_FLOAT=0' --extra-ldflags='-L/mnt/centshare/ffmpeg/trunk/build/build-linux/stage/lib -Wl,-rpath -Wl,/mnt/centshare/ffmpeg/trunk/build/build-linux/stage/lib' --enable-static --enable-shared --enable-avfilter --enable-pthreads --enable-zlib --enable-bzlib --enable-runtime-cpudetect --enable-hardcoded-tables
libavutil 51. 10. 0 / 51. 10. 0
libavcodec 53. 7. 0 / 53. 7. 0
libavformat 53. 4. 0 / 53. 4. 0
libavdevice 53. 2. 0 / 53. 2. 0
libavfilter 2. 24. 0 / 2. 24. 0
libswscale 2. 0. 0 / 2. 0. 0

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './I_Am_Legend-Trailer.mp4':

Metadata:

major_brand : isom
minor_version : 1
compatible_brands: isom
creation_time : 2007-11-27 01:10:05
title : I Am Legend - Trailer
artist : Warner Bros.
date : 2007
genre : Science-Fiction
encoder : MeGUI

Duration: 00:02:03.24, start: 0.000000, bitrate: 8145 kb/s

Stream #0.0(und): Video: h264 (High), yuv420p, 1920x816 [PAR 1:1 DAR 40:17], 7887 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc
Metadata:

creation_time : 2007-11-26 14:25:07

Stream #0.1(und): Audio: aac, 48000 Hz, 5.1, s16, 258 kb/s
Metadata:

creation_time : 2007-11-27 01:10:11

3.63 A-V: 0.000 s:0.0 aq= 0KB vq= 0KB sq= 0B f=0/0 0/0

comment:2 by Carl Eugen Hoyos, 13 years ago

Reproduced by developer: set
Status: newopen
Summary: FFPLAY MP4 File No Audio AAC 5.1FFplay: AAC 5.1 sounds distorted

Attached sample plays fine with ffmpeg -f alsa and mplayer -ac ffaac, but sounds heavily distorted with ffplay.

$ ffplay test.aac
ffplay version N-31072-g4d08dfe, Copyright (c) 2003-2011 the FFmpeg developers
  built on Jun 29 2011 18:04:07 with gcc 4.5.3
  configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc
  libavutil    51. 10. 0 / 51. 10. 0
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  4. 0 / 53.  4. 0
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 24. 0 /  2. 24. 0
  libswscale    2.  0. 0 /  2.  0. 0
[aac @ 0x12e4040] max_analyze_duration 5000000 reached at 5013333
[aac @ 0x12e4040] Estimating duration from bitrate, this may be inaccurate
Input #0, aac, from 'test.aac':
  Duration: 00:12:51.36, bitrate: 21 kb/s
    Stream #0.0: Audio: aac, 48000 Hz, 5.1, s16, 21 kb/s
   7.66 A-V:  0.000 s:0.0 aq=  319KB vq=    0KB sq=    0B f=0/0
$ ffmpeg -i test.aac -t 60 out.wav
ffmpeg version N-31072-g4d08dfe, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jun 29 2011 18:04:07 with gcc 4.5.3
  configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc
  libavutil    51. 10. 0 / 51. 10. 0
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  4. 0 / 53.  4. 0
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 24. 0 /  2. 24. 0
  libswscale    2.  0. 0 /  2.  0. 0
[aac @ 0x1272400] max_analyze_duration 5000000 reached at 5013333
[aac @ 0x1272400] Estimating duration from bitrate, this may be inaccurate
Input #0, aac, from 'test.aac':
  Duration: 00:12:51.36, bitrate: 21 kb/s
    Stream #0.0: Audio: aac, 48000 Hz, 5.1, s16, 21 kb/s
Output #0, wav, to 'out.wav':
  Metadata:
    encoder         : Lavf53.4.0
    Stream #0.0: Audio: pcm_s16le, 48000 Hz, 5.1, s16, 4608 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop, [?] for help
size=   33756kB time=00:01:00.01 bitrate=4608.0kbits/s
video:0kB audio:33756kB global headers:0kB muxing overhead 0.000197%

out.wav plays distorted with ffplay, plays fine with ffmpeg -f alsa and mplayer.

by Carl Eugen Hoyos, 13 years ago

Attachment: test.aac added

comment:3 by Carl Eugen Hoyos, 12 years ago

Resolution: invalid
Status: openclosed

I strongly suspect that this problem depends on sdl (it apparently works fine for many developers).

Note: See TracTickets for help on using tickets.