[MPlayer-users] mplayer 1.0rc1 renders MP3 badly when compiled with -fstack-protector

Dan O'Brien daniel.obrien at yahoo.com
Mon Dec 4 21:36:17 CET 2006


I noticed the mplayer provided by the freshrpms.net site compiled for Fedora Core 6 wouldn't play back MP3s correctly. The output was harsh and static-y.  Freshrpms rpm is based on MPlayer-1.0rc1 so I pulled the source tarball directly from mplayerhq and compiled it.  It worked.  

Long story made short, FC6/Freshrpms uses -fstack-protector in their OPTFLAGS setting in config.mak.  When I add that to the mplayerhq generated config.mak file, the resultant mplayer does not render MP3s correctly either. 

Compiler bug?  Mplayer bug?  Who can judge?

Gcc 4.1.1 seems to be in the approved list for compilation.

Rgds,
 
Dan O'Brien, daniel.obrien at yahoo.com

====

Information:


Fedora Core 6 
Linux yorky.danobrien.ws 2.6.18-1.2849.fc6 #1 SMP Fri Nov 10 12:36:14 EST 2006 i686

-rwxr-xr-x 1 root root 1577052 Oct  8 11:30 /lib/libc-2.5.so
lrwxrwxrwx 1 root root      11 Nov 13 09:08 /lib/libc.so.6 -> libc-2.5.so

Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.1 20061011 (Red Hat 4.1.1-30)

GNU ld version 2.17.50.0.3-6 20060715

GNU assembler 2.17.50.0.3-6 20060715
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `i386-redhat-linux'.

processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 8
model name      : AMD Athlon(tm) XP 2600+
stepping        : 1
cpu MHz         : 2079.540
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow up ts
bogomips        : 4160.87

MPlayer 1.0rc1-4.1.1 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) XP 2600+ (Family: 6, Model: 8, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
get_path('codecs.conf') -> '/home/dmobrien/.mplayer/codecs.conf'
Reading /home/dmobrien/.mplayer/codecs.conf: Can't open '/home/dmobrien/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
CommandLine: '-v' '/home/dmobrien/mp3/player/TheOrb_UFOFF.mp3'
init_freetype
get_path('font/font.desc') -> '/home/dmobrien/.mplayer/font/font.desc'
font: can't open file: /home/dmobrien/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using nanosleep() timing
get_path('input.conf') -> '/home/dmobrien/.mplayer/input.conf'
Can't open input config file /home/dmobrien/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
get_path('TheOrb_UFOFF.mp3.conf') -> '/home/dmobrien/.mplayer/TheOrb_UFOFF.mp3.conf'

Playing /home/dmobrien/mp3/player/TheOrb_UFOFF.mp3.
get_path('sub/') -> '/home/dmobrien/.mplayer/sub/'
[file] File size is 101328739 bytes
STREAM: [file] /home/dmobrien/mp3/player/TheOrb_UFOFF.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/dmobrien/mp3/player/TheOrb_UFOFF.mp3 ext: .mp3
Trying demuxer 17 based on filename extension
==> Found audio stream: 0
demux_audio: seeking from 0x60A26E6 to start pos 0x0
demux_audio: audio data 0x0 - 0x60A2763
Audio file file format detected.
==========================================================================
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 3DNow!Ex optimized decore!
MP3lib: init layer2&3 finished, tables done
^MMPEG 1.0, Layer III, 44100 Hz 128 kbit Joint-Stereo, BPF: 417
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->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
alsa-init: requested format: 44100 Hz, 2 channels, 9
alsa-init: using ALSA 1.0.12
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:  -0.0 (unknown) of 6333.0 ( 1:45:33.0) ??,?% ^[[J^MA:   0.0 (00.0) of 6333.0 ( 1:45:33.0) ??,?% ^[[J^MA:   0.0 (00.0) of 6333.0 ( 1:45:33.0) ??,?% ^[[J^MA:   0.1 (00.0) of 6333.0 ( 1:45:33.0) ??,?% ^[[J^MA:   0.1 (00.0) of 6333.0 ( 1:45:33.0) ??,?% ^[[J^MA:   0.1 (00.0) of 6333.0 ( 1:45:33.0) ??,?% ^[[J^MA:   0.1 (00.1) of 6333.0 ( 1:45:33.0) ??,?% ^[[J^MA:   0.1 (00.1) of 6333.0 ( 1:45:33.0) ??,?% ^[[J^MA:   0.2 (00.1) of 6333.0 ( 1:45:33.0)  1.0% ^[[J^MA:   0.2 (00.1) of 6333.0 ( 1:45:33.0)  1.0% ^[[J^MA:   0.2 (00.2) of 6333.0 ( 1:45:33.0)  1.0% ^[[J^MA:   0.2 (00.2) of 6333.0 ( 1:45:33.0)  1.0% ^[[J^MA:   0.2 (00.2) of 6333.0 ( 1:45:33.0)  1.0% ^[[J^MA:   0.3 (00.2) of 6333.0 ( 1:45:33.0)  1.0% ^[[J^MA:   0.3 (00.2) of 6333.0 ( 1:45:33.0)  1.0% ^[[J^MA:   0.3 (00.3) of 6333.0 ( 1:45:33.0)  1.0% ^[[J^MA:   0.3 (00.3) of 6333.0 ( 1:45:33.0)  1.0% ^[[J^MA:   0.4 (00.3) of 6333.0 ( 1:45:33.0)  1.0% ^[[J^MA:   0.4 (00.3) of 6333.0 ( 1:45:33.0)  1.0% ^[[J^MA:   0.4 (00.3) of 6333.0 ( 1:45:33.0)  1.0% ^[[J^MA:   0.4 (00.4) of 6333.0 ( 1:45:33.0)  1.0% ^[[J^Mmpg123: Can't rewind stream by 1230 bits!

[libaf] Removing filter lavcresample
[libaf] Removing filter dummy
Uninit audio: mp3lib
alsa-uninit: pcm closed
vo: x11 uninit called but X11 not inited..

Exiting... (Quit)







More information about the MPlayer-users mailing list