Skip to content

Commit 7b3a6ea

Browse files
committed
start realsense before audio
1 parent d0f9e2e commit 7b3a6ea

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

vao-recorder.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ def start(self):
360360
for stream in self.streams:
361361
stream.start()
362362
# Write start timestamp
363+
# ! Can this cause delay in starting the video recording?
363364
with open(self.output_folder / 'audio_start.txt', 'w') as f:
364365
f.write(str(datetime.now().timestamp()))
365366

@@ -437,7 +438,9 @@ def record(
437438
config = get_config(config_path)
438439
output_folder.mkdir(exist_ok=True, parents=True)
439440
# Setup recording
440-
recorders = [r(config, output_folder) for r in Recorder.__subclasses__()]
441+
recorders = [
442+
r(config, output_folder) for r in (RealSenseRecorder, AudioRecorder)
443+
]
441444
# Start the recording
442445
for r in recorders:
443446
r.start()

0 commit comments

Comments
 (0)