You are not logged in.
Pages: 1
Topic closed
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
I find the
-cache 8192
switch does wonders.
Offline
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
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 )
Offline
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
How did you tell it to use alsa instead of oss?
Offline
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
...as is mentioned explicitly in the man page.
Please don't necrobump: https://wiki.archlinux.org/index.php/Fo … Bumping.27
Closing
Offline
Pages: 1
Topic closed