Page 1 of 1

Extract GPS data from Video File

Posted: March 29th, 2010, 3:13 am
by kobyg
Hi,
My Sony HD camera has a built-in GPS and it stores the GPS location in the Video file.
Can I extract that data using an expression or a script ?

For still images, the camera saves GPS data in the EXIF properties of the JPEG file (then uploading pictures to Picasa recognizes this GPS data and automaticaly positions the picture on the correct location on the map).
Does Video files have EXIF too...?
Can a script or expression access it?

Has anyone experienced with EXIF extraction?
Any thougts or ideas would be thankfull!

Thanks,
Koby.

Re: Extract GPS data from Video File

Posted: March 29th, 2010, 8:03 am
by Dan Ebberts
If it's metadata, you should be able to get at it with a script. It can be tricky, but it should be doable.

Dan

Re: Extract GPS data from Video File

Posted: March 29th, 2010, 9:30 am
by kobyg
Thanks Dan.
Could you point me to some example of a script reading the metadata?
Is the EXIF is the same as metadata...?

Thanks,
Koby.

Re: Extract GPS data from Video File

Posted: March 29th, 2010, 9:48 am
by Dan Ebberts
The JavaScript Tools Guide has a whole chapter on scripting access to metadata:

http://www.adobe.com/devnet/scripting/p ... de_cs4.pdf

There's also a bunch of stuff here:

http://www.adobe.com/devnet/xmp/

It looks like EXIF is one of the supported schemas.

Dan

Re: Extract GPS data from Video File

Posted: March 29th, 2010, 1:44 pm
by kobyg
Many thanks Dan!
I will check those links, and if I come up with a script that can help others I will post it here.

Thanks again,
Koby.

Re: Extract GPS data from Video File

Posted: March 31st, 2010, 3:20 pm
by lloydalvarez
Hi Koby,

Both my Batch Search and Replace Paths http://aescripts.com/batch-search-n-replace-paths/ and my Photo Orientation Fixer http://aescripts.com/photoorientationfixer/ scripts work with metadata, the later works with EXIF data specifically. Hope you find them helpful and if you come up with a cool script that you'd like to host on aescripts.com let me know.

Lloyd

Re: Extract GPS data from Video File

Posted: March 31st, 2010, 3:32 pm
by kobyg
Thanks Lloyd!
An example is what I was looking for!
I'll certainly check out your scripts.
And I will let you know if I come with something nice and benefitial to others.

Thanks again!
Koby.