Tuesday, February 24, 2009

Thursday, February 19, 2009

shared libraries g++

for the executable that will load the dlib, include the linker option '-rdynamic'

<lib_name.so> - shared library
<src> - source file
<src_obj> - object file of source

$(DEBUG_DIR)/<lib_name.so> : $(DEBUG_DIR)/<src_obj>
   g++ -shared -Wl,-soname,<lib_name.so> -o $(DEBUG_DIR)/<lib_name.so> $(DEBUG_DIR)/<src_obj> -lc
  
$(DEBUG_DIR)/<src_obj> :
   g++ -fPIC -g -c -Wall -I . -c src/<src> -o $(DEBUG_DIR)/<src_obj>


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