Support pre v1.3/r0.21.0 recordings in v1.16 #1668
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Deprecated Recordings
Previously released versions of Pupil Player v1.16 do not support recordings created with
v1.2or earlier, andr0.22.xor earlier.This was due to the fact that these recordings are missing meta information that is required for the upgrade to our new
Pupil Player Recording Format 2.0. For details see "Missing Meta Information" below.With this PR, instead of aborting with a "Recording too old" warning, Pupil Player will attempt to infer the missing values from other data in the recording. This inference is not perfect and results in imprecise values and might cause issues when converting recorded Pupil time to wall clock time. For details see "Missing Meta Information" below.
Upgrading will only work in Player v1.16
Since this inference is limited, we will remove the upgrade functionality for deprecated recordings in v1.17. This means, that if you want to open a deprecated recording in v1.17 or later, you will have to convert them to the new format using v1.16 first.
Missing Meta Information
Specifically the following keys in the
info.csvfile are missing:Start Time (System): Recording start time in Unix epochStart Time (Synced): Recording start time in Pupil timePupil Player assumes that these timestamps were measured at the same time. This allows for the after-the-effect synchronization of Pupil data with externally recorded data that uses the Unix epoch.
Their value can be inferred from the existing recording, given a roughly known imprecision:
Start Time (System): The system start time can be inferred using the existingStart DateandStart Timefields (precision: one second). Unfortunately, theStart Timeis subject to the system's timezone whileStart Time (System)is not. Therefore, its inference is off by the recording's amount of timezone offset.Start Time (Synced): This timestamp can be replaced by the earliest known recorded video timestamp in the given recording. In this case, the inference error depends on the startup delay of the cameras. This delay is typically less than a second for Pupil Capture recordings, and 2-5 seconds for Pupil Mobile recordings.Incorrect Playback
In some cases, deprecated recordings might not be played back correctly in Pupil Player. If this is the case for you, please contact
[email protected]for support.