[MPlayer-users] [AO_ALSA] Unable to set buffer time near: Invalid argument

Robert Henney robh at rut.org
Sun Dec 20 15:55:28 CET 2009


the latest svn appears to have an alsa issue when playing more than one
file on some particular files I have.  it's reproducible too.

the audio will consistently fail to initialize for the second video file,
though if the files are reversed or played separately or -ao oss is used
then the problem does not occur.

mplayer -ao alsa "[SpoonSubs]_Sketchbook_full_color's_02_[E80DF436].mkv" \
                 "[SpoonSubs]_Sketchbook_full_color's_03_[FFE2F973].mkv"

results in:
  Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
  [AO_ALSA] Unable to set buffer time near: Invalid argument
  Failed to initialize audio driver 'alsa'

the sample files are in http://rut.org/sketch/
-------------- next part --------------
MPlayer SVN-r30077-4.3.2 (C) 2000-2009 MPlayer Team
CPU vendor name: AuthenticAMD  max cpuid level: 1
CPU: AMD Athlon(tm) 64 Processor 4000+ (Family: 15, Model: 7, Stepping: 10)
extended cpuid-level: 24
extended cache-info: 67141952
Detected cache-line size is 64 bytes
Testing OS support for SSE... yes.
Tests of OS support for SSE passed.
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNowExt: 1 SSE: 1 SSE2: 1 SSSE3: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowExt SSE SSE2 CMOV
get_path('codecs.conf') -> '/home/robh/.mplayer/codecs.conf'
Reading /home/robh/.mplayer/codecs.conf: Can't open '/home/robh/.mplayer/codecs.conf': No such file or directory
Reading /home/robh/local/etc/mplayer/codecs.conf: Can't open '/home/robh/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration: --prefix=/home/robh/local --enable-dvb
CommandLine: '-frames' '1' '-v' '-quiet' '-noconfig' 'all' '-ao' 'alsa' '[SpoonSubs]_Sketchbook_full_color's_02_[E80DF436].mkv' '[SpoonSubs]_Sketchbook_full_color's_03_[FFE2F973].mkv'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/robh/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/robh/.mplayer/input.conf'
Can't open input config file /home/robh/.mplayer/input.conf: No such file or directory
Can't open input config file /home/robh/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
get_path('[SpoonSubs]_Sketchbook_full_color's_02_[E80DF436].mkv.conf') -> '/home/robh/.mplayer/[SpoonSubs]_Sketchbook_full_color's_02_[E80DF436].mkv.conf'

Playing [SpoonSubs]_Sketchbook_full_color's_02_[E80DF436].mkv.
get_path('sub/') -> '/home/robh/.mplayer/sub/'
[file] File size is 146615756 bytes
STREAM: [file] [SpoonSubs]_Sketchbook_full_color's_02_[E80DF436].mkv
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: Matroska file format
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for REAL
Checking for SMJPEG
[mkv] Found the head...
[mkv] + a segment...
[mkv] /---- [ parsing seek head ] ---------
[mkv] /---- [ parsing seek head ] ---------
[mkv] \---- [ parsing seek head ] ---------
[mkv] /---- [ parsing cues ] -----------
[mkv] \---- [ parsing cues ] -----------
[mkv] \---- [ parsing seek head ] ---------
[mkv] |+ segment information...
[mkv] | + timecode scale: 1000000
[mkv] | + duration: 1484.970s
[mkv] |+ segment tracks...
[mkv] | + a track...
[mkv] |  + Track number: 1
[mkv] |  + Track type: Video
[mkv] |  + Default flag: 1
[mkv] |  + Codec ID: V_MPEG4/ISO/AVC
[mkv] |  + CodecPrivate, length 40
[mkv] |  + Default duration: 41.708ms ( = 23.976 fps)
[mkv] |  + Language: jpn
[mkv] |  + Video track
[mkv] |   + Pixel width: 704
[mkv] |   + Pixel height: 400
[mkv] |   + Display width: 44
[mkv] |   + Display height: 25
[mkv] | + a track...
[mkv] |  + Track number: 2
[mkv] |  + Track type: Audio
[mkv] |  + Default flag: 1
[mkv] |  + Codec ID: A_AAC
[mkv] |  + CodecPrivate, length 5
[mkv] |  + Default duration: 21.333ms ( = 46.875 fps)
[mkv] |  + Language: jpn
[mkv] |  + Audio track
[mkv] |   + Sampling frequency: 48000.000000
[mkv] |   + Channels: 2
[mkv] | + a track...
[mkv] |  + Track number: 3
[mkv] |  + Track type: Subtitle
[mkv] |  + Default flag: 1
[mkv] |  + Codec ID: S_TEXT/ASS
[mkv] |  + CodecPrivate, length 4659
[mkv] |  + Language: eng
[mkv] |  + Name: Karaoke
[mkv] | + a track...
[mkv] |  + Track number: 4
[mkv] |  + Track type: Subtitle
[mkv] |  + Default flag: 0
[mkv] |  + Codec ID: S_TEXT/ASS
[mkv] |  + CodecPrivate, length 4295
[mkv] |  + Language: eng
[mkv] |  + Name: No Karaoke
[mkv] /---- [ parsing attachments ] ---------
[mkv] | + an attachment...
[mkv] |  + FileName: chinacat.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 72460
[mkv] Attachment: chinacat.ttf, application/x-truetype-font, 72460 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: gemelli.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 53968
[mkv] Attachment: gemelli.ttf, application/x-truetype-font, 53968 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: inkydinky.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 30604
[mkv] Attachment: inkydinky.ttf, application/x-truetype-font, 30604 bytes
[mkv] \---- [ parsing attachments ] ---------
[mkv] |+ found cluster, headers are parsed completely :)
==> Found video stream: 1
[mkv] Aspect: 1.760000
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
==> Found audio stream: 2
[mkv] Track ID 2: audio (A_AAC), -aid 0, -alang jpn
[mkv] Track ID 3: subtitles (S_TEXT/ASS) "Karaoke", -sid 0, -slang eng
[mkv] Track ID 4: subtitles (S_TEXT/ASS) "No Karaoke", -sid 1, -slang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  704x400  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:31  fourcc:0x31637661  size:704x400  fps:23.976  ftime:=0.0417
get_path('sub/') -> '/home/robh/.mplayer/sub/'
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1152x864 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Unknown wm type...
[x11] Current fstype setting doesn't honour any X atoms
Disabling DPMS
DPMSDisable stat: 1
[VO_XV] Using Xv Adapter #0 (NV17 Video Texture)
[xv common] Drawing no colorkey.
[xv common] Maximum source image dimensions: 2046x2046
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Unsupported PixelFormat -1
INFO: libavcodec init OK!
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
dec_audio: Allocating 6144 bytes for input buffer.
dec_audio: Allocating 65536 + 65536 = 131072 bytes for output buffer.
FAAD: Decoder init done (0Bytes)!
FAAD: Negotiated samplerate: 48000Hz  channels: 2
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy 
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Trying preferred audio driver 'alsa', options '[none]'
alsa-init: requested format: 48000 Hz, 2 channels, 9
alsa-init: using ALSA 1.0.16
alsa-init: setup for 1/2 channel(s)
alsa-init: using device default
alsa-init: pcm opened in blocking mode
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 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Starting playback...
Increasing filtered audio buffer size from 0 to 65536
[h264 @ 0x88e7860]no picture
[h264 @ 0x88e7860]no picture
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 704 x 400 (preferred colorspace: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.76:1 - prescaling to correct movie aspect.
VO Config (704x400->704x400,flags=0,'MPlayer',0x32315659)
VO: [xv] 704x400 => 704x400 Planar YV12 
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 226 for hw scaling
*** [vo] Exporting mp_image_t, 704x400x12bpp YUV planar, 422400 bytes
Unicode font: 4929 glyphs.
Unicode font: 4929 glyphs.
EOF code: 1  

Uninit audio filters...
[libaf] Removing filter dummy 
Uninit audio: faad
FAAD: Closing decoder!
Uninit video: ffmpeg
Successfully enabled DPMS
alsa-uninit: pcm closed
get_path('[SpoonSubs]_Sketchbook_full_color's_03_[FFE2F973].mkv.conf') -> '/home/robh/.mplayer/[SpoonSubs]_Sketchbook_full_color's_03_[FFE2F973].mkv.conf'

Playing [SpoonSubs]_Sketchbook_full_color's_03_[FFE2F973].mkv.
get_path('sub/') -> '/home/robh/.mplayer/sub/'
[file] File size is 146806362 bytes
STREAM: [file] [SpoonSubs]_Sketchbook_full_color's_03_[FFE2F973].mkv
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: Matroska file format
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for REAL
Checking for SMJPEG
[mkv] Found the head...
[mkv] + a segment...
[mkv] /---- [ parsing seek head ] ---------
[mkv] /---- [ parsing seek head ] ---------
[mkv] \---- [ parsing seek head ] ---------
[mkv] /---- [ parsing cues ] -----------
[mkv] \---- [ parsing cues ] -----------
[mkv] \---- [ parsing seek head ] ---------
[mkv] |+ segment information...
[mkv] | + timecode scale: 1000000
[mkv] | + duration: 1484.962s
[mkv] |+ segment tracks...
[mkv] | + a track...
[mkv] |  + Track number: 1
[mkv] |  + Track type: Video
[mkv] |  + Default flag: 1
[mkv] |  + Codec ID: V_MPEG4/ISO/AVC
[mkv] |  + CodecPrivate, length 40
[mkv] |  + Default duration: 41.708ms ( = 23.976 fps)
[mkv] |  + Language: jpn
[mkv] |  + Video track
[mkv] |   + Pixel width: 704
[mkv] |   + Pixel height: 400
[mkv] |   + Display width: 44
[mkv] |   + Display height: 25
[mkv] | + a track...
[mkv] |  + Track number: 2
[mkv] |  + Track type: Audio
[mkv] |  + Default flag: 1
[mkv] |  + Codec ID: A_AAC
[mkv] |  + CodecPrivate, length 2
[mkv] |  + Default duration: 23.220ms ( = 43.066 fps)
[mkv] |  + Language: jpn
[mkv] |  + Audio track
[mkv] |   + Sampling frequency: 44100.000000
[mkv] |   + Channels: 2
[mkv] | + a track...
[mkv] |  + Track number: 3
[mkv] |  + Track type: Subtitle
[mkv] |  + Default flag: 1
[mkv] |  + Codec ID: S_TEXT/ASS
[mkv] |  + CodecPrivate, length 4701
[mkv] |  + Language: eng
[mkv] |  + Name: Karaoke
[mkv] | + a track...
[mkv] |  + Track number: 4
[mkv] |  + Track type: Subtitle
[mkv] |  + Default flag: 0
[mkv] |  + Codec ID: S_TEXT/ASS
[mkv] |  + CodecPrivate, length 4295
[mkv] |  + Language: eng
[mkv] |  + Name: No Karaoke
[mkv] /---- [ parsing attachments ] ---------
[mkv] | + an attachment...
[mkv] |  + FileName: chinacat.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 72460
[mkv] Attachment: chinacat.ttf, application/x-truetype-font, 72460 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: gemelli.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 53968
[mkv] Attachment: gemelli.ttf, application/x-truetype-font, 53968 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: inkydinky.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 30604
[mkv] Attachment: inkydinky.ttf, application/x-truetype-font, 30604 bytes
[mkv] \---- [ parsing attachments ] ---------
[mkv] |+ found cluster, headers are parsed completely :)
==> Found video stream: 1
[mkv] Aspect: 1.760000
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
==> Found audio stream: 2
[mkv] Track ID 2: audio (A_AAC), -aid 0, -alang jpn
[mkv] Track ID 3: subtitles (S_TEXT/ASS) "Karaoke", -sid 0, -slang eng
[mkv] Track ID 4: subtitles (S_TEXT/ASS) "No Karaoke", -sid 1, -slang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  704x400  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:31  fourcc:0x31637661  size:704x400  fps:23.976  ftime:=0.0417
get_path('sub/') -> '/home/robh/.mplayer/sub/'
Disabling DPMS
DPMSDisable stat: 1
[VO_XV] Using Xv Adapter #0 (NV17 Video Texture)
[xv common] Drawing no colorkey.
[xv common] Maximum source image dimensions: 2046x2046
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Unsupported PixelFormat -1
INFO: libavcodec init OK!
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
dec_audio: Allocating 6144 bytes for input buffer.
dec_audio: Allocating 65536 + 65536 = 131072 bytes for output buffer.
FAAD: Decoder init done (0Bytes)!
FAAD: Negotiated samplerate: 44100Hz  channels: 2
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
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
Trying preferred audio driver 'alsa', options '[none]'
alsa-init: requested format: 44100 Hz, 2 channels, 9
alsa-init: using ALSA 1.0.16
alsa-init: setup for 1/2 channel(s)
alsa-init: using device default
alsa-init: pcm opened in blocking mode
[AO_ALSA] Unable to set buffer time near: Invalid argument
Failed to initialize audio driver 'alsa'
Could not open/initialize audio device -> no sound.
Uninit audio filters...
[libaf] Removing filter dummy 
Uninit audio: faad
FAAD: Closing decoder!
Audio: no sound
Freeing 0 unused audio chunks.
Starting playback...
[h264 @ 0x88e7860]no picture
[h264 @ 0x88e7860]no picture
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 704 x 400 (preferred colorspace: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.76:1 - prescaling to correct movie aspect.
VO Config (704x400->704x400,flags=0,'MPlayer',0x32315659)
VO: [xv] 704x400 => 704x400 Planar YV12 
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 226 for hw scaling
*** [vo] Exporting mp_image_t, 704x400x12bpp YUV planar, 422400 bytes
Unicode font: 4929 glyphs.
Unicode font: 4929 glyphs.
EOF code: 1  

Uninit video: ffmpeg
Successfully enabled DPMS
vo: uninit ...

Exiting... (End of file)


More information about the MPlayer-users mailing list