[MPlayer-users] Audio buffer overflow on raw audio file
Mark Himsley
mark at mdsh.com
Wed Sep 19 10:06:30 CEST 2007
I've got an MXF file [1] that MPlayer won't play [2] so I split it into its
component parts with mxfsplit and I would like to play the parts.
The video stream split from the MXF is easy to play, its IMX 30, so MPlayer
can play that with no problems.
The audio is raw 24 bit, 48K stereo. I presumed that the following commend
would play the audio ok but I get choppy sound and buffer overflow warnings.
mplayer _0001-G16010102.Stream -demuxer rawaudio -rawaudio
channels=2:rate=48000:samplesize=3
I am running an MPlayer on Windows that I have compiled myself so it could
be something wrong with my build environment, and I am also an SVN build
from a month or two ago. Sadly I am at the Lib Dem conference in Brighton
and will only be back at my build environment for one day before I go to
the Labour conference in Bournmouth, so I hope I've done something stupid
rather than needing to rebuild MPlayer.
Here's the output:
>mplayer _0001-G16010102.Stream -v -demuxer rawaudio -rawaudio
channels=2:rate=48000:samplesize=3
MPlayer dev-SVN-r23156-3.4.2 (C) 2000-2007 MPlayer Team
CPU: Genuine Intel(R) CPU T2500 @ 2.00GHz (Family: 6, Model: 14,
Stepping: 8)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with runtime CPU detection.
get_path('codecs.conf') -> 'D:/bin/mplayer/mplayer/codecs.conf'
Reading D:/bin/mplayer/mplayer/codecs.conf: Can't open
'D:/bin/mplayer/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.
Configuration: --enable-runtime-cpudetection --codecsdir=codecs
--enable-menu --enable-static --with-extralibdir=/home/mdsh/live
--with-extraincdir=/home/mdsh/live
CommandLine: '_0001-G16010102.Stream' '-v' '-demuxer' 'rawaudio'
'-rawaudio' 'channels=2:rate=48000:samplesize=3'
c:/windows/fonts/arial.ttf doesn't look like a bitmap font description,
ignoring.
Cannot load bitmap font: c:/windows/fonts/arial.ttf
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Windows native timing
get_path('input.conf') -> 'D:/bin/mplayer/mplayer/input.conf'
Parsing input config file D:/bin/mplayer/mplayer/input.conf
Input config file D:/bin/mplayer/mplayer/input.conf parsed: 53 binds
get_path('_0001-G16010102.Stream.conf') ->
'D:/bin/mplayer/mplayer/_0001-G16010102.Stream.conf'
Playing _0001-G16010102.Stream.
get_path('sub/') -> 'D:/bin/mplayer/mplayer/sub/'
WINSOCK2 init: 0
[file] File size is 34571520 bytes
STREAM: [file] _0001-G16010102.Stream
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
rawaudio file format detected.
==> Found audio stream: 0
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer.
AUDIO: 48000 Hz, 2 ch, s24le, 2304.0 kbit/100.00% (ratio: 288000->288000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
Building audio filter chain for 48000Hz/2ch/s24le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/2ch/s24le
[dummy] Was reinitialized: 48000Hz/2ch/s24le
ao_dsound: Output Devices:
0 Primary Sound Driver <--
1 SigmaTel Audio
ao_dsound: DirectSound initialized
ao_dsound: Samplerate:48000Hz Channels:2 Format:s24le
ao_dsound: Buffersize:288000 bytes (1000 msec)
ao_dsound: primary buffer created
ao_dsound: DirectSound uninitialized
ao_dsound: cannot create secondary (stream)buffer (DSERR_CONTROLUNAVAIL)
ao_win32: Samplerate:48000Hz Channels:2 Format:s24le
ao_win32: Buffersize:288000
ao_win32: format not supported switching to default
AO: [win32] 44100Hz 2ch s16le (2 bytes per sample)
AO: Description: Windows waveOut audio output
AO: Author: Sascha Sommer <saschasommer at freenet.de>
Building audio filter chain for 48000Hz/2ch/s24le -> 44100Hz/2ch/s16le...
[dummy] Was reinitialized: 48000Hz/2ch/s24le
[libaf] Adding filter lavcresample
[libaf] Adding filter format
[format] Changing sample format from little-endian 24-bit signed int to
little-endian 16-bit signed int
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[format] Changing sample format from little-endian 24-bit signed int to
little-endian 16-bit signed int
[dummy] Was reinitialized: 44100Hz/2ch/s16le
Video: no video
Freeing 0 unused video chunks.
Starting playback...
[libaf] Reallocating memory in module format, old len = 0, new len = 13386
[libaf] Reallocating memory in module lavcresample, old len = 0, new len =
12296
4 bytes of audio data lost due to buffer overflow, len = 4
4 bytes of audio data lost due to buffer overflow, len = 12292
4 bytes of audio data lost due to buffer overflow, len = 4
4 bytes of audio data lost due to buffer overflow, len = 12292
4 bytes of audio data lost due to buffer overflow, len = 4
4 bytes of audio data lost due to buffer overflow, len = 12292
4 bytes of audio data lost due to buffer overflow, len = 4
4 bytes of audio data lost due to buffer overflow, len = 12292
4 bytes of audio data lost due to buffer overflow, len = 4
4 bytes of audio data lost due to buffer overflow, len = 4
4 bytes of audio data lost due to buffer overflow, len = 11268
4 bytes of audio data lost due to buffer overflow, len = 4
Uninit audio filters...
[libaf] Removing filter format
[libaf] Removing filter lavcresample
[libaf] Removing filter dummy
Uninit audio: pcm
WINSOCK2 uninit
waveOut device closed
buffer memory freed
Exiting... (Quit)
[1] the MXF is from some broadcast equipment, "360 Systems ImageServer
MAXX", a small Linux based 4 port video recorder/player with FTP access to
the media files.
[2] MPlayer suggests the MXF may be broken, although the mxflib tools seem
to suggest it is ok.
>mplayer -v "2 minute clip for Mark.mxf"
MPlayer dev-SVN-r23156-3.4.2 (C) 2000-2007 MPlayer Team
CPU: Genuine Intel(R) CPU T2500 @ 2.00GHz (Family: 6, Model: 14,
Stepping: 8)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with runtime CPU detection.
get_path('codecs.conf') -> 'D:/bin/mplayer/mplayer/codecs.conf'
Reading D:/bin/mplayer/mplayer/codecs.conf: Can't open
'D:/bin/mplayer/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.
Configuration: --enable-runtime-cpudetection --codecsdir=codecs
--enable-menu --enable-static --with-extralibdir=/home/mdsh/live
--with-extraincdir=/home/mdsh/live
CommandLine: '-v' '2 minute clip for Mark.mxf'
c:/windows/fonts/arial.ttf doesn't look like a bitmap font description,
ignoring.
Cannot load bitmap font: c:/windows/fonts/arial.ttf
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Windows native timing
get_path('input.conf') -> 'D:/bin/mplayer/mplayer/input.conf'
Parsing input config file D:/bin/mplayer/mplayer/input.conf
Input config file D:/bin/mplayer/mplayer/input.conf parsed: 53 binds
get_path('2 minute clip for Mark.mxf.conf') -> 'D:/bin/mplayer/mplayer/2
minute clip for Mark.mxf.conf'
Playing 2 minute clip for Mark.mxf.
get_path('sub/') -> 'D:/bin/mplayer/mplayer/sub/'
WINSOCK2 init: 0
[file] File size is 426348166 bytes
STREAM: [file] 2 minute clip for Mark.mxf
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 2 minute clip for Mark.mxf ext: .mxf
LAVF_check: MXF format
libavformat file format detected.
[mxf @ 00BD89E8]material track 1: no corresponding source package found
[mxf @ 00BD89E8]material track 2: no corresponding source package found
[mxf @ 00BD89E8]material track 3: no corresponding source package found
LAVF: 0 audio and 0 video streams found
LAVF: build 3345409
LAVF: no audio or video headers found - broken file?
Checking for Nullsoft Streaming Video
Checking for MOV
Checking for VIVO
header block 1 size: 14
AVS: avs_check_file - attempting to open file 2 minute clip for Mark.mxf
AVS: File is too big, aborting...
Checking for PVA
Checking for MPEG-TS...
TRIED UP TO POSITION 71106, FOUND 47, packet_size= 0, SEEMS A TS? 0
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=1550 size=33882361
LMLM4 Stream Format not found
sync_mpeg_ps: seems to be ES/PES stream...
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
MPEG packet stats: p100: 61 p101: 51 p1B6: 0 p12x: 250 sli: 0 a: 50 b: 50
c: 0 idr: 0 sps: 0 pps: 2 PES: 0 MP3: 13697, synced: 0
sync_mpeg_ps: seems to be ES/PES stream...
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
MPEG packet stats: p100: 60 p101: 51 p1B6: 0 p12x: 250 sli: 0 a: 50 b: 50
c: 0 idr: 0 sps: 0 pps: 2 PES: 0 MP3: 13697, synced: 0
==> Found video stream: 0
ds_fill_buffer: EOF reached (stream: video)
LAVF_check: MXF format
libavformat file format detected.
[mxf @ 00BD89E8]material track 1: no corresponding source package found
[mxf @ 00BD89E8]material track 2: no corresponding source package found
[mxf @ 00BD89E8]material track 3: no corresponding source package found
LAVF: 0 audio and 0 video streams found
LAVF: build 3345409
LAVF: no audio or video headers found - broken file?
demux_aac_probe, failed to detect an AAC stream
WINSOCK2 uninit
Exiting... (End of file)
--
Mark Himsley
More information about the MPlayer-users
mailing list