MobileRoboticsSkoltech / OpenCamera-Sensors

Android app for synchronized recording of video and IMU data with advanced camera options, useful for 3D reconstruction, SLAM, AR, video stabilization. Supports remote control over network.
GNU General Public License v3.0
176 stars 19 forks source link

Get timestamps for each frame of video #77

Open yhabib29 opened 2 years ago

yhabib29 commented 2 years ago

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 !

anastasiia-kornilova commented 2 years ago

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

yhabib29 commented 2 years ago

@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 ...

anastasiia-kornilova commented 2 years ago

@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.

yhabib29 commented 2 years ago

I see, but what I get is:

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 ...

anastasiia-kornilova commented 2 years ago

@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.

yhabib29 commented 2 years ago

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 ?

anastasiia-kornilova commented 2 years ago

@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.