EriKWDev / nanim

Nanim is an easy-to-use framework to create smooth GPU-accelerated animations that can be previewed live inside a glfw window and, when ready, rendered to videos at an arbitrary resolution and framerate.
MIT License
119 stars 3 forks source link

Add support for Audio #10

Open EriKWDev opened 2 years ago

EriKWDev commented 2 years ago

I have never worked with Audio and FFmpeg and have no idea how to structure audio data and pipe it to the ffmpeg-subprocess, but it would be really neat if we could play audio and have it sync with the animations.

EriKWDev commented 2 years ago

of interest..? https://github.com/ManimCommunity/manim/blob/2d98af0b2229e37cecb4a0604335d1e911c3ff9f/manim/scene/scene_file_writer.py#L241

and here the FFmpeg commands: https://github.com/ManimCommunity/manim/blob/2d98af0b2229e37cecb4a0604335d1e911c3ff9f/manim/scene/scene_file_writer.py#L603