Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lsl streams timestamps do not match - openvibe #333

Open
fd301 opened this issue Aug 13, 2018 · 5 comments
Open

lsl streams timestamps do not match - openvibe #333

fd301 opened this issue Aug 13, 2018 · 5 comments

Comments

@fd301
Copy link

fd301 commented Aug 13, 2018

I use pylsl to receive one lsl stream generated from openvibe and another lsl stream generated via python.
The timestamps I receive are not synched. In particular the opevibe timestamps are not related to the time created_at.

Do you have any idea how to resolve this issue?

Many thanks

@jfrey-xx
Copy link

Hello,

I stumbled on a similar issue, actually OpenViBE forces timestamps when it pushes value, using some local clock. See the second parameter passed to "push_sample" in https://gitlab.inria.fr/openvibe/extras/blob/master/plugins/server-extensions/lsl-output/ovasCPluginLSLOutput.cpp (if you are using the acquisition server to stream LSL) or in https://gitlab.inria.fr/openvibe/extras/blob/master/plugins/processing/network-io/src/box-algorithms/ovpCBoxAlgorithmLSLExport.cpp (if you are using the LSL box in the designer).

My own fix: just remove this timestamp, then the default LSL clock will be used, and the synchronization works as expected afterward, e.g. when an XDF file is loaded. Not that practical since you need to compile OpenViBE from the source, but might be the only / best way to get accurate timing.

I probably should have reported to upstream months ago...

@jfrey-xx
Copy link

jfrey-xx commented Aug 13, 2018

(I submitted a bug report related to this issue on http://openvibe.inria.fr/tracker/view.php?id=197 )

@dmedine
Copy link
Contributor

dmedine commented Aug 20, 2018 via email

@fd301
Copy link
Author

fd301 commented Oct 31, 2018

I build openvibe from source and I replaced the lsl library with:
ftp://sccn.ucsd.edu/pub/software/LSL/SDK/liblsl-C-C++-1.12.zip
The lsl_api.cfg is located at the openvibe dependencies folder (not sure that this is the right place).

Nevertheless, if I enable LSL _EnableLSLOutput openvibe acquisition server crashes on 'Play'.
I understand this issue most probably should go to the openvibe emailing list.

@dmedine
Copy link
Contributor

dmedine commented Oct 31, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants