[MPlayer-users] Must resample=48000 to play sound properly on Kubuntu 7.04 (Feisty)
John Brown
johnbrown105 at hotmail.com
Fri Mar 23 20:41:05 CET 2007
Hello all,
I am using svn 22783. I am fairly sure that the problem started when I
upgraded from Edgy to Feisty Herd 5, but I do not have an easy way to prove
it. The sound is not clear, like a radio that is not tuned exactly to the
correct frequency. If I -af resample=48000, it plays correctly. It is not an
mplayer problem as such because xine is also affected (then again, maybe
xine uses libavcodec?). Kaffeine plays the video with no sound. Still, I
would like to understand what is going on.
I experience the problem with files containing Windows Media Audio and Real
Audio. A Quicktime file (mp4a) and and AVI (MP3) played correctly without
resampling. The problem files had 44100 KHz sound, while the good files had
48000 KHz audio.
mplayer -identify -ao null -vo null /cdrom/Videos/test.wmv says:
/***************************************************************/
Playing /cdrom/Videos/test.wmv.
ASF file format detected.
ID_AUDIO_ID=1
ID_VIDEO_ID=2
VIDEO: [WMV3] 320x240 24bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=/cdrom/Videos/test.wmv
ID_DEMUXER=asf
ID_VIDEO_FORMAT=WMV3
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=320
ID_VIDEO_HEIGHT=240
ID_VIDEO_FPS=29.970
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=353
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_LENGTH=253.00
=============================================
mplayer -v /cdrom/Videos/test.wmv output:
/*******************************************/
stream type: guid_audio_stream
stream concealment: guid_audio_conceal_interleave
type: 28 bytes, stream: 8 bytes ID: 1
unk1: 0 unk2: 13C99C
FILEPOS=0x13B1
==> Found audio stream: 1
======= WAVE Format =======
Format Tag: 353 (0x161)
Channels: 2
Samplerate: 44100
avg byte/sec: 8005
Block align: 1487
bits/sample: 16
cbSize: 10
Unknown extra header dump: [0] [88] [0] [0] [f] [0] [79] [2e] [0] [0]
============================================
ASF: audio scrambling: 1 x 1 x 1487
/* Hopefully irrelevant stuff cut out here */
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
dec_audio: Allocating 192000 + 65536 = 257536 bytes for output buffer.
FFmpeg's libavcodec audio codec
INFO: libavcodec init OK!
AUDIO: 44100 Hz, 2 ch, s16le, 64.0 kbit/4.54% (ratio: 8005->176400)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
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
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: 8/8 (4096 bytes/frag) free: 32768
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
Starting playback...
mplayer -v -af resample=48000 /cdrom/Videos/test.wmv output
/*****************************************************************/
stream type: guid_audio_stream
stream concealment: guid_audio_conceal_interleave
type: 28 bytes, stream: 8 bytes ID: 1
unk1: 0 unk2: 13C99C
FILEPOS=0x13B1
==> Found audio stream: 1
======= WAVE Format =======
Format Tag: 353 (0x161)
Channels: 2
Samplerate: 44100
avg byte/sec: 8005
Block align: 1487
bits/sample: 16
cbSize: 10
Unknown extra header dump: [0] [88] [0] [0] [f] [0] [79] [2e] [0] [0]
===========================================
/* Hopefully irrelevant stuff cut out here */
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
dec_audio: Allocating 192000 + 65536 = 257536 bytes for output buffer.
FFmpeg's libavcodec audio codec
INFO: libavcodec init OK!
AUDIO: 44100 Hz, 2 ch, s16le, 64.0 kbit/4.54% (ratio: 8005->176400)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter resample
[resample] Changing sample rate to 48000Hz
[resample] Using integer processing and inexact frequecy conversion.
[resample] New filter designed up: 160 down: 147
[resample] Using integer processing and inexact frequecy conversion.
ao2: 48000 Hz 2 chans s16le
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audio_setup: sample format: s16le (requested: s16le)
audio_setup: using 2 channels (requested: 2)
audio_setup: using 48000 Hz samplerate (requested: 48000)
audio_setup: frags: 16/16 (4096 bytes/frag) free: 65536
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 44100Hz/2ch/s16le -> 48000Hz/2ch/s16le...
[resample] Using integer processing and inexact frequecy conversion.
[resample] Using integer processing and inexact frequecy conversion.
Starting playback...
[libaf] Reallocating memory in module resample, old len = 0, new len = 65536
_________________________________________________________________
Interest Rates near 39yr lows! $430,000 Mortgage for $1,399/mo - Calculate
new payment
http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9632-18466&moid=7581
More information about the MPlayer-users
mailing list