Bug#629158: mplayer: cdda playback pauses every 15 seconds due to buffering

2011-06-04 Thread Reimar Döffinger
On Sat, Jun 04, 2011 at 11:43:56AM +0800, Michael Deegan wrote:
> Playback of CDs is currently unusable as mplayer reads 15 seconds of audio
> at a time, which seems to be long enough for the disk to spin down by the
> time it wants to read the next chunk. This results in a 5 second pause
> every 15 seconds during playback.

Your analysis is incomplete, MPlayer does request chunks of about 176 kB
about once per second.
But then libcdparanoia comes with its absolutely stupid caching strategy
and ends up grouping it into huge bunches of requests once every 15
seconds.
Not sure which to recommend, but possible solutions are:
1) linking against libcdio which does not have the issue
2) fixing libcdparanoia to be behave better
3) using a large -cache to compensate for it
4) limit libcdparanoia's caching so it can't break things quite as badly

I think I'd recommend you to go with 3) as a workaround and Debian to go
with 1) (just using --disable-cdparanoia should pick up
libcdio if libcdio-paranoia-dev is installed) and I've
implemented 4) in MPlayer SVN (r33557, only tested against my CD drive,
might not work as well with others).
Disadvantage with 4) is that it probably decreases ripping performance,
but I don't think many use MPlayer for that.



___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers


Bug#629158: mplayer: cdda playback pauses every 15 seconds due to buffering

2011-06-03 Thread Michael Deegan
Package: mplayer
Version: 2:1.0~rc4.dfsg1-2
Severity: normal

Playback of CDs is currently unusable as mplayer reads 15 seconds of audio
at a time, which seems to be long enough for the disk to spin down by the
time it wants to read the next chunk. This results in a 5 second pause
every 15 seconds during playback.

Also occurs in marillat's squeeze version.

-- System Information:
Debian Release: 6.0.1
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'stable'), (490, 'testing'), (470, 
'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages mplayer depends on:
ii  libaa11.4p5-38   ascii art library
ii  libasound21.0.23-2.1 shared library for ALSA applicatio
ii  libaudio2 1.9.2-4Network Audio System - shared libr
ii  libavcodec52  4:0.6.2-3  Libav codec library
ii  libavformat52 4:0.6.2-3  Libav file format library
ii  libavutil50   4:0.6.2-3  Libav utility library
ii  libc6 2.11.2-10  Embedded GNU C Library: Shared lib
ii  libcaca0  0.99.beta17-1  colour ASCII art library
ii  libcdparanoia03.10.2+debian-9audio extraction tool for sampling
ii  libdca0   0.0.5-3decoding library for DTS Coherent 
ii  libdirectfb-1.2-9 1.2.10.0-4 direct frame buffer graphics - sha
ii  libdvdnav44.1.3-7DVD navigation library
ii  libdvdread4   4.1.3-10   library for reading DVDs
ii  libenca0  1.13-3 Extremely Naive Charset Analyser -
ii  libesd0   0.2.41-8   Enlightened Sound Daemon - Shared 
ii  libfontconfig12.8.0-2.1  generic font configuration library
ii  libfreetype6  2.4.2-2.1  FreeType 2 font engine, shared lib
ii  libfribidi0   0.19.2-1   Free Implementation of the Unicode
ii  libgcc1   1:4.4.5-8  GCC support library
ii  libgif4   4.1.6-9library for GIF images (library)
ii  libgl1-mesa-glx [ 7.7.1-4A free implementation of the OpenG
ii  libjack0 [libjack 1:0.118+svn3796-7  JACK Audio Connection Kit (librari
ii  libjpeg62 6b1-1  The Independent JPEG Group's JPEG 
ii  liblircclient00.8.3-5infra-red remote control support -
ii  liblzo2-2 2.03-2 data compression library
ii  libncurses5   5.7+20100313-5 shared libraries for terminal hand
ii  libogg0   1.2.0~dfsg-1   Ogg bitstream library
ii  libopenal11:1.12.854-2   Software implementation of the Ope
ii  libpng12-01.2.44-1   PNG library - runtime
ii  libpostproc51 4:0.6.2-3  Libav video postprocessing library
ii  libpulse0 0.9.21-3+squeeze1  PulseAudio client libraries
ii  libsdl1.2debian   1.2.14-6.1 Simple DirectMedia Layer
ii  libsmbclient  2:3.5.6~dfsg-3squeeze2 shared library for communication w
ii  libspeex1 1.2~rc1-1  The Speex codec runtime library
ii  libstdc++64.6.0-2The GNU Standard C++ Library v3
ii  libsvga1  1:1.4.3-29 console SVGA display libraries
ii  libswscale0   4:0.6.2-3  Libav video scaling library
ii  libtheora01.1.1+dfsg.1-3 The Theora Video Compression Codec
ii  libvdpau1 0.4.1-2Video Decode and Presentation API 
ii  libx11-6  2:1.3.3-4  X11 client-side library
ii  libxext6  2:1.1.2-1  X11 miscellaneous extension librar
ii  libxinerama1  2:1.1-3X11 Xinerama extension library
ii  libxt61:1.0.7-1  X11 toolkit intrinsics library
ii  libxv12:1.0.5-1  X11 Video extension library
ii  libxvmc1  2:1.0.5-1  X11 Video extension library
ii  libxxf86dga1  2:1.1.1-2  X11 Direct Graphics Access extensi
ii  libxxf86vm1   1:1.1.0-2  X11 XFree86 video mode extension l
ii  zlib1g1:1.2.3.4.dfsg-3   compression library - runtime

mplayer recommends no packages.

Versions of packages mplayer suggests:
ii  bzip2 1.0.5-6high-quality block-sorting file co
ii  fontconfig2.8.0-2.1  generic font configuration library
ii  fping 2.4b2-to-ipv6-16.1 sends ICMP ECHO_REQUEST packets to
ii  mplayer-doc   2:1.0~rc3++svn20100804-0.2 Documentation for mplayer
ii  ttf-freefont  20090104-7 Freefont Serif, Sans and Mono True

-- debconf information:
  mplayer/voutput: autodetect
  mplayer/ttfont: ${ttfontdefault}
  mplayer/cfgnote:
  mplayer/replace-existing-files-bail:
  mplayer/replace-existing-f