Add these repository:
sudo vi /etc/apt/source.list
deb http://dl.bananian.org/packages/ wheezy main
deb http://packages.cubian.org/ wheezy main non-free
Add gpg key:
wget -O - http://packages.cubian.org/cubian.gpg.key | sudo apt-key add -
wget -O - http://dl.bananian.org/packages/bananian-packages.key | sudo apt-key add -
Update
sudo apt-get update
Install xorg core
sudo apt-get install xserver-xorg-video-sunximali xserver-xorg-core xinit alsa-utils
Download and compile latest libvdpau-sunxi ,
if you install one from available package it wont show the OSD.
sudo apt-get install pkg-config libvdpau1 libvdpau-dev
git clone https://github.com/linux-sunxi/libvdpau-sunxi.git
cd libvdpau-sunxi
make
sudo make install
Load sunxi cedar on boot
sudo vi /etc/modules
sunxi_cedar_mod
Add sunxi vdpau environment and osd
sudo vi /etc/environment
VDPAU_DRIVER=sunxi
VDPAU_OSD=1
Add permission
sudo vi /lib/udev/rules.d/90-sunxi-disp-permission.rules
KERNEL=="mali", MODE="0660", GROUP="video"
KERNEL=="ump", MODE="0660", GROUP="video"
KERNEL=="disp", MODE="0777", GROUP="video"
KERNEL=="cedar_dev", MODE="0777", GROUP="video"
KERNEL=="g2d", MODE="0777", GROUP="video"
Add user to multimedia group
sudo usermod -G sudo,video,audio user
Install mplayer 2
sudo apt-get install mplayer2
or build latest mplayer 1 with vdpau & alsa support
Run mplayer with these option on X:
mplayer -fs -ao alsa:device=hw=0.0 -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau,ffodivx <movies_file>
note
alsa:device=hw=0.0 analog audio out
alsa:device=hw=1.0 HDMI audio out
Enable osd & subtitle
mplayer -fs -ao alsa:device=hw=0.0 -softvol -softvol-max 440 -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau,ffodivx -noass -ass-font-scale 5 -ass-color FFFFFF00 -ass-border-color 0 -ass-use-margins -ass-bottom-margin 50 -spualign 2 -subalign 2 -subfont /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf -subcp cp1250 <movies_file>
Or simply edit mplayer default config
vi .mplayer/config
vo=vdpau
vc=ffmpeg12vdpau,ffh264vdpau,ffodivx
fullscreen=yes
quiet=yes
ao=pulse
framedrop=yes
cache=8192
lavdopts=threads=2
ass=no
ass-font-scale=1.4
ass-color=FFFFFF00
ass-border-color=00000000
ass-use-margins=yes
ass-bottom-margin=50
spualign=2
subalign=2
subfont=/usr/share/fonts/TTF/DejaVuSans.ttf
subcp=cp125
Screen never go blank
install xset utilities
sudo apt-get install x11-xserver-utils
add these lines to /etc/X11/xinit/xinitrc
xset s off # don't activate screensaver
xset -dpms # disable DPMS (Energy Star) features.
xset s noblank # don't blank the video device
Tested up to 1080p HD.
Combined from many sources.
No comments:
Post a Comment