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

Synchronize start of videos during recording export #5

Open
beasteers opened this issue Jul 20, 2022 · 0 comments
Open

Synchronize start of videos during recording export #5

beasteers opened this issue Jul 20, 2022 · 0 comments

Comments

@beasteers
Copy link
Contributor

beasteers commented Jul 20, 2022

Now we generate videos by converting (and resampling to a constant fps) but different video streams may have different start timestamps which means that videos may be out of sync on the dashboard.

Where the conversion happens:
https://github.com/VIDA-NYU/ptgctl/blob/main/ptgctl/tools/local_record_convert2.py#L122-L141

The ways to fix this are either:

  • find the maximum timestamp and drop frames across all streams before that timestamp
  • find the minimum timestamp and replicate the start frame for those frames.

(do this for audio too, and end times as well?)

@beasteers beasteers changed the title Synchronize start of recording videos Synchronize start of videos during recording export Jul 20, 2022
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

1 participant