MobileRoboticsSkoltech/OpenCamera-Sensors

Get timestamps for each frame of video

yhabib29 opened this issue · 7 comments

Hello,

I am trying to record a video with synchronized IMU. I can get the IMU data with all timestamps but the application does not provide timestamps for each video frame.
Is it currently possible with the application ?

Thanks in advance !

@yhabib29 , could you, please, share logs produced by logcat when run application? Is this behavior reproducible on other smartphones?

@anastasiia-kornilova is the application supposed to save a file with timestamps for each frame or to save all frames instead of a video ? Because I do not have other device to try to reproduce this behavior.
I can share logs produced by logcat but do you have any filter to apply because the output of logcat contains all the system background logs ...

@yhabib29 , in default behavior it should be recorded video file and file with timestamps, additionally, you can enable "save frames" option as described here -- https://github.com/MobileRoboticsSkoltech/OpenCamera-Sensors#usage.
Yes, full log will be enough for me.

I see, but what I get is:

  • Recorded video file.
  • some images ("save frames" option).
  • Accelerometer data (CSV file).
  • Gyroscope data (CSV file).
  • Magnetometer data (CSV file)
  • IMU timestamps (CSV file).

None of these files contains the timestamp of each frame. It would be really convenient to have an option to save all frames with timestamps or a CSV file specifying the timestamp of each frame ...

@yhabib29 , without logs it is difficult to understand what the source of the problem. About saved images -- they should be saved with filename that is a timestamp. Saving all images is too heavy for processor, because in that case optimized codec is not used.

Ok I understand, it is indeed heavy to save all all images.
Then, what about saving the timestamp of each frame in a CSV file like the VIRec ?

I will try to record the log but I do not think it is relevant if your app is not supposed to save frame timestamps, is it ?

@yhabib29 , csv file with timestamps should be available in the same folder along with sensor records, app is supposed to save them and we have it working on couple of smartphones. So this issue occurs currently only on your smartphone and should be debugged.