Wednesday, January 21, 2009

ffmpeg examples

ffmpeg -i <infile> -t 6.8 -ar 22050 -acodec libmp3lame -ab 32k -r 25
-s 320x240 -vcodec flv -qscale 9.5 <outfile>

-t time to encode
-ar audio rate
-ab audio bitrate
-r framerate
-target ntsc-dvd (to convert to dvd)
-crop[top|bottom|left|right]
-pad[top|bottom](multiples of 2) && -padcolor(hex)

to screen grab fro x11:
ffmpeg -f x11grab -s 320x240 -r 12 -i :0.0 -r 29.97 -qscale 2 <outfile>

image to video:
ffmpeg -loop_input -i <imagefile> -r 29.97 -t 10 -qscale 2 <outfile>

..and he does some awesome vhook stuff. great tutorial

original video:
http://revver.com/video/1063833/linux-howto-video-editing-magic-with-ffmpeg/

Tuesday, January 13, 2009

mac mini boot options

Mac option key - bring up boot partition options (including optical
and attached)
C - boot from optical
T - target disk mode
Shift - safe mode

Monday, December 22, 2008

Nvidia custom driver install using module assistant

First after a clean install, just leave the stock kernel and do NOT
install nvidia-glx

1) apt-get install module-assistant gcc nvidia-kernel-common
2) m-a update
3) m-a prepare
4) m-a auto-install nvidia (accept all the additional packages it
needs to install)
5) IMMEDIATELY AFTER: apt-get remove nvidia-kernel-`uname -a` (remove
the kernel module you just built, this was to prepare the latest
NVIDIA driver to build)
6) Download NVIDIA's latest drivers here :
http://www.nvidia.com/object/linux_display_ia32_177.82.html
7) Run the installer, it'll have to build a kernel module and it
should complain about the XLib path, but everything should be okay

At that point it should all be ready to go just copy the X config from
the other machine and it should be fine

- A.C.

Distcc/avahi daemon failed to parse host lists file

edit the avahi daeamon config file and set use-ipv6=no

apt-get returning package errors for valid packages

make sure your /etc/apt/preferences file is legit

Monday, October 13, 2008

NFS share with write access

Unless you are running NIS to share your logon information you have to
all_squash access on the server to a known server uid/guid

Server(/etc/exports): /<nfs_share>
192.168.1.0/255.255.255.0(rw,async,all_squash,anonuid=1000,anongid=1000)
Client(/etc/fstab
): <server_ip>:/<nfs_share> /mnt/<mount_point> nfs
defaults,users,rsize=32768,wsize=32786 0 0