Re: [caer-users] Access initial timestamp in .aedat4 file

99 views
Skip to first unread message

Luca Longinotti

unread,
Apr 21, 2020, 3:24:38 PM4/21/20
to dv-u...@googlegroups.com, bkmor...@gmail.com
Hello, tsOffset is the initial timestamp when the camera module first
started streaming its data. It is intended to be used to manually align
multiple synchronized cameras.
If you've waited some time before starting the recording, that would
explain the 94 seconds time difference. If you want the initial
timestamp, then the timestamp of the first event recorded should do it.
All timestamps are in microseconds, starting from the Unix epoch, so
you can easily convert them back into real-time.
Hope this helps, have a nice day!

On Thu, 2020-04-16 at 03:12 -0700, Moritz Beck wrote:
> Hi,
>
> I'm using the dv-python package to process events. Is there any
> information in .aedat4 file included that gives me the initial
> timestamp the camera used? I've found this one but I'm not sure what
> it actually says:
>
> f._name_info_map['events']['tsOffset']
>
> It gives me some sort of timestamp (I assume in usec) but if I
> compare it with the first event that is triggered there is a time
> difference of over 94 seconds.
>
> Thanks for your help! Kind regards
>
> Moritz Beck
--
Luca Longinotti (llongi)

Software Engineer
iniVation AG - https://inivation.com/
Zurich, Switzerland
Office: +41 44 500 32 14

Support - https://inivation.com/support/

Luca Longinotti

unread,
Sep 16, 2021, 8:31:57 AM9/16/21
to caterina....@gmail.com, dv-u...@googlegroups.com
In the AEDAT3.1 to 4 conversion, we look at the #Start-Time: header
line at the top of AEDAT3.1 files, and add the offset from there to the
event timestamps in the AEDAT3.1 data.
Basically:
AEDAT4 timestamp = AEDAT3.1 timestamp + Start-Time-Offset
where the offset is the header line converted to microseconds since the
Unix epoch (see https://en.wikipedia.org/wiki/Unix_time ).
--
Luca Longinotti (llongi)

Head of Embedded Platforms
iniVation AG - https://inivation.com/
Zurich, Switzerland
Office: +41 44 500 32 14


-----Original Message-----
From: caterina Caccavella <caterina....@gmail.com>
To: Luca Longinotti <luca.lo...@inivation.com>
Subject: Messaggio privato su: [caer-users] Access initial timestamp in
.aedat4 file
Date: Mon, 13 Sep 2021 02:06:16 -0700

Good morning,
I am working with the DVS gesture datasets which can be downloaded in
aedat3.1 version. After have converted the file in aedat4 with DV, I
have some issues in understanding the correspondence between the
initial timestamp and the one indicated in a CVS file as the start
time. Could you explicitly explain how to do the conversion you
mentioned for Unix time etc, please?
Thank you very much in advance for your help.

Best regards,
Caterina Caccavella

Il giorno martedì 21 aprile 2020 alle 21:24:38 UTC+2 Luca Longinotti ha
scritto:
Reply all
Reply to author
Forward
0 new messages