Extract Chapters from a DVD
I have this video camera, a Sony DVD201E which records straight to a mini-DVD disc. I want to copy the recorded video onto my PC but the software which comes with the camera is pretty awful. Besides it is Windows-only and I do prefer to use Linux.
So I have made a little Linux app which can extract scenes from a DVD disc. The camera records each scene as a DVD “chapter”. My application reads a DVD disc and copies each chapter into a separate MPEG file. I’ll publish it here in case anyone else finds it useful.
Downloading and Compiling
I’m just releasing this as source code at the moment. I have tested it under Ubuntu 7.10 but It will probably work fine on any UNIX-based system. You can download it here:
DvdChapterExtract-1.2.tar.bz2 (16k)
You will need libdvdread and libavformat before you compile. So install those:
sudo apt-get install libdvdread-dev libavformat-dev
Next unpack and compile:
tar jxf DvdChapterExtract-1.2.tar.bz2 cd DvdChapterExtract/Release make all
Usage
1. You need to record your discs in Video mode, not “VR” mode. VR is a Sony proprietary format which cannot be read in a regular DVD drive.
2. After recording your disc, you must Finalize it in-camera.
3. Put the disc into the DVD drive on your PC.
4. Launch the DVD chapter extract tool like so (assuming /dev/scd0 is the name of your DVD drive).
./DvdChapterExtract -d /dev/scd0
It will extract each chapter into a separate file called chapter001.mpeg, chapter002.mpeg and so on. These can be loaded directly into any video editing software.
The camera also tags each chapter with some meta-data such as the date and time the scene was recorded. I have not yet figured out how to read that data.

Its nice to know that while I was
This solder paste stuff is pretty toxic. Perhaps I’m going overboard here but I thought some rubber gloves would be a good idea.
To apply the paste, I just squirted it on the board. It kinda went everywhere at first until I got the hang of it. Next time I’ll get a smaller tube and perhaps a smaller nozzle. I fixed it up as best I could using a toothpick and cotton tips. It took quite a lot longer and was much more messy than I anticipated.
Next comes the pick-and-place. I got most of my parts from 
The idea is to use a frying pan or toaster oven to perform solder reflow for SMT circuit boards. I decided to use a skillet thinking that a toaster oven would melt components since it heats both top and bottom.
So I need to do a scientific experiment. Firstly I put some oil in the pan and stuck in a thermometer (the fork is to hold the probe in the oil). Then I turned up the heat slowly making a note of the temperature. Finally I graphed the result. Here are the results in degrees C. That cheap little temperature knob is surprisingly linear.
On Sundays I usually make pancakes for breakfast with the kids. This week inspired by Dave Spencer’s 


I haven’t posted for a while. I’ve been spending less time geeking and more time with my kids. So here’s a kid-related post.

I have been using this infra-red wireless keyboard on my media PC for about a year now. I have always been disappointed with its poor range and short battery life.
Instead of expensive AAA batteries, it would definitely last longer on AA cells. Four cells would also supply a higher voltage than three and so give greater output power. First thing to do is void the warranty and take it apart.
Then I simply grabbed a 4xAA battery holder and soldered the wires in place of the existing 3xAAA battery compartment. I loaded up the batteries to see if it would work.
Finally since the battery holder would not fit inside, I glued it to the underside with some hot glue. After testing I was pleased to note that the range was much increased. I can use it while leaning back on my lounge and I don’t have to carefully aim it anymore. With the larger batteries on the case, it should be quite a while before I need to change them.