Converting MKV to MP4

Use mkvtomp4 to extract all the tracks you need. As they write, “mkvtomp4 … uses mpeg4ip or GPAC’s MP4Box, mkvtoolnix and ffmpeg to convert troublesome mkv files to mp4”.

I use MP4Box since it is available in portage on gentoo.

When the mp4-file is made, use subler to edit the tags, add artwork and subtitles.

Classloader getchas

try{
System.out.println(
ArrayUtils.class.getProtectionDomain().getCodeSource().getLocation().toURI()
);
for(URL url : ((URLClassLoader)ArrayUtils.class.getClassLoader()).getURLs()) {
System.out.println(url.getPath());
}
}
catch (URISyntaxException e) {

}

Building an HPC Cluster on Gentoo

Install Torque and OpenMPI

USE=”server” emerge torque
USE=”openpbs” emerge openmpi

Configure Torque

‘pbs_server -t create’

rocky sbin # qmgr
Max open servers: 4
Qmgr: set server operators = root@localhost;
Qmgr: create queue batch
Qmgr: set queue batch queue_type = Execution
Qmgr: set queue batch started = True
Qmgr: set queue batch enabled = True
Qmgr: set server default_queue = batch
Qmgr: set server resources_default.nodes = 1
Qmgr: set server scheduling = True
Qmgr: quit
rocky sbin #

Now kill the pbs_server
‘killall -9 pbs_server’

Add lines per machines and CPUs here (I have 8 CPUs in localhost)
echo “localhost np=8” > /var/spool/torque/server_priv/nodes

Set your machine name (Rocky for me)
echo “rocky” > /var/spool/torque/server_name

Configure each node (Localhost for me)
nano /var/spool/torque/mom_priv/config

Add this content:

##################
arch x86
opsys Gentoo
$logevent 255
##################

Now start the server
/etc/init.d/pbs_server restart
/etc/init.d/pbs_mom restart

(You might get errors regarding pbs_server or pbs_mom allready running, just kill them.)

Now onto MAUI

Add ACCEPT_KEYWORDS=”~x86″ to /etc/make.conf

Download maui-3.3.tar.gz from http://www.clusterresources.com/product/maui/ (Requires registration)

put maui-3.3.tar.gz into /usr/portage/distfiles
emerge maui

Remove ACCEPT_KEYWORDS=”~x86″ from /etc/make.conf

References:
http://www.gentoo-wiki.info/HOWTO_Torque/Maui_-_grid_scheduler_and_resource_manager#Configuration

SSHFs

Finally a tool that will let you mount your drives from anywhere in the world, all you need is the abilty to login via SSH.

Get it here: http://fuse.sourceforge.net/sshfs.html

Tatung V42EMGI with Xorg


Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"

Option "UseEDID" "FALSE"
VertRefresh 30-90
HorizSync 20-150
Modeline "1080p" 172.798 1920 2040 2248 2576 1080 1081 1084 1118 -hsync +vsync
DisplaySize 930 523
EndSection

MPlayer plays 720p (x/h.264) and 1080p (Xvid) smoothly with a 3.0GHz P4, but 1080p (x/h.264) is still a little too much.