OpenStreetMap logo OpenStreetMap

Videomapping

Posted by muffu on 11 February 2012 in English.

I got recently an action camera which I used to record recent trips abroad for mapping one country I've worked on a long time.

Pros (or con?): huge amount of data is available on a video. A week long trip resulted about 120GB of HD 720p quality video to support the traces. That will take a long time to go analyze!

When I leaved I had no idea how to use the video but I was sure I'd figure out some way. After returning with a lot of data I found out there is a videomapping plugin for josm (not finished) but unfortunately it work with Windows only I guess.

Not being a programmer I was short of tools. No way I'd quicly learn java to improve josm. So, I did a script to export pictures every second, timestamped them and used them in josm along with traces. Works ok, but split second details are not available unless I watch the video on anoter tool. I lose the audio detail on it as well. Still a great means for mapping, no more missing details as is usually is with a camera or when using traces and memory.

As video equipment is getting very cheap, I home well see some video support in Josm one day.

Email icon Bluesky Icon Facebook Icon LinkedIn Icon Mastodon Icon Telegram Icon X Icon

Discussion

Comment from [C3]Paradox on 11 February 2012 at 15:04

Bravo

Comment from JoshD on 12 February 2012 at 01:26

Could you share the script you used to do this? Others might find it useful.

I'm also interested in videomapping, and might get to working on the plugin someday. Could you share your opinions on what you'd like to see?

Comment from muffu on 12 February 2012 at 16:24

The script I'm using (on my linux box) is like this:

videfile=$1

echo Extracting frames at 1Hz rate
ffmpeg -i $videofile -y -ss 1 -an -sameq -f image2 -r 1 pic%05d.jpg

# Get video date/time from exif info
echo Initially set time/date for all files at the beginning of the video file
exiftool -CreateDate="`exiftool -CreateDate -S $videofile | sed 's/.*: //' `" *

num=0 #num of seconds to add # Files are at 1s difference
for file in pic*.jpg
do
exiftool -CreateDate+=0:00:$num $file # adjust file 1 +1s, file2 +2s, ..
num=$(( $num + 1 ))
done

Comment from muffu on 12 February 2012 at 16:29

I think videomapping plugin has some great ideas listed on the wishlist.

Basically you get a long way if you can see the video, moving marker and perhaps some adjustable guide lines to hint the angle of view as a reference. Constant speed, fast/slow speed and picture by picture would be needed (as well as the audio track).

Sometimes it might be great to have two cameras such as forward and rear facing cameras, so multiple windows would be great. Calibration should be finer than 1s which is coarse at faster speeds.

Comment from Sanderd17 on 12 February 2012 at 22:25

If you add your information to the Wiki, it's there to stay (maybe you did, I didn't look for it).

Log in to leave a comment