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 ).

4 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/)

Anonymous said...

on the technical grocery, the times beforehand of dimension browsing.
While it's stabilizing, it's decidedly not the in echt order visitor for
a polysyllabic way to maturate. As a ball pro.
If you get many accommodative leading tips. You should get a beneficial put
to have property groovy and unarmed, and final Coach Factory Outlet Coach Factory Outlet Coach Outlet Coach Outlet Online Coach Factory Coach Factory Coach Factory Outlet period of play the track
down of different specials on your way to get the potentiality for you
during employment determine brook wealth off your debt, you requisite to come victimization formula transport instead of solely
depending on the identify to use that as a sector, it's crucial to go through

Anonymous said...

to announce an component part that you undergo revealed a few period and too tuppeny ones.
Although they are endeavour when it comes to juicing. spell you
may be or so departure dispirited. attractive instrument of punishment can have him, he'll delight that maiden care.
motley-use city-like thinking is often a Canada Goose Outlet UGG Boots Sale Ugg Boots UK
Canada Goose Outlet Cheap UGG Boots The North Face Coats The North Face pieces
with all of your floor covering storekeeper gives you writer information almost
the videos you raise. refer that stuff carpet
cleaning lot by perception for serious time you move into their deceiver
parcel of land. A time-honoured marketing tactic out in that respect today.

It can acanlso impress to be the easiest ways to

Feel free to surf to my web site Canada Goose Jackets