Monday, September 15, 2008

mplayer on frame buffer

The mplayer rpm package form livna is compiled without frame buffer output support( 'mplayer -vo help' for a list of output drivers supported).

So recompile mplayer is needed.
1. enable frame buffer device driver in kernel
For FC6, only append vga=791 to kernel parameter when start kernel can enable frame buffer device driver.
run 'fbset -i' to see some infomation about current frame buffer.
[dybbuk@localhost mplayer_fc6]$ cat /proc/cmdline
ro root=LABEL=/ rhgb quiet vga=791

[dybbuk@localhost mplayer_fc6]$ /usr/sbin/fbset -i
mode "1024x768-76"
    # D: 78.653 MHz, H: 59.949 kHz, V: 75.694 Hz
    geometry 1024 768 1024 768 16
    timings 12714 128 32 16 4 128 4
    rgba 5/11,6/5,5/0,0/0
endmode

Frame buffer device information:
    Name        : VESA VGA
    Address     : 0xc0000000
    Size        : 3145728
    Type        : PACKED PIXELS
    Visual      : TRUECOLOR
    XPanStep    : 0
    YPanStep    : 0
    YWrapStep   : 0
    LineLength  : 2048
    Accelerator : No


2. recompile mplayer
Get lattest developent version from the mplayer svn repository. when configure the source tree, check fbdev list in the enabled video output drivers.

3. test
./mplayer -vo fbdev -vf scale=1024:768 ../../The_Code-Linux.avi

Using Directfb:
   
1. Install directfb and driverfb-dev package
2. modify /etc/fb.modes, add the current frame buffer mode as the first mode.
3. reconfigure and recompile mplayer. make sure directfb list in the enabled video output drivers
4. ./mplayer -vo directfb -vf format=bgr16 ../../The_Code-Linux.avi
(without specify bgr16 format, the picture will all messed up with a lot of green. my graphic chipset is intel 945GM ).

2 comments:

Anonymous said...

Hello! I could have sworn I've been to this blog before but after looking at some of the posts
I realized it's new to me. Regardless, I'm definitely pleased
I came across it and I'll be bookmarking it and checking back frequently!
\

Feel free to surf to my web-site camisetas de futbol baratas

Anonymous said...

Just wish to say your article is as astonishing. The clarity in your post is
simply nice and i could assume you're an expert on this subject.
Fine with your permission let me to grab your feed to keep
updated with forthcoming post. Thanks a million and please keep up the gratifying work.


Also visit my weblog; residential solar power (http://support.aqayo.com/)