You are not logged in.

#1 2008-10-24 00:39:16

mrbug
Member
Registered: 2007-07-17
Posts: 221

[SOLVED] mplayer says that the system is too slow?

I've noticed that mplayer has been complaining that my system is too slow to play videos lately.

mplayer CLI output:

AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [XVID]  640x352  12bpp  25.000 fps  1537.8 kbps (187.7 kbyte/s)
Clip info:
 Software: Nandub v1.0rc2
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 640 x 352 (preferred colorspace: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.82:1 - prescaling to correct movie aspect.
[swscaler @ 0x89d5f50]SwScaler: using unscaled yuv420p -> bgr24 special converter
VO: [gl2] 640x352 => 640x352 BGR 24-bit 
[gl2] You have OpenGL >= 1.2 capable drivers, GOOD (16bpp and BGR is ok!)
[gl2] antialiasing off
[gl2] bilinear linear
A: 866.0 V: 866.0 A-V:  0.012 ct:  0.099 21651/21651  2%  3%  0.2% 4 0 
A: 868.6 V: 867.9 A-V:  0.763 ct:  0.099 21698/21698  2%  3%  0.2% 50 0 

           ************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.

mediainfo output:

Format                           : AVI
Format/Info                      : Audio Video Interleave
File size                        : 698 MiB
Duration                         : 58mn 0s
Overall bit rate                 : 1 684 Kbps
Writing application              : Nandub v1.0rc2
Writing library                  : Nandub build 1852/release

Video
Format                           : MPEG-4 Visual
Format profile                   : Streaming Video@L1
Format settings, BVOP            : Yes
Format settings, QPel            : No
Format settings, GMC             : No warppoints
Format settings, Matrix          : Default
Muxing mode                      : Packed bitstream
Codec ID                         : XVID
Codec ID/Hint                    : XviD
Duration                         : 58mn 0s
Bit rate                         : 1 538 Kbps
Width                            : 640 pixels
Height                           : 352 pixels
Display aspect ratio             : 16/9
Frame rate                       : 25.000 fps
Resolution                       : 24 bits
Colorimetry                      : 4:2:0
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.273
Stream size                      : 638 MiB (91%)
Writing library                  : XviD 1.1.2 (UTC 2006-11-01)

Audio
Format                           : MPEG Audio
Format version                   : Version 1
Format profile                   : Layer 3
Codec ID                         : 55
Codec ID/Hint                    : MP3
Duration                         : 58mn 0s
Bit rate mode                    : Variable
Bit rate                         : 133 Kbps
Nominal bit rate                 : 128 Kbps
Channel(s)                       : 2 channels
Sampling rate                    : 48.0 KHz
Resolution                       : 16 bits
Stream size                      : 55.1 MiB (8%)
Alignment                        : Aligned on interleaves
Interleave, duration             : 24 ms (0.60 video frame)
Interleave, preload duration     : 477 ms
Writing library                  : LAME3.90.
Encoding settings                : ABR

~/.mplayer/config contents:

vo=gl2
monitoraspect=16:9

Any ideas?

EDIT: Well, it looks like adding "ao=alsa" to ~/.mplayer/config did it. I guess that it uses OSS by default, which is apparently too slow.

EDIT 2: If anyone else can offer any mplayer performance tips, I'd still appreciate them.

Last edited by mrbug (2008-10-24 00:42:05)


dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)

Offline

#2 2008-10-24 01:27:50

Square
Member
Registered: 2008-06-11
Posts: 429

Re: [SOLVED] mplayer says that the system is too slow?

I find the

-cache 8192

switch does wonders.


 

Offline

#3 2008-10-24 11:34:41

mrbug
Member
Registered: 2007-07-17
Posts: 221

Re: [SOLVED] mplayer says that the system is too slow?

I have 2 GB of RAM, and I generally only ever run mplayer alone.

Would a bigger number like 32 MB provide any benefits?


dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)

Offline

#4 2008-10-24 20:30:43

Square
Member
Registered: 2008-06-11
Posts: 429

Re: [SOLVED] mplayer says that the system is too slow?

Perhaps. Also, in that error message, do as it says and play around with combinations of those.

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.

(Taken directly from your post tongue)


 

Offline

#5 2008-10-29 17:56:54

mrbug
Member
Registered: 2007-07-17
Posts: 221

Re: [SOLVED] mplayer says that the system is too slow?

I updated the original post, but I'll say it again here:

This was solved by telling mplayer to use ALSA instead of OSS.


dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)

Offline

#6 2013-05-04 00:18:16

Johnorizabal
Member
From: ON, Canada
Registered: 2013-01-21
Posts: 6

Re: [SOLVED] mplayer says that the system is too slow?

How did you tell it to use alsa instead of oss?

Offline

#7 2013-05-04 01:08:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,431

Re: [SOLVED] mplayer says that the system is too slow?

Johnorizabal wrote:

How did you tell it to use alsa instead of oss?

With 'mplayer -ao alsa' or by specifying 'ao=alsa' in ~/.mplayer/config

$ cat ~/.mplayer/config
# Write your default config options here!
ao=alsa

Offline

#8 2013-05-04 02:35:50

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 19,061
Website

Re: [SOLVED] mplayer says that the system is too slow?

...as is mentioned explicitly in the man page.


Please don't necrobump: https://wiki.archlinux.org/index.php/Fo … Bumping.27



Closing


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB