Skip to main content

Embed videos in Manim scenes and Manim Slides presentations

Project description

manim-videos logo

Manim Videos

Efficiently embed video clips in Manim scenes and Manim Slides presentations.

Instead of decoding video frames one-by-one into ImageMobjects, manim_videos renders a transparent placeholder during Manim's normal pass and then uses MoviePy to composite the target video onto the rendered partial movie file in a single post-processing step.

Note: This package is only tested against Manim Community Edition, but may work with ManimGL.

Quick Start

Install manim-videos with:

pip install manim-videos

Then add the VideoMixin to your scene class, and add your video to your scene using the VideoMObject class and OverlayVideo animation:

from manim import *
from manim_videos import VideoMixin, VideoMObject, OverlayVideo


class MyScene(VideoMixin, Scene):
    def construct(self):
        vid = VideoMObject("my_video.mp4")
        self.play(OverlayVideo(vid))

Which can be rendered and previewed using the following command:

manim -pql my_scene.py MyScene

See the documentation for more!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

manim_videos-0.2.0.tar.gz (372.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

manim_videos-0.2.0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file manim_videos-0.2.0.tar.gz.

File metadata

  • Download URL: manim_videos-0.2.0.tar.gz
  • Upload date:
  • Size: 372.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for manim_videos-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cc89a3d4167a2a4dfa47035e29d5600bc24af8071aa8fe5e74af571a36dfc2af
MD5 681148b15ca9146e566f0412879f724a
BLAKE2b-256 e741eeb39668d675f122b91a2f0fb9919da7026430db56bf78188163a51a7450

See more details on using hashes here.

Provenance

The following attestation bundles were made for manim_videos-0.2.0.tar.gz:

Publisher: publish.yml on jungerm2/manim-videos

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file manim_videos-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: manim_videos-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for manim_videos-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48ba8b628e6c31f234246f40bc7f3505452c67bd596286069e1eb9e602c5d8eb
MD5 a2b735b4a4547465d0cc30e68975b3e4
BLAKE2b-256 ccf44fb9fd0844d5fcc5f9f003552a43d70d5e49f6eb1e316ed86563a7d80d6f

See more details on using hashes here.

Provenance

The following attestation bundles were made for manim_videos-0.2.0-py3-none-any.whl:

Publisher: publish.yml on jungerm2/manim-videos

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page