Since I have the memory of a goldfish, this will basically used to catalog/archive things so that I can use it as a reference. Maybe someone might find it helpful. It will mostly revolve around tech/linux stuff.
Tuesday, February 24, 2009
Thursday, February 19, 2009
shared libraries g++
<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
-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
and attached)
C - boot from optical
T - target disk mode
Shift - safe mode
Friday, December 26, 2008
Monday, December 22, 2008
Nvidia custom driver install using module assistant
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.