Skip to content

Question regarding timestamp generation #31

@Andrew12Liu

Description

@Andrew12Liu

Hi Aria team,

I am currently generating timestamps from a vrs file using two methods:

  1. Using the vrs CLI's command vrs extract-images with no special arguments whereby the jpegs have the timestamps.
  2. Using the aria-data-tool python bindings to loop through the data records to retrieve the timestamps.
while True:
     data_record = player.getDataRecord()
     yield data_record.captureTimestampNs
     if not self.vrs_provider.tryFetchNextData(stream_id, data_record.captureTimestampNs):
          break

Just curious as to why these two methods yield timestamps that are consistently 1 ms (0.001 seconds) different (ie. method 1 returns timestamps all ending in the digit 7 while method 2 returns timestamps all ending in the digit 9)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions