Hello,
I want to extract GPS data that is encoded inside a Text track inside an MP4. I would like to be able to get at that data in real-time as the video is played, so I can display it, chart it or whatever.
As an aside, I can view the encoded data using the vlc application by enabling the subtitle track. I can also use "avconv" to extract the subtitle track to a text file and I have successfully decoded all the GPS data contained within that track, so I know in principle this should be possible.
My problem now is to synchronise that with the video so the current position and heading can be plotted on an interactive map. My ideal solution would be to be able to register a callback through libvlc to notify my application each time new subtitle data is available. What I would want from libvlc would be the "raw" subtitle text - I expect my own application to do the decoding of the proprietry GPS format given the raw "text".
So what I am hoping for are some pointers as to where I should start with vlc to implement such a feature - do I need to write a new vlc plugin of a particular type, should I be looking at adding a callback to an existing piece of vlc, or something else? Is there a good example to follow from any existing plugin?