[MPlayer-users] mp3 file detect total time error

qwen dux qwenxu at gmail.com
Mon Aug 7 12:10:13 CEST 2006


Hi,
I used mplayer to play a mp3 file,but total time of the console info is wrong:
default used demux audio is 1992.0 (33:12.0),here is the log:
Playing /home/qwdu/media/music/mp3/cuplife.mp3.
get_path('sub/') -> '/home/qwdu/.mplayer/sub/'
[file] File size is 7970622 bytes
STREAM: [file] /home/qwdu/media/music/mp3/cuplife.mp3
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename
/home/qwdu/media/music/mp3/cuplife.mp3 ext: .mp3
Trying demuxer 17 based on filename extension
==> Found audio stream: 0
demux_audio: seeking from 0x799F3E to start pos 0x77AC
demux_audio: audio data 0x77AC - 0x799EBE
Audio file file format detected.
Clip info:
 Title: 02.The Cup Of Life
 Artist: Spanlish
 Album: Music of the World Cup - Allez
 Year: 1998
 Comment: http://www.dormforce.net
 Track: 1
 Genre: Other
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: made decode tables with MMX optimization
mp3lib: using MMX optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer III, 44100 Hz 32 kbit Joint-Stereo, BPF: 104
Channels: 2, copyright: No, original: No, CRC: No, emphasis: 0
AUDIO: 44100 Hz, 2 ch, s16le, 32.0 kbit/2.27% (ratio: 4000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
ao2: 44100 Hz  2 chans  s16le
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file
or directory
alsa-init: requested format: 44100 Hz, 2 channels, 9
alsa-init: using ALSA 1.0.11
alsa-init: setup for 1/2 channel(s)
alsa-init: using device default
alsa-init: pcm opend in blocking mode
alsa-init: chunksize set to 1024
alsa-init: fragcount=16
alsa-init: got buffersize=65536
alsa-init: got period size 1024
alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy at streamminister.de>
AO: Comment: under developement
Building audio filter chain for 44100Hz/2ch/s16le -> 48000Hz/2ch/s16le...
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[libaf] Adding filter lavcresample
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Video: no video
Freeing 0 unused video chunks.
Starting playback...
[libaf] Reallocating memory in module lavcresample, old len = 0, new len = 65536
A:   1.2 (01.1) of 1992.0 (33:12.0)  7.7%

and I used demux lavf ,the total time is 398.5 (06:38.5),here is log:
Playing /home/qwdu/media/music/mp3/cuplife.mp3.
get_path('sub/') -> '/home/qwdu/.mplayer/sub/'
[file] File size is 7970622 bytes
STREAM: [file] /home/qwdu/media/music/mp3/cuplife.mp3
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: MPEG audio
libavformat file format detected.
==> Found audio stream: 0
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 44100
avg byte/sec: 20000
Block align: 0
bits/sample: 0
cbSize: 0
==========================================================================
LAVF: 1 audio and 0 video streams found
LAVF: build 3277824
Clip info:
 name: 02.The Cup Of Life
 author: Spanlish
 comments: http://www.dormforce.net
 album: Music of the World Cup - Allez
 genre: Other
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: made decode tables with MMX optimization
mp3lib: using MMX optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer III, 44100 Hz 160 kbit Stereo, BPF: 522
Channels: 2, copyright: No, original: No, CRC: No, emphasis: 0
AUDIO: 44100 Hz, 2 ch, s16le, 160.0 kbit/11.34% (ratio: 20000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
ao2: 44100 Hz  2 chans  s16le
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file
or directory
alsa-init: requested format: 44100 Hz, 2 channels, 9
alsa-init: using ALSA 1.0.11
alsa-init: setup for 1/2 channel(s)
alsa-init: using device default
alsa-init: pcm opend in blocking mode
alsa-init: chunksize set to 1024
alsa-init: fragcount=16
alsa-init: got buffersize=65536
alsa-init: got period size 1024
alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy at streamminister.de>
AO: Comment: under developement
Building audio filter chain for 44100Hz/2ch/s16le -> 48000Hz/2ch/s16le...
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[libaf] Adding filter lavcresample
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Video: no video
Freeing 0 unused video chunks.
Starting playback...
[libaf] Reallocating memory in module lavcresample, old len = 0, new len = 65536
A:   1.1 (01.0) of 398.5 (06:38.5)  3.4%

but the real end time is 04:32.
I have already upload the sample to the ftp server:
ftp.mplayerhq.hu/MPlayer/incoming/cuplife.mp3



More information about the MPlayer-users mailing list