Tuesday, December 15, 2009

VDPAO acceleration in Fedora

Need binary nVidia drivers first, not Fedora drivers. (kmod-nvidia / xorg-x11-drv-nvidia)

Check with
yum provides */libvdpau.so.1

which leads you to install

yum install libvdpao

current mplayer has libvdpao support

[rmoore@localhost ~]$ mplayer -vo vdpau -vc ffh264vdpau ironman_trlr_02_720p_dl.mov
MPlayer SVN-r29701-4.4.1 (C) 2000-2009 MPlayer Team

Playing ironman_trlr_02_720p_dl.mov.
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xac02db0]max_analyze_duration reached
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO: [H264] 1280x544 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] XVMC-accelerated MPEG-2.
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] XVMC-accelerated MPEG-2.
VDec: vo config request - 1280 x 544 (preferred colorspace: H.264 VDPAU acceleration)
VDec: using H.264 VDPAU acceleration as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [vdpau] 1280x544 => 1280x544 H.264 VDPAU acceleration [fs]

Monday, December 14, 2009

Enable deltarpm in Fedora

yum install yum-presto

All future updates/upgrades will download delta's instead of the whole rpm

Thursday, December 10, 2009

Article on Gigabit performance

http://www.enterprisenetworkingplanet.com/nethub/article.php/10950_3485486_2

net.core.wmem_max = 8388608
net.ipv4.tcp_window_scaling = 1
net.core.wmem_default = 65536
net.core.rmem_default = 65536
net.ipv4.tcp_mem = 98304 131072 196608

After testing, I went from:

------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[ 4] local 192.168.1.14 port 5001 connected with 192.168.1.111 port 46281
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-10.0 sec 776 MBytes 648 Mbits/sec

to

------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[ 4] local 192.168.1.14 port 5001 connected with 192.168.1.111 port 42455
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-30.0 sec 2.58 GBytes 737 Mbits/sec


Monday, October 26, 2009

Start Nautilus browser inFluxbox

Run


nautilus --no-desktop --browser  &

Convert m4a to mp3

yum install faad2  (if its not already installed).

faad filename.m4a

lame -h -b 192 filename.wav filename.mp3

Tuesday, September 29, 2009

Remove WGA notification

run winodws\system32\wgatray /u

Then delete

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\WgaLogon

Then delete the following in system32

wgatray.exe
wgalogon.dll
dllcache\wgatray.exe
dllcache\wgalogon.dll

And if
SoftwareDistribution\Download\6c4788c9549d437e76e1773a7639582a
exists, delete that whole dir and reboot

Tuesday, September 22, 2009

Play h.264 on slow computer (mplayer)

mplayer -vo xv -ao alsa -lavdopts fast=1:skiploopfilter=all video.mkv

or

mplayer -vfm ffmpeg -lavdopts lowres=0:fast:skiploopfilter=all video.mkv

I've had better success, framerate and quality with the first one.