Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record accelerometer, gyroscope and compass sensors and raw output #9

Open
epsi1on opened this issue Dec 31, 2023 · 0 comments
Open

Comments

@epsi1on
Copy link

epsi1on commented Dec 31, 2023

Hi, Thanks for sharing such great app.
In some cases, it is important to the lat and long at a specific frame. for example garmin dashcam uses a RIFF files to store gps and acceleration data in the same video file (take a look at here) but I think that would be hassle while it could be saved in another xml file.

I would like to suggest you to include other sensors as well to output, which user can use it for post process:

  • Gyroscope
  • Comass
  • Accelerometer

Also something for syncronizing the video with the data. An .xml output would be best i think. maybe something like this:

<Datas videoFileName="abc.mp4">
  <Data frameNumber="120">
      <gps lat="1.23" lon="3.45" alt="6.78" speed="9.01"/>
  </Data>
  <Data frameNumber="154">
      <accel x="1.23" y="3.45" z="6.78"/>
  </Data>
  <Data frameNumber="154">
      <compass x="1.23" y="3.45" z="6.78"/>
  </Data>
  <Data frameNumber="200">
      <gyro x="1.23" y="3.45" z="6.78"/>
  </Data>
<Datas>

Each <Data> element relates to a sensor data and relates to a specific frame of video. not sure but i think it would be easy to find out the frame number of video. For example user knows if video file is 24 frame per second, the frame number 120 relates to 5'th second of video. (120 / 24 = 5)

The content of <Data> element is either gps, accel, compass or gyro elements.
this way one can very precisely synchronize the data with video output for post process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant