[MPlayer-users] Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Erik Auerswald
auerswal at unix-ag.uni-kl.de
Fri Oct 24 09:37:19 CEST 2014
Hi,
On Thu, Oct 23, 2014 at 10:57:21PM +0200, Reimar Döffinger wrote:
> On Thu, Oct 23, 2014 at 01:52:21PM +0100, Andy Furniss wrote:
> > Erik Auerswald wrote:
> > >On Thu, Oct 23, 2014 at 12:48:15PM +0100, Jim Cross wrote:
> > >>I have quite a few example audio streams that I can not get to play using
> > >>MPlayer, although the streams work in chrome's browser.
> > >>
> > >>As one example, I have tried the below 'playlist' file (or it's contents)
> > >>but get the further below (typical) output.
> > >>I have tried many options with and without -cache sizes together
> > >>with/without many -cache-min values.
> > >>
> > >>Could this be a bug (in the current version I'm using?) or is there another
> > >>option that can be applied to get the stream to start playing?:
> > >>
> > >>http://dir.xiph.org/listen/1467960/listen.m3u
> > >>http://ai-radio.org:8000/radio.opus
> > >
> > >I get the error message:
> > >
> > > Ogg stream 0 is of an unknown type
> >
> > Me too, but if I save the stream with wget, mplayer will play the file OK
> > (and display a logo).
>
> That seems suspicious. I think this might be due to us using different
> default demuxers for Ogg, since the FFmpeg one (used to/does?) work
> rather badly for streaming.
> An explicit -demuxer lavf works.
> Assuming your FFmpeg version that MPlayer uses is new enough.
Using -demuxer lavf works for me with the current MPlayer:
$ ~/Software/mplayer/mplayer -demuxer lavf -playlist http://dir.xiph.org/listen/1467960/listen.m3u
With the older MPlayer from Ubuntu 14.04 and -demuxer lavf I get a short
burst of noise, followed by silence and "Cache empty" messages:
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
For full output see below.
Jim, you can consider opening a bug report with Debian (or Raspbian?) for
this issue, but I would not expect a timely resolution. I am using
self-built MPlayer since forever, because the versions available as
distribution packages were always outdated and very often broken.
Thanks,
Erik
---8<--- full output for working current MPlayer --->8---
$ ~/Software/mplayer/mplayer -demuxer lavf -playlist http://dir.xiph.org/listen/1467960/listen.m3u
Resolving dir.xiph.org for AF_INET6...
Couldn't resolve name for AF_INET6: dir.xiph.org
Resolving dir.xiph.org for AF_INET...
Connecting to server dir.xiph.org[140.211.15.194]: 80...
Cache size set to 320 KBytes
MPlayer SVN-r37293-4.8 (C) 2000-2014 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing http://ai-radio.org:8000/radio.opus.
Resolving ai-radio.org for AF_INET6...
Connecting to server ai-radio.org[2a00:1630:2:1004::1]: 8000...
Name : OPUS 64KB airadio - video game music & many other more... ai-radio.org
Genre : VideoGame DemoScene MOD Tracker KeyGen VGM Score Chiptunes 8bit 1bit Low-fi C64 VGRemix Video Game
Website: http://ai-radio.org/?f=OPUS.64KB
Public : yes
Bitrate: 64000kbit/s
Cache size set to 320 KBytes
Cache fill: 18.63% (61044 bytes)
libavformat version 56.7.104 (internal)
libavformat file format detected.
[ogg @ 0x7f6a3abc32a0]679 bytes of comment header remain
[lavf] stream 0: audio (opus), -aid 0, OPUS 64KB airadio - video game music & many other more... ai-radio.org
[lavf] stream 1: video (png), -vid 0, ai-radio.org
VIDEO: [MPNG] 120x120 0bpp 90000.000 fps 0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 56.3.101 (internal)
Selected video codec: [ffpng] vfm: ffmpeg (FFmpeg PNG)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 0.0 kbit/0.00% (ratio: 0->384000)
Selected audio codec: [ffopus] afm: ffmpeg (FFmpeg opus)
==========================================================================
AO: [pulse] 48000Hz 2ch floatle (4 bytes per sample)
Starting playback...
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0x7f6a3abe71c0]bicubic scaler, from pal8 to yuv420p using MMXEXT
VO: [xv] 120x120 => 120x120 Planar YV12
mp_image: mpi->imgfmt: 0x42475208
mp_image: bits per image: 124928, bits allocated: 124928
No pts value from demuxer to use for frame!
mp_image: mpi->imgfmt: 0x32315659
mp_image: bits per image: 187392, bits allocated: 187392
pts after filters MISSING
A:3674906.2 V:-9223372036854775808.0 A-V: 0.000 ct: -0.000 0/ 0 0% 0% 1.
Exiting... (Quit)
---8<------>8---
---8<--- full output for non-working MPlayer in Ubuntu 14.04 --->8---
$ mplayer -demuxer lavf -playlist http://dir.xiph.org/listen/1467960/listen.m3u
Resolving dir.xiph.org for AF_INET6...
Couldn't resolve name for AF_INET6: dir.xiph.org
Resolving dir.xiph.org for AF_INET...
Connecting to server dir.xiph.org[140.211.15.194]: 80...
Cache size set to 320 KBytes
MPlayer 1.1-4.8 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing http://ai-radio.org:8000/radio.opus.
Resolving ai-radio.org for AF_INET6...
Connecting to server ai-radio.org[2a00:1630:2:1004::1]: 8000...
Name : OPUS 64KB airadio - video game music & many other more... ai-radio.org
Genre : VideoGame DemoScene MOD Tracker KeyGen VGM Score Chiptunes 8bit 1bit Low-fi C64 VGRemix Video Game
Website: http://ai-radio.org/?f=OPUS.64KB
Public : yes
Bitrate: 64000kbit/s
Cache size set to 320 KBytes
Cache fill: 0.00% (0 bytes)
libavformat version 54.20.4 (external)
Mismatching header version 54.20.3
libavformat file format detected.
[ogg @ 0x7f614c225600]679 bytes of comment header remain
[ogg @ 0x7f614c225600]Estimating duration from bitrate, this may be inaccurate
[lavf] stream 0: audio (libopus), -aid 0, OPUS 64KB airadio - video game music & many other more... ai-radio.org
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:3674983.5 (1020:49:43.6) of 0.0 (unknown) ??,?% 0%
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
A:3674988.2 (1020:49:48.4) of 0.0 (unknown) ??,?% 0%
Exiting... (Quit)
---8<------>8---
--
Be water, my friend.
-- Bruce Lee
More information about the MPlayer-users
mailing list