Anything can go here, in any language... except my native language Sinhala. Be cool... anybody is warmly welcomed! :)

Showing posts with label phone. Show all posts
Showing posts with label phone. Show all posts

How to Make a HelmetCam Using Your Nokia Smartphone

I have been a silent blogger for more than one year. It's actually one year and one month since I have published my last post on 10 January 2011. Things have changed a lot around me and now I'm not even using the Sony Ericsson phone mentioned in my last post!

Two things happened in the last year... on February I got a new phone as a gift from a friend, and on October I got a bike. That's it! Made in India, and called Hero Honda Hunk. It is said that this bike can topped to 112 km/h. For me that's not enough top speed, but this is one of the most stable bikes made in India. Most others waggle and vibrate, but Hunk is very stable at speed.



Due to the extreme excitement of the bike, I'd just forget to mention the phone! It's a Nokia 5230 and not that handy, but enough for my day-to-day activities. Same as most Nokia cameraphones, this one's camera is also not suitable for professional photography. But, its video recording is pretty good.

I really love to ride this Hunk... (despite of its gay name :-) ) it brings lots of excitement every time when it's over 100. Its stability at higher speeds, and stability when cornering, wheelies, stoppies... everything eventually tempted me to have a video collection of it. This is how I become interested in making a HelmetCam. I don't have much of equipments for this, and I've heard somewhere that a professional HelmetCam kit costs over US $200. So why not use my own cameraphone? Here, I'll explain how to get it prepared with a Symbian (Nokia) phone.

The simple setup is to wear your helmet, and then put the cameraphone in, and fasten it. This setup has a problem. Why? Whenever the touchscreen/ keypad hits your nose or somewhere in your face, there's a probability for video recording to interrupt. Or even it can dial emergency while you are on ride!

This is the time for SymDVR to shine. SymDVR is a very handy app which can turn your cameraphone into a DVR with lots of options. The main reason for using this app is, unlike your phone's in-built video recording application this allows you to lock the screen/ keypad while recording. This is a huge advantage as it also keeps the phone's backlight off while recording.


Other advantages include that it can calculate your riding speed using GPS and include as subtitles, landscape recording while keeping the phone in vertical position, etc.

Go to SymDVR homepage, download and install the app on your Nokia phone. Start the application, choose appropriate settings and start video recording. Once you start recording, you will see a Nokia Menu icon on the screen. Tap on it, and SymDVR will continue to record video, running in the background. Now it can be placed even inside your underwear without interrupting the record. :D

Be sure to have a strap for your phone. You can fasten the helmet's strap across phone's strap to make sure it's safe in case if your phone loosens inside the helmet and falls down on to the road. Other than that, the phone will fall onto the road making you distracted, eventually turning you into dead meat. If you don't have a strap, just go and buy. It won't cost much. This is important to avoid accidental distractions.
Image courtesy: fadbus.com


Now, we need to have is a full face helmet. We are going to need a full face helmet because then only it can be held between your face and the helmet.



If you plan to try this out in Sri Lanka, be sure to choose a helmet with a dark tinted visor. Most of the traffic cops are weird jerks, and if they see the cameraphone inside helmet they will remake the story as you were having a phone call while riding. (They just want you to invite them for a bribe). That's Sri Lankan traffic cops. So beware of them.

Firstly hold your phone vertically, and start recording on SymDVR. Then click on Nokia Menu icon to allow SymDVR to run in background, and lock the screen/ keypad. Even if you hold it vertically, SymDVR will record the video clip in landscape mode without having you to flip the phone, and without affecting the clip size.Then, while wearing the helmet, place the cameraphone in the helmet in the way shown in the photo below. It will fit between your face and the helmet.  Finally, cross the straps as described above.

In this setup, cameraphone fits between my face and helmet.


Make sure that your sight is not disturbed by the position of the camera. Letting it cover one eye and seeing the road by the other is prone for accidents. You need your both eyes to get the correct idea of distance to other vehicles on the road. If you still unsure why, read more about depth perception.

If it doesn't fit into your helmet you will have to find a workaround. A good suggestion that I have seen over the Internet is to use Velcro, but the problem is that you will have glue it onto the phone. :-/

Another suggestion of is to use a phone holder such as Nokia CR-119. You will have to remove the cone shaped part which in normal use attaches to a vehicle windshield. Carefully mount the phone into the holder facing the camera out. This arrangement will take more space inside the helmet, and it will fit better if your head is small. :-)

Make sure that camera is facing directly front. Start your ride, bang all over the city. Forget about the phone and enjoy your ride as much as possible.

A great feature that I really love on SymDVR is that it can measure your speed using GPS. This can be different from the actual speed , plus or minus 2 km/h, but with this feature on you don't have to look at the speedometer to get the speed on video. It also helps a lot to avoid distraction. Speed is recorded in a separate subtitle file (srt), and later you can use a video encoding software to merge it with the video file.

Once you are done, take the phone out, and open up SymDVR. Properly stop recording or otherwise you will end up with a corrupted video file. It will take a moment for the video file to be prepared. Once done, you can connect the phone to PC in Mass Storage Mode, and transfer the video file to your PC. It's in \SymDVR\ directory on your phone's memory card. This is by default hidden if you are using Windows on your PC.

After recording if you want to embed subtitles into the video, I recommend using mencoder. If you just want to trim the video file, you can use ffmpeg to get it done without affecting the video quality.



I have done some helmetcam videos using this setup. And.... here goes my first performing a stoppie somewhere near the end.........


And another I took at Malabe...


Well,... finally that's it! Thanks for reading.
Enjoy!!

K770i Camera Problem [ SOLVED ]

I'm using a Sony Ericsson K770i for more than 1½ years. Since I'm a novice and hobbist photographer my choice was that cameraphone.

Recently, the camera seemed to malfunction. When I open the lens cover, the screen switches between camera viewport and home screen repeatively. Sometimes it looked OK until I capture the scene. This behaviour made things more annoying.

First, I thought this could be a software problem. So I reinstalled the phone's software. But no luck. Then I googled for similar issues and Google took me to this forum discussion. But it also says the same thing.

After examining the camera's unusual behaviour carefully, I realized that there's a low probability of this being a software bug. The problem occurs randomly (not when I do a specific or unusual thing with phone's software). So this should be a hardware problem.

So what could be the problem? Casually I found it.

If you remove the back cover of your K770i phone, you'll see two triangular white tips at the right side of the camera. Now hold the battery with your middle finger and press the upper tip. What you see on screen is the camera viewport. Now try some captures. Will it switch between the home screen and viewport? No.

The problem is actually with the phone's back cover. Hundreds of times I have removed the back cover to change between SIM cards, memory sticks, etc. So it has become loose. It's obvious by looking at this phone, loose back cover means loose lens cover. Nothing wrong with lens cover itself. When you aim the camera, slight movemets of your fingers make the loose cover tighten and loosen, and that tip will press and release repeatively.

So I guess this might be a known issue with K770i. Time spans, back cover loosens.

To temporirily overcome the problem I adjusted the metallic plates in the lens cover. But I advice you not do so yourself and ask for support from a qualified technician.

So this is it. Don't waste time reinstalling any software. Thanks for reading the article.

Jaffna Tour (10/09/2010 to 12/09/2010)

If you've read my last post you'll find that I had a trip to Jaffna. Yes, it was last month, but I had nothing to do other than waiting for my internet connection to be restored. Sad. :( Early in the last month, our ADSL router seemed not working properly. So we handed it over to claim warranty. This caused me miss some important events including few career opportunities. I tried to use my mobile phone to connect, but it also failed. Although Airtel provides a very attractive and pleasing 'Youth Pack', no chance for us to use at least 100 MB of the 400 MB data bundle -- no 3G connectivity. I live in Ambalangoda, a well known coastal urban area in Sri Lanka, and I don't know why would such a big telecommunication service provider fail to offer a satisfactory service.

However, things are now OK as we got the router back yesterday evening. :)

---

Okey,... let's get back to the topic -- Jaffna. I had a chance to join a group of devotees who were on their way to Nainativu. For a person living in the Southern Province it's a fairly cheap travel to Jaffna. Since I'm a novice photographer I wanted to make this a chance to enjoy the art of photography also. So,... my K770i was back in action, althogh it has begun malfunctioning a bit. Here's the journey... (please click on each image to enlarge)


Turbine of Iranamadu power plant which was built by the LTTE.



This little guy seemed not ready to leave his pals at the camp.


Kilinochchi water tower which was destroyed by the LTTE.


A panorama of A9 highway at Elephant Pass. Camera is aimed along the way South.


Monument for the legendary hero of Hasalaka, Corporal Gamini Kularatne. [read story]


A pet aligator kept at a military camp, somewhere I don't exactly remember.


Nallur Kovil, Jaffna


Interior frescoes at Naga Vihara, Jaffna.


The narrow road from the peninsula to an island.
If my memory is correct this is the way to Mandativu, as we were heading to Nainativu.


Prawn traps set in the lagoon


Way to the boatyard. Boats are used as the transportation means to Nainativu (Naga Deepa).


The lord settling up the dispute between Chulodara and Mahodara [read story]


Cattles!
(I took this one sitting on the foot-board of the bus,
and I was not able to properly aim the camera with just one hand.
Also the bus was moving at a speed)


Lieutenant General Denzil Kobbekaduwa monument [read story]


Thewarikkulam tank - uncommon, but it was somewhere near the rest house.


Remainders of a/the railroad?


Dagabas at Kadurugoda Ancient Vihara - a landmark that you should visit!


Bhikkhuni (nun) Sangamitta statue


Statues at Naguleswaram Kovil


Cultivation in Jaffna


Nilavarai water well - a natural well believed to have no bottom
This is the last landmark we could vi
sit during the tour


The danger zone
Landmines are not yet 100% cleared in Muhamalai.
As you can see in the photo, only the narrow area surrounded by the ribbon is safe.
This is almost aside along the A9 highway.


The Monument of Victory!


Dignity of the LIONS... towards the infinity...!


I have many more. Not all are worthy shots, but I've kept them because I believe that in any particular graphic any viewer other than myself may see something that I may never see. They're available to download.


---

Since sunlight is too heavy in the North province, lighting quality of raw photographs were poor. Even automatic white balance settings in my camera didn't work. So I had to do some post-fixes such as curves and levels, with the use of GIMP 2.6 software. This is something usually I don't like to do becuse I believe that the photographer must retain the original lighting conditions whenever possible; simply because photography is the art of capturing light.

Overall I'm not satisfied with my photography experience during this tour. I even missed several 24k shots. If you're a reader of my Sinhala blog, you could know that I had a wondeful experience in our tour last year. This time it was with a group of devotees and the tour was to worship Nainativu and some other religious activities. No no time to wait and capture light... what do do? :(

Okey... thanks for reading! Have a great time!!


PS:
If you use Airtel be sure to keep your phone in 'Flight mode' to save battery. Your Airtel SIM will act as a world class dumb SIM, as it is required for nothing but keeping few other phone functionalities other than communication. X(  

K770i, Photography and Sorting Problem


Hi fellas, after few days... I'm back again with some cool cool stuff. My internship is over... and now I look for new career opportunities. Anyhow, I was not so quick to apply for a new job like others did. After completing my internship, I wanted a 'free time' of just one or two weeks to have a tour around Sri Lanka.

So, I just had the tour. Amazingly, it was to Jaffna. I live in  Southern Province and going for a tour in Jaffna is just a daydream for a busy man. However, in any tour I have two main intentions, photography and flirting :P . (however I was not able to photograph her since her mom was there :-O )

I have been using a Sony Ericsson K770i phone for more than one year and that phone has made me a photography freak. But recently, it had encountered a problem with it's memory stick reader compartment. This really made me upset as my phone now can't read memory sticks. However, by deleting some wallpapers, ringtones, themes and midlets I managed to make some free space of 15 MB in the phone's internal memory. This is just enough for 15 photos at maximum possible quality. Sad! :(

Luckily I found another phone (a Chinese phone without a brand) which had a memory stick installed and bluetooth also. So my plan was to transfer photos into the Chinese phone over bluetooth after taking each 15 photographs, and delete originals to make free space on my phone for new photos... just like using a revolver ;) . It worked, but since bluetooth file transfer took longer than expected each time I missed few imoprtant shots as well. :(


Sony Cyber-shot cameras use a specific file naming convention. It's the DSC (Digital Still Camera) prefix before the five-digit file number (i.e. DSC00001.JPG, DSC00002.JPG, ...). Due to my 'revolver methodology' sometimes when I make free space my phone seemed to reset the file number. This resulted duplicate filenames, and upon transfer those duplicates were added a Dup(xx) prefix in their filenames. However, thanks to the Chinese phone, during the three days of tour I have been able to take nearly 300 photos, including few panoramas.

After coming home I wanted to arrange all the photos in the correct timeline. Since file naming has already been messed up it was no use arranging them by name. So the next chance is to arrange them by the modification time (unix mtime). Due to some unknown reason, there were some small misconjusnctions in the series when arranging by mtime. It was like Elephant Pass coming before Kilinochchi when heading to Jaffna. :P

So here comes the sorting problem... it's not the Sorting Problem that we learn at the computer science lecture, although we use the tools built upon those theories. I realized that playing with ctime, mtime and atime is just a waste of time... so I was looking for another solution. Yes!, there is. It's the Exif data stored with each file. I can extract the DateTimeOriginal tag from Exif and arrange the file accordingly. I am a Linux geek, so rather than doing a web search for an automated GUI tool  I wanted to do it by myself.

So my ultimate plan was to write a bash script that will check date-time from each file and rename them in the correct order. Also, I wanted them to follow the same DSC convention. There's a handy command line tool for reading image exif on Linux. It's exifprobe. Just an apt-get install is enough to get it installed on the computer. With exifprobe we have another handy tool called exifgrep. Now let us go ahead.

Here we extract the origianal date-time:
$ exifgrep -n DateTimeOriginal DSC00001.JPG

and the output will look like,
JPEG.APP1.Ifd0.Exif.DateTimeOriginal = '2010:09:10 12:04:16'    # DSC00001.JPG:

What I want to do is to list each file against it's OriginalDateTime and then sort with Unix sort command. So it's just one more simple step, (I wanted the output in a text file too)

$ exifgrep -n DateTimeOriginal *.JPG | sort > sorted.txt

Here's a random portion of the output I got,

JPEG.APP1.Ifd0.Exif.DateTimeOriginal = '2010:09:11 12:18:54'    # Dup(01)DSC00046.JPG:
JPEG.APP1.Ifd0.Exif.DateTimeOriginal = '2010:09:11 12:20:39'    # DSC00048.JPG:
JPEG.APP1.Ifd0.Exif.DateTimeOriginal = '2010:09:11 12:23:13'    # Dup(01)DSC00052.JPG:
JPEG.APP1.Ifd0.Exif.DateTimeOriginal = '2010:09:11 13:31:30'    # DSC00001.JPG:
JPEG.APP1.Ifd0.Exif.DateTimeOriginal = '2010:09:11 13:31:49'    # DSC00002.JPG:
JPEG.APP1.Ifd0.Exif.DateTimeOriginal = '2010:09:11 13:32:38'    # DSC00003.JPG:
JPEG.APP1.Ifd0.Exif.DateTimeOriginal = '2010:09:11 13:34:07'    # Dup(01)DSC00004.JPG:
JPEG.APP1.Ifd0.Exif.DateTimeOriginal = '2010:09:11 13:48:40'    # DSC00007.JPG:
JPEG.APP1.Ifd0.Exif.DateTimeOriginal = '2010:09:11 14:01:13'    # Dup(02)DSC00008.JPG:
JPEG.APP1.Ifd0.Exif.DateTimeOriginal = '2010:09:11 14:24:49'    # Dup(01)DSC00014.JPG:
JPEG.APP1.Ifd0.Exif.DateTimeOriginal = '2010:09:11 14:25:43'    # Dup(02)DSC00015.JPG:

Now, it's the time to write the actual shell script. It's not a big deal actually, as you can see, so I don't need to explain.
#!/bin/bash

mkdir sorted
lines=`cat sorted.txt | wc -l`
for (( line=1; line<=$lines; line++ ))
do
  src=`cat sorted.txt | head -$line | tail -1 | awk '{ print $6 }' | cut -d: -f1`
  dest="DSC"`printf "%05d\n" $line`".JPG"
  cp $src sorted/$dest -v
done

Finally, after running this script I managed to get all photographs according to the timeline. I'll be writing a note about my Jaffna tour as soon as possible, and will be releasing some photographs under the Creative Commons Attribution-Share Alike 3.0 Unported license.

Few of them (such as File:JaffnaPeninsula.JPG) are already available on Wikipedia! :-)

See also:
Thanks for reading... have a nice day! :) :) :)

Followers

Subscription Options

 Subscribe in a reader

or

Enter your email address:

and
to inscrease

and make me happy. :)

Other Blogs by the Author

The Author

www.flickr.com
ශාකුන්තල | Shaakunthala's items Go to ශාකුන්තල | Shaakunthala's photostream
free counters
TopOfBlogs
Related Posts with Thumbnails