Skip to content

Save a neon-vr recording - #2

Open
rennis250 wants to merge 1 commit into
pupil-labs:mainfrom
rennis250:save_recording
Open

Save a neon-vr recording#2
rennis250 wants to merge 1 commit into
pupil-labs:mainfrom
rennis250:save_recording

Conversation

@rennis250

Copy link
Copy Markdown
Contributor

No description provided.

…ve gaze to npy file and video to MP4; Add functionality to start a Neon recording and send vr.rec.begin/end events
Comment thread record.py
dest="record_gaze",
)
parser.add_argument(
"-nr",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

single letter or remove

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Comment thread record.py
import threading

def gaze_saver(q, output_path):
import numpy as np

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would probably move this import bellow queue and threading imports

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright!

Comment thread record.py
if gaze is not None:
if is_first_gaze and args.record_gaze:
is_first_gaze = False
estimate = client_gaze.device.estimate_time_offset()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we simply didn't see that you already get a clock offset.

Comment thread record.py
)
cv2.circle(undistorted, point, 10, (0, 0, 255), 2)

if container and frame:

@JurajVincur JurajVincur Nov 13, 2025

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if we should mix it here saving video could be completely independent via on_packet like thing

def on_packet(packet, codec, pts):

although perhaps changed to non blocking manner too
we can't skip frames anyways

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We had originally put it in on_packet, but I think then it saves the full VR display, not the split with correction, and without gaze?

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

Successfully merging this pull request may close these issues.

2 participants