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

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.1.0.tar.gz (27.3 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.1.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for manim_videos-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a9d24e0c7d78580312906744f71da71c397e536a5e975f08fdf70f3ecdafedfd
MD5 8e1d9fd612c8c5fcb865998dd982b8bc
BLAKE2b-256 3dcb46cb308cb7b4a232b363cfc49df302f1bf268273d9f0c5bb77a9a69924a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for manim_videos-0.1.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.1.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for manim_videos-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b4502c5c15eed71544f614bcda1629355f9d2088ed66535bb5aebe87b570d93
MD5 e055da826d4b18f8e1c009757da570fa
BLAKE2b-256 4bcb6053a01120971b41f733125dc83d82c88d8cefb43ecb01d3a97998e4d97d

See more details on using hashes here.

Provenance

The following attestation bundles were made for manim_videos-0.1.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