Recorded videos are sped up and have 100fps
I have used the BioTracker recently and in the past and I have recorded some Videos. I noticed now that there are some framerate issues.
I have the following files are available:
$ file *
CameraCapture2020-05-15T14_28_19_13654.avi: RIFF (little-endian) data, AVI, 2048 x 2048, >30 fps, video: XviD
CameraCapture2020-05-15T14_30_12_13654.avi: RIFF (little-endian) data, AVI, 2048 x 2048, >30 fps, video: XviD
CameraCapture2020-05-15T14_31_40_23972.avi: RIFF (little-endian) data, AVI, 2048 x 2048, 25.00 fps, video: XviD
CameraCapture2020-05-15T14_32_52_24051.avi: RIFF (little-endian) data, AVI, 2048 x 2048, 25.00 fps, video: XviD
CameraCapture2020-05-15T16_23_26_25488.avi: RIFF (little-endian) data, AVI, 2048 x 2048, 25.00 fps, video: XviD
CameraCapture2020-05-15T16_24_51_25488.avi: RIFF (little-endian) data, AVI, 2048 x 2048, 25.00 fps, video: XviD
CameraCapture2020-05-15T16_56_23_436.avi: RIFF (little-endian) data, AVI, 2048 x 2048, 25.00 fps, video: XviD
CameraCapture2022-04-01T15_01_18_447477.avi: RIFF (little-endian) data, AVI, 2048 x 2048, 30.00 fps, video: XviD
CameraCapture2022-05-03T13_03_34_145079.avi: RIFF (little-endian) data, AVI, 2048 x 2048, >30 fps, video: XviD
CameraCapture2022-05-03T14_09_44_881384.avi: RIFF (little-endian) data, AVI, 2048 x 2048, >30 fps, video: XviD
CameraCapture2022-05-03T17_43_37_1944597.avi: RIFF (little-endian) data, AVI, 2048 x 2048, >30 fps, video: XviD
CameraCapture2022-05-03T17_54_31_1944597.avi: RIFF (little-endian) data, AVI, 2048 x 2048, >30 fps, video: XviD
The files with >30fps
have exactly 100fps and appear sped up, maybe by factor 4.
Note that there are files from 2020 that have this problem, then there are files that do not have the problem and the new ones do have the problem again.
I think I remember that it was maybe necessary to set the framerate explicitly in the BioTracker and I remember that I did not do this in the 2022 session. Maybe I did this in the videos that have 25 and 30 fps, which would also explain the inconsistency.
So if this is true that:
- the framerate has to be set by the user explicitly
- if the user fails to do so, the BioTracker records videos that are sped up
then I think this needs to change.
My suggestion would be:
- decide on a sane default framerate (e.g. 25Hz or 30Hz)
- let the user change it
- save the frame rate in the BioTracker config
- never record videos that are sped up