[MPlayer-users] [BUGREPORT] looping on Mac OSX using -ao macosx does not work
Dave Chand
devchan1 at bellsouth.net
Thu Nov 25 15:31:24 CET 2004
when running mplayer with the following command line options, mplayer
encounters a buffer underrun.
mplayer -loop 2 -ao macosx -v "some_song.mp3"
Here is the verbose mplayer output; (and below that is the gdb
backtrace)
Using GNU internationalization
Original domain: messages
Original dirname: /sw/share/locale
Current domain: mplayer
Current dirname: /sw/share/locale
MPlayer dev-CVS-041125-09:02-3.3 (C) 2000-2004 MPlayer Team
AltiVec found
CPU: PowerPC
73 audio & 178 video codecs
CommandLine: '/Users/dave/Download/music_omicron_space.mp3'
init_freetype
get_path('font/font.desc') -> '/Users/dave/.mplayer/font/font.desc'
Font /Users/dave/.mplayer/font/font.desc loaded successfully! (206
chars)
Using Unoptimized OnScreenDisplay
Using Darwin accurate timing
get_path('input.conf') -> '/Users/dave/.mplayer/input.conf'
Can't open input config file /Users/dave/.mplayer/input.conf: No such
file or directory
Can't open input config file /sw/etc/mplayer/input.conf: No such file
or directory
Falling back on default (hardcoded) input config
get_path('music_omicron_space.mp3.conf') ->
'/Users/dave/.mplayer/music_omicron_space.mp3.conf'
Playing /Users/dave/Download/music_omicron_space.mp3.
[file] File size is 1133535 bytes
STREAM: [file] /Users/dave/Download/music_omicron_space.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
/Users/dave/Download/music_omicron_space.mp3 ext: .mp3
Trying demuxer 17 based on filename extension
==> Found audio stream: 0
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 22050
avg byte/sec: 10000
Block align: 4
bits/sample: 0
cbSize: 12
mp3.wID=256
mp3.fdwFlags=0x2000000
mp3.nBlockSize=256
mp3.nFramesPerBlock=256
mp3.nCodecDelay=28933
===========================
demux_audio: audio data 0x52 - 0x114BDF
Audio file detected.
========================================================================
==
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
dec_audio: Allocating 131072 + 65536 = 196608 bytes for output buffer.
FFmpeg's libavcodec audio codec
INFO: libavcodec init OK!
AUDIO: 22050 Hz, 2 ch, 16 bit (0x20), ratio: 10000->88200 (80.0 kbit)
Selected audio codec: [ffmp3] afm:ffmpeg (FFmpeg MPEG layer-3 audio
decoder)
========================================================================
==
Checking audio filter chain for 22050Hz/2ch/16bit ->
22050Hz/2ch/16bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=22050Hz, nch = 2, format = 0x00000000
and bps = 2
AF_pre: af format: 2 bps, 2 ch, 22050 hz, big endian signed int
AF_pre: 22050Hz 2ch Signed 16-bit (Big-Endian)
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
AO: [macosx] hardware format...
AO: [macosx] 44100.000000 mSampleRate
AO: [macosx] lpcm mFormatID
AO: [macosx] 8 mBytesPerPacket
AO: [macosx] 1 mFramesPerPacket
AO: [macosx] 8 mBytesPerFrame
AO: [macosx] 2 mChannelsPerFrame
AO: [macosx] 4096 ao->buffer_len
AO: [macosx] 44100Hz 2ch Floating Point (4 bps)
AO: Description: Darwin/Mac OS X native audio output
AO: Author: Timothy J. Wood & Dan Christiansen
Building audio filter chain for 22050Hz/2ch/16bit ->
44100Hz/2ch/32bit...
[dummy] Was reinitialized, rate=22050Hz, nch = 2, format = 0x00000000
and bps = 2
[libaf] Adding filter resample
[resample] Changing sample rate to 44100Hz
[resample] Using integer processing and inexact frequecy conversion.
[resample] New filter designed up: 2 down: 1
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000000
and bps = 2
[libaf] Adding filter format
[format] Changing sample format from 16bit big endian signed int to
32bit big endian float
[resample] Using integer processing and inexact frequecy conversion.
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000000
and bps = 2
[format] Changing sample format from 16bit big endian signed int to
32bit big endian float
Video: no video
Freeing 0 unused video chunks.
Starting playback...
[libaf] Reallocating memory in module resample, old len = 0, new len =
8196
[libaf] Reallocating memory in module format, old len = 0, new len =
16388
AO: [macosx] Buffer underrun
AO: [macosx] Buffer underrun
AO: [macosx] Buffer underrun
ds_fill_buffer: EOF reached (stream: audio)
loop_times = 1, eof = 1%
AO: [macosx] Buffer underrun
AO: [macosx] Buffer underrun
AO: [macosx] Buffer underrun
AO: [macosx] Buffer underrun
AO: [macosx] Buffer underrun
AO: [macosx] Buffer underrun
Here is the gdb backtrace:
(gdb) bt
#0 0x90012588 in clock_sleep_trap ()
#1 0x9000d758 in nanosleep ()
#2 0x90012288 in usleep ()
#3 0x00007b68 in SDL_main (argc=3930236, argv=0x31f708) at
mplayer.c:2236
#4 0x002cde84 in -[SDLMain applicationDidFinishLaunching:].129 ()
#5 0x909f7184 in _nsnote_callback ()
#6 0x901aa5c8 in __CFXNotificationPost ()
#7 0x901aefd8 in _CFXNotificationPostNotification ()
#8 0x909f4fd0 in -[NSNotificationCenter
postNotificationName:object:userInfo:] ()
#9 0x92ee30c4 in -[NSApplication _postDidFinishNotification] ()
#10 0x92ee2fb0 in -[NSApplication _sendFinishLaunchingNotification] ()
#11 0x92ee31e0 in -[NSApplication(NSAppleEventHandling)
_handleCoreEvent:withReplyEvent:] ()
#12 0x90a4a544 in -[NSAppleEventManager
dispatchRawAppleEvent:withRawReply:handlerRefCon:] ()
#13 0x90a50c6c in _NSAppleEventManagerGenericHandler ()
#14 0x91674a10 in aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned
long, unsigned char*) ()
#15 0x91677858 in dispatchEventAndSendReply(AEDesc const*, AEDesc*) ()
#16 0x91674c50 in aeProcessAppleEvent ()
#17 0x928c4360 in AEProcessAppleEvent ()
#18 0x92dd2454 in _DPSNextEvent ()
#19 0x92de8c24 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#20 0x92dfcf8c in -[NSApplication run] ()
#21 0x002ce3e0 in main ()
#22 0x00002fa8 in _start (argc=30591632, argv=0x1d2cd30, envp=0x496044)
at /SourceCache/Csu/Csu-47/crt.c:267
#23 0x8fe1a558 in __dyld__dyld_start ()
Dave
More information about the MPlayer-users
mailing list