Videoteam/Software
From Wiki
Contents |
[edit] FAI setup
[edit] creating a d-i usbstick mini howto
use at your own risk. type responsable.
fdisk /dev/sda -> create a WIN32 VFAT partition (type b in fdisk) mount /dev/sda1 /mnt copy the following files to /mnt: vmlinuz # from http://ftp.nl.debian.org/debian/dists/etch/main/installer-i386/current/images/hd-media/ initrd.gz # from http://ftp.nl.debian.org/debian/dists/etch/main/installer-i386/current/images/hd-media/ syslinux.cfg # see current directory :) defines language and preseed file url debian-40r3-i386-businesscard.iso # from http://cdimage.debian.org/debian-cd/4.0_r3/i386/iso-cd/ preseed.cfg # see current directory final_setup.sh # see current directory ac583520.asc # my public key umount /dev/sda1 syslinux /dev/sda1 # the t60 needs 3.51 from sid/holgers etch backports... install-mbr /dev/sda
syslinux.cfg is a two liner:
default vmlinuz append initrd=initrd.gz ramdisk_size=15360 root=/dev/rd/0 devfs=mount,dall rw DEBCONF_PRIORITY=high d-i debian-installer/locale=C console-keymaps-at/keymap=us preseed/file=/hd-media/preseed.cfg
The other files are available at http://svn.debian.org/wsvn/debconf-video/fai-config/doc/src/?rev=0&sc=0
[edit] Speex encoding used at LCA 2008
The speex encoding script is doing this:
echo " - Re-extracting audio from trimmed AVI"
mencoder -really-quiet -of rawaudio -oac pcm -ovc copy -o ${RAWFILE}
${INFILE}
echo " - Creating 16kHz temp file"
sox -c 2 -r 48000 -t raw -L -2 -s ${RAWFILE} -r 16000 -c 1 -t sw
${TEMPFILE}
echo " - Encoding to OGG Speex"
# According to the speex site VBR at around 12 kbps is about as high
# quality as speex gets
#--comment "Content from linux.conf.au 2008"
speexenc -w --abr 12 --comp 8 ${TEMPFILE} ${OUTFILE}
-Eric Rz.
[edit] Counting unique IP addresses in icecast logs
#!/usr/bin/python
import sys, socket, string
file = "/usr/local/share/icecast/log/access.log"
f = open(file, 'r')
data = f.readlines()
f.close()
listip = []
countip = 0
for line in data:
ip = line.split(" ")
if ip[0] not in listip:
listip.append(ip[0])
countip = countip + 1
## I have no idea why the bottom doesn't work inside of the 'for' loop. It works outside of it?
# hostname = socket.gethostbyaddr(ip[0])
# print hostname
print listip
print countip
-Ryan Vermer
