In Linux or OS X (via Terminal), mirror folders structure and transfer certain file type using rsync: (Only .avi files) rsync -rav —include "*/" —include "*.avi" —exclude "*" /source/folder /dest/folder

★
ojovivo

blake kathryn
Monterey Bay Aquarium
dirt enthusiast

Andulka
occasionally subtle
Sade Olutola
One Nice Bug Per Day
I'd rather be in outer space 🛸

@theartofmadeline
Lint Roller? I Barely Know Her
h

PR's Tumblrdome
will byers stan first human second
todays bird
Sweet Seals For You, Always

Origami Around
Show & Tell

JBB: An Artblog!
seen from Canada
seen from Malaysia
seen from Türkiye
seen from United States
seen from United States
seen from United States
seen from Spain
seen from Sweden

seen from Malaysia

seen from Malaysia
seen from United States
seen from United States
seen from Spain
seen from United States
seen from United Kingdom
seen from United Kingdom
seen from United States
seen from Netherlands
seen from Malaysia
seen from United States
@floppydiskettes
In Linux or OS X (via Terminal), mirror folders structure and transfer certain file type using rsync: (Only .avi files) rsync -rav —include "*/" —include "*.avi" —exclude "*" /source/folder /dest/folder

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
New firmware and kernel is more stable
It is noticed that Raspberry Pi running on the new Linux kernel 3.6.11+ and firmware version #474 is much more stable than the older versions of a few months ago. Hence it is recommended that users download the latest Raspbian "wheezy" dated 2013-05-25 from www.raspberrypi.org, or simply update existing system by
sudo apt-get update
sudo apt-get upgrade
Now, it should be possible to reduce the frequency of automated reboot of Raspberry Pi from daily to weekly, or even monthly.
Guide to installing a LAMP webserver on Xubuntu or Ubuntu
Power supply for Raspberry Pi
It really seems that not any USB AC charger will work fine with the Raspberry Pi, at least not in the long run. In the past 6 months, I have used 2 unbrand PSU, one rated 5.2V 1A output and the other 5.1V 2A output. Both power the RPi reliably, but they themselves failed after a few months of continuous operation.
These are perhaps meant to be a charger in the first place, whereby you use to charge your battery and then turn off after.
For my third PSU, I have bought an OEM iPad charger. Hopefully, this one is made of higher quality components and can last at least a year of continuous operation.
Performance of jpeg decoding with Libjpeg version 8d
It may be of interest to investigate the performance of Libjpeg compiled with the various GCC optimization flags and the DCT algorithm used. This is especially true if your Raspberry Pi is decoding jpeg streams 24/7, such as from an surveillance camera.
GCC optimization flags tested: -O2, -Os, -O3
DCT methods tested: JDCT_ISLOW (default integer method), JDCT_IFAST (less accurate integer method), JDCT_FLOAT (use hardware VFP coprocessor)
Jpeg file used: 5MB 8386 x 2229 pixels
The following chart summarises the findings:

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Morning sun from the rooftop of Sukkasem guesthouse, Hua Hin
“Research is the transformation of money into knowledge. Innovation is the transformation of knowledge into money. Creativity is thinking but innovation is doing, if you have an idea you should have the passion to do something about it.”
Dr Nicholson, "father of Post-it Notes"
Make an enclosure for Adafruit charger without additional purchase
This is how to do it to make the enclosure as shown in the previous post.
Really basic tools needed:
Remember the pink enclosure that comes with the Raspberry Pi? Now it is used to permanently house the Adafruit charger.
The Adafruit Lithium Polymer Charger

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Build Motion and FFMPEG - Epilogue
Connected to the Raspberry Pi:
An abandoned Microsoft VX-500 webcam
An old Linksys WUSB54G v4 wifi adapter
The above connected to a new Belkin F4U040 powered usb hub
Streaming input from the webcam: YUYV (the only one supported)
Motion output format (via ffmpeg): mpeg4
Motion CPU utilisation with no motions detected: ~3%
Motion CPU utilisation when motions are detected: ~20%
Build Motion and FFMPEG (Part 3 of 3)
Putting together all the pieces and compile Motion
In Part 2, we built ffmpeg 0.8.12. To build Motion, we require the header files and libraries of ffmpeg, libjpeg8, and zlib (not zlibc).
Optimized for Raspberry Pi
A note on getting the most optimized compiling with GCC.
Issue the command,
lscpu
to see all the features supported.
Here are some details about the processor on Raspberry Pi.
-march=armv6zk
The SoC is a Broadcom BCM2835 which contains an ARM1176JZFS running at 700Mhz. This processor is based on the ARMv6 instruction set, more specifically ARMv6ZK subarchitecture. You should see armv6l as output with the command uname -m.
-mfpu=vfp
BCM2835 also contains a hardware floating point unit, VFPv2, an optional extension to the ARM instruction set in ARMv6 architecture. It may not be a very fast floating point unit but additional hardware capability is welcomed to deal with those complex math computation. In a later post, I will show some performance information regarding the use of VFPv2.
-mfloat-abi=hard
With hardware floating point unit, use this flag to tell GCC to generat hard-float binary. To be used in conjunction with -mfpu=vfp.
Btw, comments are welcomed.
Build Motion and FFMPEG (Part 2 of 3)
Compile ffmpeg 0.8 release branch
Obtain the latest source code for the stable version for the 0.8 release branch. As of this writing 0.8.14. Visit download page.
Transfer the download and extract to ~/compiling, where you will eventually find it at ~/compiling/ffmpeg-0.8.14. Go to the extracted source directory.
Compile:
export CCPREFIX=arm-linux-gnueabihf-
Build Motion and FFMPEG (Part 1 of 3)
Setup cross-compile environment
It is ideal to compile and build ffmpeg on a faster Intel machine rather than on Raspberry Pi itself unless you are prepared to let the compiling process run for many hours.
Your options:
Have a native linux system (Debian 32-bit) running on an Intel PC

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Digging deeper (Motion needs FFMPEG)
The route I chose however, is really not an easy path. While I am at it to compile Motion, I have decided to get the latest FFMPEG source code and compile it too.
While I am sure that the latest FFMPEG 0.8.12 (Release 0.8 branch) have some important bug fixes too, my point is that I wanted to compile ffmpeg with full optimization for Raspberry Pi at the same time not linking it to any external codecs. The ffmpeg available from Raspberry Pi repository was compiled with all the external codecs linked. Then, when I finally compile Motion linking it to my custom ffmpeg, I know it is optimized and not include any codecs that I do not need.
In the next post, I will surely be outlining the steps to compiling ffmpeg and Motion.
Considerations to make for a surveillance system using Raspberry Pi
The Raspberry Pi as of this post has a little problem with its USB subsystem, more specifically it should be due to the kernel driver it uses to handle the USB controller. These are some suggestions to help build a more reliable surveillance system on the Raspberry Pi
Disable the eth0 interface if you use a Wifi adapter. Insert the following code into the file /etc/rc.local
sudo sh -c 'echo -n '1-1.1:1.0' > \ /sys/bus/usb/drivers/smsc95xx/unbind'
Avoid running Transmission server concurrently.
Bear in mind that some webcam will use up the entire bandwidth available to USB 2.0. This is because these webcam do not support compressed pixel formats. To find out, install v4l-utils:
sudo apt-get install v4l-utils
v4l2-ctl --list-formats
If you see only 'YUYV', your webcam does not support compressed formats. Example of a compressed pixel formats is 'MJPEG'. In this case, you can only set up a single webcam for surveillance. To use more than one webcam for surveillance, use webcams with compressed pixel formats only.