panoramas from (low quality) movies [update]

whenever i’m spending a day outdoor, i love to take pictures, many of them turn out to be panoramas.

sometimes i leave my camera at home and only have my mobile phone with me. shoothing panoramas with the iphone is possible with panolab [link opens itunes], but very cumbersome. and i try to keep the annoyance of nina as low as possible while stopping on the slopes, so fiddling with my phone for longer than a minute or two is not an option.

recently i was thinking about a quick-and-dirty way of creating panorams with the iphone: wouldn’t it be possible to extract the images of a movie shot while panning the scenery and stitch those together to generate a panorama? today was the perfect way to test this out, on the slopes of the wonderful stockhorn.

the whole process is fairly easy, you only need

all these – very fine – pieces of software are freely available, most of them even free as in beer and as in speech.

step 1:
shoot a movie.

below are the movies i’ve used for this tutorial. both are made with the excellent cycoder.app, only for jailbroken iphones. use any other movie if you don’t have an iphone :) the movies are 384×288 pixels in size, as shown below, just press the play-button.

step 2:
get the movies off your iphone.

cyberduck and SFTP are my weapons of choice, YMMV, but there are tons of tutorials on the web, here’s one for the mac and here’s one for windows.
now you should have some movies on your hard-disk. cycoder has the nice feature to produce quicktime-compatible .mov-files, if you don’t have one of those handy, again, YMMV. (use the excellent handbrake to convert to and fro). quicktime is nice for the next step.

step 3:
import the movies into imageJ.

if you’re on a mac, this is just simple drag-and-drop, on windows you might be quicker altogether if you convert your movies to .avi-files, since installing quicktime for java can be a bit of a hassle, but can be done.

this opens your quicktime movie as a stack of images you can then scroll through. this image-stack can then easily be exported as an image-sequence using “File > Save as > Image Sequence…”. rotate the images if you’ve been dumb enough to hold the iphone wrong :)

then you’ll have a bunch of single images on your harddisk. if you’ve panned quite slowly like i have done, you’re probably gonna have much too many images (167 for the first and 139 for the second movie) to easily stich a panorama. for these movies, i’ve removed some images from the stack using the slice remover plugin. remove slices that are unnecessary like the ones at the beginning and the end, where your glove covers the lens. now having 20 and 32 images from both movies, proceed to the next step.

step 4:
import the images from the step above into hugin, align and stitch.

yes, that’s it, it’s really that easy. for the movies shown above i’ve also deleted some bad control points and stitched the panoramas normally and enfused, but this is entirely optional.the end-result looks like the images below. click them to see them bigger.

stockhorn_panorama1_fused.jpg
stockhorn_panorama2.jpg

i know that both panoramas are not perfect. both are quite small, especially the second one has some artifacts and both have varying exposure. but keep in mind that i’ve only bothered nina for 29 seconds, the total time of both movies. not too shabby!

update:

arru from sweden left a comment about extracting the frames of videos using VLC, which is great, because it plays pretty much any movie-format.

since i couldn’t find it, i asked him to outline it for me via email. he agreed that i share his howto, which you can find below:

Extract frames in VLC:

  • Open VLC preferences, select “all” (as opposed to “basic”)
  • Go to Video->Output modules
  • Select ‘Image video output’ (this must be reverted to ‘standard’ when you’re done, to use VLC as a normal video player again)
  • Flip down the subgroup next to Output modules and select Image file’
  • Choose ‘PNG’ as format (JPEG works too, but there will be some unnecessary quality loss)
  • Set ‘recording ratio’ to 10 (determines the number of video frames skipped between images – may need to experiment with this value if images don’t overlap correctly)
  • Press ‘save’ to exit VLC preferences
  • Open and play the video in question as you normally would (notice: there will be no picture – sound however, if applicable, and the VLC controls will move to show you the progress of the conversion)
  • Images are saved to the root of the main HDD on Mac OS X ( / ), on Windows I can only assume it will be C:
  • Don’t forget to reset step 2 to ‘Standard’ when you’re done
  • Throw images into Hugin and run one of the autopano scripts, and so forth

Thanks for that info, Arru!

that’s how my heart beats

whoever follows me on identi.ca (or on facebook for that matter) knows that i’ve spent a noon lying in a tight and noisy tube. at the inselspital they’re always looking for gunia pigs for mri-studies, and i’ve been there (for the second time now). the reward you get afterwards is a dvd with the images of your bodypart they imaged, the last time it was my head, now – since they’re working on spectroscopy of the heart muscle – i got images of my beating heart and my torso.

and since there is a wonderful free dicom-viewer for the apple platform, osirix, i’ve tried to make some nice videos of my inner workings. so without much further ado, here’s the videos:

my beating heart, axial view:


my heart - axial view

my beating heart, sagittal view:


my heart - sagittal view

a little fly-around of my torso:


my torso - rotating

all the images have been made with double triggering, once a trigger for breathing, to compensate for the motion of the internal organs, and on top of that with a trigger on the heart-beats, to actally be able to image a full beating sequence of my heart. the funny thing is, that the people that performed the study had to ask me to breathe a bit faster, since one imaging cycle took them so long :)

oh, and BTW: here’s one video and one view of my head. whoever tells my the reason that a piece on the back of my skull is missing wins a price.

tauchen in cadaques

wie vielleicht schon zu erraten war, bin ich über pfingsten in cadaques in spanien am tauchen gewesen.

so war jedenfalls der plan. leider konnten wir aufgrund des schlechten wetters und starken ostwindes nicht so viel tauchen wie wir wollten. aus den geplanten sieben tauchgängen wurden dann nur drei in relativ unspektakulären buchten. trotzdem sind über die tage ein paar fotos entstanden, die finden sich in meinem cadaques-set auf flickr oder in der bilder-abteilung. auf flickr sind zusätzlich zu den beiden videos hier auch noch zwei andere filmli zu finden.

wen’s interessiert findet bei den winfields in in ein paar tagen auf der divecenter-seite noch weitere fotos.

fuchs.tv mal etwas anders [video]

möchte-gern-nationalrat thomas fuchs hat ja eine wunderschön proppere wahlkampfplattform auf fuchs.tv, auf der mit netter musik untermalte filme über fuchsns ambitionen und pläne gezeigt werden. ist ja ganz nett, aber das hier ist ziemlich viel lustiger: ein remix des videos von thommy f. dem grössten hustlah von bern, gemacht von dic-zh

ist vor allem richtig lustig, wenn mann sich vorher das original-filmli von herrn fuchs antut.

[via der wiederauferstandenen berner gazette]

ach und übrigens: ist euch auch schon mal die neue dock-animation am ende der youtube-filmlis aufgefallen?

Technorati Tags: , , , , ,

diving in the verzasca

as mentioned before i’ve been diving in the verzasca this weekend. now i’m uploading all the images to flickr. you can see the images in this set here.

the two videos below are videos i shot and uploaded to youtube, the first one shows ändu blowing some bubbles. while shooting the second one i nearly peed in my divesuit ’cause the thing that swam through scared me quite a bit, but see for yourself…




that’s a hummer i’d get

Suv11

this is a fine piece of craftsmanship and also a good political statement, the green hummer project.

This is the perfect SUV. Our SUV is healthy, friendly, non-polluting, simple, inexpensive, fun, and socially responsible. There are no black tinted windows to hide us from view. No air conditioning to further isolate us from the outside. No gas tank to fill and fill and fill. No greenhouse gasses pouring from the exhaust pipe. No frustration, no yelling, no honking, no road rage. No clocks to set, no alarm to annoy, no menus to scroll through. No video game system, DVD player, or GPS system.

they even have a page with videos you can browse through.

[via makezine]

the it crowd

 Entertainment Tv Microsites I Itcrowd Images Gallery1while on the way to oberwald i finally found some time to watch the it crowd (on my psp). since cory doctorow posted about that new show on boingboing, i’ve been downloading all the episodes of the ultimate geek comedy.

the show is about a sysadmin duo. the two ubergeeks moss and roy [1] get a new boss who has far better knowledge of shoes than of computers. each of the first three episodes i’ve watched up to now is hilarious, the people that rode on the train with me must have thought i’m utterly insane, because i couldn’t help to chuckle and laugh out loud. it’s not the plot that is so funny, but the fact that each episode progressively gets weirder and belly rupturing funny.

i can’t wait ’till the next episodes are aired, i’m in geeky television heaven.

since users outside of the uk cannot directly stream the videos from the channel4 website, you have to fire up your preferred bittorrent-client and download away!

oh, and piece did use some samples of the show in one of his latest pieceocasts.

[via boingboing]

[1] moss writes an email to the fire brigade because he cannot remember the phone-number of the emergency services (the changed the number from 919 (or so) to something different – which is another hilarious joke by itself).

technorati tags: ,

video.google.com for psp

google revamped their video service. you can now buy a big selection of videos. but the more important thing (for me, personally…) is, that you can download pretty much every video, readily formatted for your psp/ipod/big box on the floor.

now i really need tho fork out those 15 bucks for pspware, so i don’t get that nag-screen when synching my movies over to my new gadget.

oh, and google earth is now officially out of beta and available for the mac, too.

there goes my afternoon….

[via the google blog]

technorati tags: , , ,

back street boys rule! (or so…)

click on the image on the left to check out this really hilarious viral back street boys video that xeni jardin linked on boingboing. it shows two basketball dorks in a chinese dorm performing a video of the back street boys (while their roommate silently frags away…). xeni is gonna talk about viral videos on NBC TODAY tonight (see here) and this video is gonna be the centerpiece of the show:

The centerpiece of Wednesday’s segment is a fan-made music video for the Backstreet Boys’ I Want It That Way. The homage is credited to “Two Chinese Students,” according to Google Video, and was uploaded there in July, 2005, after having been spotted on the China portal Sina.com.cn. Like AYBABTU, Numa Numa, Star Wars Kid, and the rest of its predecessors, this video now inhabits gazillions of otherwise productive desktops worldwide.

if you have major time to spare, you can check out some other funny videos on video.google.com, just search for “viral” and see your timeschedule melt!

[via boingboing]

the us of a is in deep trouble.

as other people, i really suffer with all the persons that are hit by the hurricane in the states. but if you watch those two videos below, you really get a sense on how deep the trouble is gonna be once all the news get trough.

the first video shows two reporters of fox news really freaking out while giving their impression of the crisis. you should watch both videos to the end to see the important part!

Geraldo-1 Hannity-Colmes-Smith-Rivera-freak-in-NO.wmv (5.1mb .wmv-file).

the second video shows kayne west yelling a rather unplanned “George Bush doesn’t care about black people” while on a show with mike myers:

Kayne-1Kayne-West-Bush-Black-People.wmv (4.1mb .wmv-file)

[via boingboing, glider (or go here) and technorati]

technorati tags: , ,

i’m off to go and buy an ipod [2nd update]

’cause they now come with tetris. i’m now really gonna buy a new one. or shall i wait ’till after wwdc next monday?

[via engadget]

update: hm, raph just told me that ipodlinux now comes with tetris (it didn’t in january…), so i might just wait a litlle bit more….

2nd update: wow! pt just managed to view videos on an ipod. this leaves for some speculation. see here for more info on this.

weird video

Belindaif you’d like to start your week wirh a really weird video, then you might want to step over to pieceoplastic.com. jan posted a link to a video of belinda bedekovic who plays a weird instrument really weird. you can either watch the video as a flash-file or download the 32mb divx-encoded .avi. quicktime refuse to play it, so you might want to grab vlc, which is always the best candidate for those weirdo videos (and all formats :-).

as jan said it: holy mackerel!!!!

ps: why are the comments closed, piece?

want a mini-dv cam? [update]

i cannot remember the last time i used my video-cam, so i’m selling it.
if you need one, go and grab it on ricardo.ch (or email me and i’ll delete the auction and sell it to you, bypassing the ricardo.ch-fees. i’ll even throw in all my home-videos for you :-) )

update: it’s sold already!

messengers caught on film [update]

the first few glimpes i’ve seen since the download started1 make it look like THE uber-messenger-movie, but i definitely need to go to bed now, i’ll download the whole movie tomorrow and let you know.
but be warned, the movie of a rider filming an alleycat through manhattan with his helmet-camera is a hefty 50 mb big!

update: after viewing the whole film today i got to mention that we’re all wussies here in bern.

[via memepool]

1: right-click on the .download-file, show package contents, and you’ll find a nice, but unfinished .mov inside the file

pongmechanik

i do own a pong for my telly (a really lucky finding at the local second hand store for 15 bucks) but this fully-analog pong from two german students is way more cool. it’s built with pulleys, strings and pieces of glass. go and visit their site and watch the video (in 10mb and 6mb-flavour) with amazement!

[via gizmodo]

kraftwerk

in case anyone of you didn’t go to the kraftwerk-concert* last wednesday or thursday in the reithalle or didn’t see the pictures of it in the blog-o-hood, then here are the ones i made:

k1k2k18k17k16k15k13k12k11k10k9k8k7k6k5k4k3

*as i told reto the day after, it was not really a concert, more a performance, because the visuals actually blasted me away, the music was pretty the same as on their records. as piece notes, a video of the show would be amazing (he links to two smallish videos in his post)

the ghostrider

in this months issue of wired there was a story about the great challenge.
although the whole thing is a military-sponsored thing it chatched me as a truly geeky adventure.
it’s a race from los angeles to las vegas. but the race is not a vanilla-flavoured race, instead it’s for driverless robotic cars which have to find their way completely autonomous.
the official course will not be known until two hours prior to race time and will only released as gps way-points. then the teams have these two hours to fiddle with their equipment, and then are forced to watch how their creation competes without the slightest possibility of interaction, the machine has to do it on their own.
it has to decide where to drive through, it has to decide how fast it can drive and all the other bits and pieces which a machine needs to consider to get from A to B as fast as possible.
of all the portrayed teams (scroll down a bit to see them), the berkeley-team has by far the most impressive setup: their ghost rider is a motorcycle, while all the other contestants rely on at least four-wheeled chariots of fire.
go and download the movies on the ghost rider-page (although they’re HUGE) and if you’re interested in that kind of stuff go and read the article in wired (although it’s far better on big pages and glossy paper :-)

gentleman, start your engines!

update: according to engadget (or actually extremetech) the ghost rider is not designed to win the race but only designed to get some government contracts, it’s not fast enough to complete the race in ten hours. what a disappointment!

war is fucking stupid!

take a look at these two videos:
first this video (mpg-video hosted on bushflash.com, about 4.6mb) which – rather graphically – depicts the killing of three men from a helicopter (and those soldiers don’t even add to the at least 8000 reported civilian deaths already!)
then this video here (.wmv-file, hosted by glider, about 1.1mb) where us soldiers repeatedly shoot a wounded iraqi and then describe it as: “It was a good feeling. Afterwards, you’re like, Hell, yeah, that was AWESOME! Let’s do it again!”

there’s nothing more to say than is already said:
by bushflash:

    This video was sent to me, and I’ll leave the interpretation of such, up to you. I won’t pass judgement on those responsible, as, of course, “They were only following orders”

by glider:

    It all just makes you so proud what we humans have accomplished in the past 6,000 years, doesn’t it?

[via bushflash and glider]