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

[misc] Add filename option to ti.tools.VideoManager. #5219

Merged
merged 4 commits into from
Jun 24, 2022

Conversation

houkensjtu
Copy link
Contributor

Related issue = #

Currently, the VideoManager uses the default filename video.mp4 when make_video() is called. This PR adds an optional filename argument to the VideoManager constructor.

  1. When no filename is specified, the default output filename is still video.mp4.
  2. The code will disregard user's illegal file extension input.

@CLAassistant
Copy link

CLAassistant commented Jun 21, 2022

CLA assistant check
All committers have signed the CLA.

@netlify
Copy link

netlify bot commented Jun 21, 2022

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit 3e7885b
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/62b3d9b074b5340008677d7b
😎 Deploy Preview https://deploy-preview-5219--docsite-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Contributor

@strongoier strongoier left a comment

Choose a reason for hiding this comment

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

LGTM!

Have you signed the CLA? If not plz do so..

python/taichi/tools/video.py Outdated Show resolved Hide resolved
@strongoier strongoier merged commit fc6e467 into taichi-dev:master Jun 24, 2022
@houkensjtu houkensjtu deleted the add-video-filename branch June 24, 2022 14:52
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.

3 participants