Talk:MPlayer/Framebuffer
From Gentoo Linux Wiki
(unknown)
fbcon wasn't enough for me, I had to add directfb and nvidia (specific to my graphic card) to make mplayer working perfectly in FrameBuffer
---
ethan@arnold.net 27.12.05/12:13
Thanks to these good instructions, I have it working under root now, with loaded svgalib_helper, using the command: mplayer -vo svga -vf scale=640:480 filename.mpg
but it will not work as a normal user. First access was denied to /dev/fb0, after adding the user to the "video" group, that worked. Then access was denied to /dev/console, which only had root access. I changed the group on /dev/console to video, now it doesnt report access denied anymore, but still aborts with: "Not running in a graphics capable console, and unable to find one."
---
My recommendation is to put something like "vo=xv,x11,ggi,fbdev,fbdev2" into ~/.mplayer/config
The basic properties are:
- xv: Use in X if at all possible
- x11: A good fallback for people who like to experiment and don't like to restart X to fix things.
- directfb: device node permissions can be an issue on Gentoo.
- fbdev: overlays on your console without any automatic scaling. If you're using something like GNU screen, you can actually multitask in a way reminiscent of picture-in-picture on a TV. (You wouldn't need GNU screen if mplayer would let itself be backgrounded without automatically pausing)
- fbdev2: A different implementation of the same thing as fbdev. A good automatic fallback.
- ggi: centered playback with black where there's no video. No automatic scaling.
- sdl: AVOID! It has a tendency to be fragile and, at least on nvidia cards, when (not if) it messes up, you have to reboot to get your video card responding again. That's just not worth getting automatic scaling.
- svga: Requires svgalib_helper or root permissions and only works on x86.
You could also add a line like "ao=alsa,oss,openal,esd,arts" if your sound setup tends to be finicky.
I like to use "af=volnorm" to enable the on-the-fly volume normalization and "sid=0" to automatically use the first subtitle track if one or more are present.
