Hi, In my application I need to capture/record video and simultaneously log sensor data which I receive via Bluetooth (about every 10ms), to a file. This works fine. Now I need to "*synchronize*" the video data and the received sensor data, i.e. I want to link the sensor data with a ms timestamp to the captured video, so that I know (more or less exactly) what sensor data belongs to what time in the video. In the best case I have a connection VideoFrame <--> Sensor data, but I know that this is hard to achieve since the frame rate of the video is not constant etc...
Can you give some hints how I can implement this. Right now I am using a simple approach where I set a *timestamp (t1)* right after I start the recording of the video and before I start to receive sensor data, and a *timestamp (t2)* when the first sensor data arrived. Then i calcluate *t = t2 - t1* to know the time in the recorded video. Are there any more advanced approaches you can think of ? Kind regards. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.