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

Feat/recv2- Recording functionality #342

Open
wants to merge 5 commits into
base: development
Choose a base branch
from

Conversation

AdityaBITMESRA
Copy link
Contributor

Updated the create_new_vispy_canvas code to add video recording functionality

@AdityaBITMESRA
Copy link
Contributor Author

Hi sir @sanjayankur31. Can you take a look at this?

@sanjayankur31 sanjayankur31 self-requested a review April 22, 2024 14:16
@sanjayankur31 sanjayankur31 added the S: ready for review Status: ready for review label Apr 22, 2024
Copy link
Member

@sanjayankur31 sanjayankur31 left a comment

Choose a reason for hiding this comment

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

It doesn't currently work for me. Please see the comments (and test it out yourself to make sure it works)

@@ -14,7 +14,9 @@
import math
import random
import typing

import imageio
Copy link
Member

Choose a reason for hiding this comment

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

we need to add this to the setup.cfg too, under the vispy-common extra

def stop_recording(canvas):
nonlocal recording, frames
recording = False
output_file = f"output-{len(glob.glob('output-*.mp4'))}.mp4"
Copy link
Member

Choose a reason for hiding this comment

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

we generated the name of the output file above already---can we not re-use that here also?

@sanjayankur31 sanjayankur31 added S: waiting on reporter Waiting on reporter and removed S: ready for review Status: ready for review labels Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: waiting on reporter Waiting on reporter
Projects
Status: 🏗 In progress
Development

Successfully merging this pull request may close these issues.

[vispy viewer] investigate if we can record a video of the rotating image
2 participants