[MPlayer-dev-eng] [PATCH] liba52 float support

D Richard Felker III dalias at aerifal.cx
Mon Feb 21 23:45:01 CET 2005


On Mon, Feb 21, 2005 at 05:56:43PM +0100, Alex Beregszaszi wrote:
> Hi,
> 
> > If any float processing gets done in libaf, it loads several
> > conversion filters to convert back and forth between many different
> > nonsense formats, generating 8bit samples in the end. And somewhere
> > during all the processing, the audio becomes nothing but white noise.
> > This has always happened ever since libaf was first written.
> 
> STOP trolling about libaf and try it out _again_. I have fixed the float
> issue since some months for now.
> 
> It was and still is broken (not the float handling but the whole), but
> less then before.

It is still broken; I get white noise. Here is the log, attached. As
you can see it's doing nonsense conversions, and there's some error
where it tries to initialize oss in float mode (wtf)..

Rich

-------------- next part --------------
MPlayer dev-CVS-050221-15:23-2.95.3 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices K6-2+/K6-III+ Sharptooth (Family: 5, Stepping: 0)
Detected cache-line size is 32 bytes
CPUflags:  MMX: 1 MMX2: 0 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX 3DNow 3DNowEx


CommandLine: '-v' '-af-adv' 'force=4' '-af' 'volume=10' 'Sanctuary.mp3'
init_freetype
get_path('font/font.desc') -> '/home/dalias/.mplayer/font/font.desc'
font: can't open file: /home/dalias/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit 3DNow) Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz).
get_path('input.conf') -> '/home/dalias/.mplayer/input.conf'
Parsing input config file /home/dalias/.mplayer/input.conf
Input config file /home/dalias/.mplayer/input.conf parsed: 45 binds
get_path('Sanctuary.mp3.conf') -> '/home/dalias/.mplayer/Sanctuary.mp3.conf'
Playing Sanctuary.mp3.
[file] File size is 2475282 bytes
STREAM: [file] Sanctuary.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 Nullsoft Streaming Video
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename Sanctuary.mp3 ext: .mp3
Trying demuxer 17 based on filename extension
==> Found audio stream: 0
demux_audio: seeking from 0x25C512 to start pos 0x0
demux_audio: audio data 0x0 - 0x25C492  
Audio file detected.
Clip info:
 Title: Sanctuary
 Artist: Yoko Kanno
 Album: Arjuna Onna no Minato
 Year: 2001
 Comment: 
 Track: 8
 Genre: Anime
==========================================================================
Trying to force audio codec driver family mp3lib...
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

MPEG 1.0, Layer III, 44100 Hz 128 kbit Stereo, BPF: 417
Channels: 2, copyright: No, original: No, CRC: Yes, emphasis: 0
AUDIO: 44100 Hz, 2 ch, 16 bit (0x9), ratio: 16000->176400 (128.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
[libaf] Adding filter volume 
[libaf] Adding filter format 
[format] Changing sample format from little-endian 16-bit signed int to little-endian 32-bit float
[format] Accelerated little-endian 16-bit signed int to little-endian 32-bit float conversion
AF_pre: af format: 4 bps, 2 ch, 44100 hz, little-endian 32-bit float
AF_pre: 44100Hz 2ch little-endian 32-bit float
ao2: 44100 Hz  2 chans  floatle
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
OSS: Unknown/not supported internal format: floatle
audio_setup: sample format: s16le (requested: s16le)
audio_setup: using 2 channels (requested: 2)
audio_setup: using 44100 Hz samplerate (requested: 44100)
audio_setup: frags:  16/16  (4096 bytes/frag)  free:  65536
AO: [oss] 44100Hz 2ch little-endian 16-bit signed int (2 bps)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
[format] Changing sample format from little-endian 16-bit signed int to little-endian 32-bit float
[format] Accelerated little-endian 16-bit signed int to little-endian 32-bit float conversion
[libaf] Adding filter format 
[format] Changing sample format from little-endian 32-bit float to little-endian 16-bit signed int
[format] Accelerated little-endian 32-bit float to little-endian 16-bit signed int conversion
[format] Changing sample format from little-endian 16-bit signed int to little-endian 32-bit float
[format] Accelerated little-endian 16-bit signed int to little-endian 32-bit float conversion
[format] Changing sample format from little-endian 32-bit float to little-endian 16-bit signed int
[format] Accelerated little-endian 32-bit float to little-endian 16-bit signed int conversion
Video: no video
Freeing 0 unused video chunks.
Starting playback...
[libaf] Reallocating memory in module format, old len = 0, new len = 131076
[libaf] Reallocating memory in module format, old len = 0, new len = 65544
A:   0.0 (00.0) ??,?%                                                                                                                                           
A:   0.0 (00.0) ??,?%                                                                                                                                           
A:   0.0 (00.0) ??,?%                                                                                                                                           
A:   0.1 (00.0) ??,?%                                                                                                                                           
A:   0.1 (00.1) ??,?%                                                                                                                                           
A:   0.1 (00.1) ??,?%                                                                                                                                           
A:   0.2 (00.1)  5.8%                                                                                                                                           
A:   0.2 (00.1)  5.8%                                                                                                                                           
A:   0.2 (00.2)  5.8%                                                                                                                                           
A:   0.2 (00.2)  5.8%                                                                                                                                           
A:   0.3 (00.2)  5.8%                                                                                                                                           
A:   0.3 (00.2)  5.7%                                                                                                                                           
A:   0.3 (00.2)  5.7%                                                                                                                                           
A:   0.3 (00.3)  5.7%                                                                                                                                           
A:   0.3 (00.3)  5.7%                                                                                                                                           
A:   0.3 (00.3)  5.7%                                                                                                                                           
A:   0.4 (00.3)  5.7%                                                                                                                                           
A:   0.4 (00.4)  5.7%                                                                                                                                           
A:   0.4 (00.4)  5.8%                                                                                                                                           
A:   0.5 (00.4)  5.8%                                                                                                                                           
A:   0.5 (00.4)  5.7%                                                                                                                                           
A:   0.5 (00.5)  5.8%                                                                                                                                           
A:   0.5 (00.5)  5.8%                                                                                                                                           
A:   0.6 (00.5)  5.8%                                                                                                                                           
A:   0.6 (00.5)  5.8%                                                                                                                                           
A:   0.6 (00.5)  5.8%                                                                                                                                           
A:   0.6 (00.6)  5.8%                                                                                                                                           
A:   0.6 (00.6)  5.8%                                                                                                                                           
A:   0.7 (00.6)  5.8%                                                                                                                                           
A:   0.7 (00.6)  5.7%                                                                                                                                           
A:   0.7 (00.7)  5.7%                                                                                                                                           
A:   0.7 (00.7)  5.7%                                                                                                                                           
A:   0.7 (00.7)  5.7%                                                                                                                                           
A:   0.8 (00.7)  5.7%                                                                                                                                           
A:   0.8 (00.7)  5.7%                                                                                                                                           
A:   0.8 (00.8)  5.7%                                                                                                                                           
A:   0.8 (00.8)  5.7%                                                                                                                                           
A:   0.9 (00.8)  5.8%                                                                                                                                           
A:   0.9 (00.8)  5.7%                                                                                                                                           
A:   0.9 (00.9)  5.7%                                                                                                                                           
A:   0.9 (00.9)  5.7%                                                                                                                                           
A:   1.0 (00.9)  5.7%                                                                                                                                           
A:   1.0 (00.9)  5.7%                                                                                                                                           
A:   1.0 (01.0)  5.7%                                                                                                                                           
A:   1.0 (01.0)  5.7%                                                                                                                                           
A:   1.0 (01.0)  5.7%                                                                                                                                           
A:   1.1 (01.0)  5.8%                                                                                                                                           
A:   1.1 (01.0)  5.7%                                                                                                                                           
A:   1.1 (01.1)  5.7%                                                                                                                                           
A:   1.2 (01.1)  5.7%                                                                                                                                           
A:   1.2 (01.1)  5.7%                                                                                                                                           
A:   1.2 (01.2)  5.7%                                                                                                                                           
A:   1.2 (01.2)  5.7%                                                                                                                                           
A:   1.2 (01.2)  5.7%                                                                                                                                           
A:   1.3 (01.2)  5.7%                                                                                                                                           
EOF code: 1  

Uninit audio filters...
[libaf] Removing filter format 
[libaf] Removing filter volume 
[volume] The maximum volume was -7.99dB 
[libaf] Removing filter format 
uninit audio: mp3lib
vo: x11 uninit called but X11 not inited..

Exiting... (End of file)


More information about the MPlayer-dev-eng mailing list