Recently I noticed that iPhoto shows the location of videos as well as audio which got me thinking a wee bit. I checked out a few exif tools and found that the location was stored in exif data in the same way as photos.
After a few false starts I manage to do this:
The list of movies and locations are loaded from an xml file that is a very simple list:
<item><file>loch_humprey_02.m4v</file><loc>55.9323,-004.4594</loc><dc> 2011:08:02 21:27:10</dc></item>
I though xml was a good idea as it would allow reuse to display the movie in different ways. As the movies are shown the location is used to show a couple of images using the google maps static api. This first Video Map Experiment was cobbled together using a couple of command line tools (pcastaction, built into Mac OS X and ExifTool by Phil Harvey). I am not knowledgeable about shell stuff but it can often help do interesting things and once you figure it out is easy to reuse.
- Take videos on iPhone
- Trim on iPhone
- import into iphoto
- Drag videos from iphoto on to a field in a SuperCard project I’ve made.
- Click a button on said project which:
- Asks me to choose a folder
- Gathers locations & date/time from the video files
- Makes a copy of videos in the folder, shrinking file size & dimensions (this take a few minutes)
- Creates an xml file & and index.html file in the folder to show videos
I then upload folder to server via ftp.
I hope this could be an interesting way to tell a story, record a trip or describe a place. I’d be interested to know what other folk think.