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

[FEATURE] Import video and sound to Manim Slides #379

Closed
semikernel opened this issue Mar 5, 2024 · 1 comment
Closed

[FEATURE] Import video and sound to Manim Slides #379

semikernel opened this issue Mar 5, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request waiting external Waiting for things that are external to Manim Slides (e.g., a feature on a dependency)

Comments

@semikernel
Copy link

Description

use self.add("video.mp4",width=4,loop=TRUE,run_time=5,opacity=0.8).move_to(LEFT) ) to add video into manim-slides that can control some parameters.

use self.add("sound.mp3") to add a sound in anywhere of the manim-slides

Thx a lot!

Screenshots

No response

Additional information

No response

@semikernel semikernel added the enhancement New feature or request label Mar 5, 2024
@jeertmans
Copy link
Owner

jeertmans commented Mar 5, 2024

Hello! The features you are asking for are not

Adding a video file

Manim does not allow to easily load a video from a file. I have myself made a PR to add some basic VideoMobject class to Manim (ManimCommunity/manim#3496), but this is still work in progress due to ManimCommunity/manim#3501.

In the meantime, you can implement a basic VideoMobject by copying/pasting the code from https://github.com/ManimCommunity/manim/pull/3496/files.

Adding a sound file

Currently, you can add audio files in Manim with self.add("audio.mp3"), but the sound will not be played in Manim Slides. This is because Manim does not add the audio soundtrack to partial video files, which are used by Manim Slides to create the different slides.

This issue is tracked by #375.

@jeertmans jeertmans added wontfix This will not be worked on waiting external Waiting for things that are external to Manim Slides (e.g., a feature on a dependency) labels Mar 5, 2024
@jeertmans jeertmans changed the title Import video and sound to manim-slides [FEATURE] Import video and sound to manim-slides Apr 4, 2024
@jeertmans jeertmans changed the title [FEATURE] Import video and sound to manim-slides [FEATURE] Import video and sound to Manim Slides Apr 4, 2024
@jeertmans jeertmans added duplicate This issue or pull request already exists and removed wontfix This will not be worked on labels Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request waiting external Waiting for things that are external to Manim Slides (e.g., a feature on a dependency)
Projects
None yet
Development

No branches or pull requests

2 participants