As per my thread: https://dashcamtalk.com/forum/threads/a119-first-impressions.20258/ I needed a tool to extract the GPS data from MP4 files recorded by A119 camera.
The tool needed to be linux friendly, and as far as I knew there was none.
I have finished the script that exports the GPS Data from Novatek MP4 files.
At this stage it is very crude.
I only tested it in SE hemisphere, and only with A119 produced files (might work with A118 MOVs and possibly with other Novatek powered cameras). Also only tested in linux, but it should work in any environment that has python (it requires os,sys, struct and getopt libraries).
The script extracts the data in GPX format. Initially I wanted to use KML format (mostly out of ignorance), but after studying it I found it somewhat restricted (specifically there is no provision to store instantaneous speed for each waypoint).
The GPX format took a while to get it right (if it is right )... The MP4 container required a lot reading to understand internal structure. I wander why manufacturers use proprietary containers and not something like mkv.
I possibly screwed up and did everything/something in completely wrong way, but hey, you are welcome to do it better .
Please note: I am no programmer!
Here is the script:
http://sergei.nz/files/nvtk_mp42gpx.py
Future stuff:
better error handling.
test with other mapping software (only tested with google maps).
testing with other Novatek powered cameras.
testing in other hemispheres.
multiple input files (for continuous single output).
Thanks to @jokiin, @viofo and @traveler for pointing me in the right direction.
The tool needed to be linux friendly, and as far as I knew there was none.
I have finished the script that exports the GPS Data from Novatek MP4 files.
At this stage it is very crude.
I only tested it in SE hemisphere, and only with A119 produced files (might work with A118 MOVs and possibly with other Novatek powered cameras). Also only tested in linux, but it should work in any environment that has python (it requires os,sys, struct and getopt libraries).
The script extracts the data in GPX format. Initially I wanted to use KML format (mostly out of ignorance), but after studying it I found it somewhat restricted (specifically there is no provision to store instantaneous speed for each waypoint).
The GPX format took a while to get it right (if it is right )... The MP4 container required a lot reading to understand internal structure. I wander why manufacturers use proprietary containers and not something like mkv.
I possibly screwed up and did everything/something in completely wrong way, but hey, you are welcome to do it better .
Please note: I am no programmer!
Here is the script:
http://sergei.nz/files/nvtk_mp42gpx.py
Future stuff:
better error handling.
test with other mapping software (only tested with google maps).
testing with other Novatek powered cameras.
testing in other hemispheres.
multiple input files (for continuous single output).
Thanks to @jokiin, @viofo and @traveler for pointing me in the right direction.
Last edited: