2 apt-get install module-assistant
3 apt-get install qc-usb-source
4 apt-get install xawtv
6 m-a prepare
7 cd /usr/src/
8 tar -jxvf ./qc-usb.tar.bz2
9 cd modules/qc-usb/
10 make
11 make install
28 m-a -f build qc-usb
29 m-a -f install qc-usb
33 modprobe -l
35 modprobe quickcam
36 xawtv -hwscan
18 August, 2009
Debian List Installed Packages
Short-n-sweet; In order to list the currently installed packages do the following:
$ dpkg --get-selections
12 August, 2009
Debian Lenny - FFMpeg
A challenge of migrating to a new distribution will always be the subtleties that each update brings.
For example, I assume this is because Debian strives to ensure that only open-source utilities are distributed my recent update to 'Lenny' left me with an FFMpeg distro that doesn't support encoding MS-MPEG4v2 videos.
As a result, you have to rebuild from source as follows:
I chose the /usr destination to overwrite any existing installation, otherwise you'd have to resolve path issues to ensure you're running the 'right' binary.
Tah.
For example, I assume this is because Debian strives to ensure that only open-source utilities are distributed my recent update to 'Lenny' left me with an FFMpeg distro that doesn't support encoding MS-MPEG4v2 videos.
As a result, you have to rebuild from source as follows:
xion:/home/user/ffmpeg-0.5$ ./configure --enable-x11grab --enable-gpl --prefix=/usr
xion:/home/user/ffmpeg-0.5$ su
xion:/home/user/ffmpeg-0.5# make install
I chose the /usr destination to overwrite any existing installation, otherwise you'd have to resolve path issues to ensure you're running the 'right' binary.
Tah.
09 August, 2009
Debian Lenny Sound Installation
I just installed 'Lenny' on my workstation. I struggled for a couple hours trying to get the sound card configured.
After the installation I found the sound card wasn't working properly.
To resolve, I switched user to root, ran alsaconf, selected the CA0106 Alsa Mixer, ran alsamixer and set the volume accordingly.
It's also worth noting that I opened the 'Volume Control Preferences', selected the CA0106 device and selected the Analog Front selection to allow volume control from the panel.
After the installation I found the sound card wasn't working properly.
To resolve, I switched user to root, ran alsaconf, selected the CA0106 Alsa Mixer, ran alsamixer and set the volume accordingly.
It's also worth noting that I opened the 'Volume Control Preferences', selected the CA0106 device and selected the Analog Front selection to allow volume control from the panel.
10 July, 2009
Convert Color Video To GrayScale
I've recently found it useful to convert color video into grayscale video. I found the following to be effective in doing so.
I haven't however found a means to re-encode the grayscale into an alternative codec (sigh).
$ ffmpeg -y -i /tmp/video.avi -s 640x480 -pix_fmt gray -vcodec rawvideo /var/tmp/video.avi
I haven't however found a means to re-encode the grayscale into an alternative codec (sigh).
06 July, 2009
Narrowing Your Google Search
I was just surfing for ServiceMix documentation and came across instructions at a website that suggested searching their site for specific info by using Google and constraining the search to their site.
Paint my ass and call me Sally.....I didn't know you could do that.
Seems that you can constrain a search to a given site by specifying a site: directive.
For example,
This'll limit your search to the fatslowkid.blogspot.com site, looking for instances of imagemagick.
Cheers.
Paint my ass and call me Sally.....I didn't know you could do that.
Seems that you can constrain a search to a given site by specifying a site: directive.
For example,
site:fatslowkid.blogspot.com imagemagick
This'll limit your search to the fatslowkid.blogspot.com site, looking for instances of imagemagick.
Cheers.
03 July, 2009
ImageMagick Frame Differences
ImageMagick has some image processing utilities built right in. I recently found a means to display the differences between 2 PNM images.
By using these image processing utilities you can compare the following images to detect the changes between frames by using the following command:


The resultant image is as follows:

Another side note that's worth mentioning, you don't have to redirect the results to a file. You can instead redirect the output to stdout and pipe it into the display utility for immediate rendering to screen; as follows:
Gotta love the command pipe!!
By using these image processing utilities you can compare the following images to detect the changes between frames by using the following command:
$ convert frame00000002.bmp frame00000001.bmp -compose difference -composite -threshold 0 -negate diff.bmp


The resultant image is as follows:

Another side note that's worth mentioning, you don't have to redirect the results to a file. You can instead redirect the output to stdout and pipe it into the display utility for immediate rendering to screen; as follows:
$ convert frame00000002.bmp frame00000001.bmp -compose difference -composite -threshold 0 -negate - | display
Gotta love the command pipe!!
Subscribe to:
Posts (Atom)