2008年9月24日 星期三

Verify SFV listings on Ubuntu

sfv is simple file verfication.

1. download and install cksfv which is no longer in the repository

sudo dpkg -i cksfv_1.3.5-1_i386.deb

2. verify files listed in .sfv

cksfv -f filename.sfv

Convert video by mencoder

mencoder is cross-platform command line video decoding, encoding and filtering tool. it can convert all the formats that MPlayer understands.

a converting example like below

mencoder in.video -oac mp3lame -lameopts preset=64 -ovc lavc -lavcopts vcodec=mpeg4 -ofps 25 -vf scale=320:240 -ni -o out.video

-oac #encode with the given audio codec (no default set).
-oac help #get a list of available audio codecs.
-<codec>opts #codec specific encoding parameters

preset=<value> #ABR encoding at average given kbps bitrate

-ovc #encode with the given video codec (no default set).
-oac help #get a list of available video codecs.

vcodec=<value> #employ the specified codec (default: mpeg4).
#windows media player comptiable format: msmpeg4, msmpeg4v2, wmv7

-ofps #specify a frames per second (fps) value for the output file
-vf scale=x:y #resize video

-ni #force usage of non-interleaved AVI parser (fixes playback of some bad AVI files).

-o #output filename

2008年9月18日 星期四

Run .Net applications on Ubuntu

1. you'll have to install wine and mono, standard compliant .NET compatible set of tools.

sudo apt-get install wine mono

2. run .net applications as common win32 program

wine /path/filename

3. you may suffer this kind of problem related to gdiplus.dll like below

wine: Call from 0x7b844b20 to unimplemented function gdiplus.dll.GdipCreateFontFamilyFromName, aborting

wine: Unimplemented function gdiplus.dll.GdipCreateLineBrushI called at address 0x7b844940 (thread 0009), starting debugger...

4. download gdiplus.dll from www.dll-files.com and put it in .wine/drive_c/windows/system32 then run again

2008年9月11日 星期四

TSocks on Slax

1. activate tsocks module

2. make a configuration file to specify socks server

vi /etc/tsocks.conf
--
server = ip
server_port =
server_type = 5 # socks version
local = ip/mask

server ip must
3. run non-socks aware applications from tsocks

tsocks [application [application's arguments]]