Closed semikernel closed 7 months ago
Hello! The features you are asking for are not
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 (https://github.com/ManimCommunity/manim/pull/3496), but this is still work in progress due to https://github.com/ManimCommunity/manim/pull/3501.
In the meantime, you can implement a basic VideoMobject
by copying/pasting the code from https://github.com/ManimCommunity/manim/pull/3496/files.
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.
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