jeertmans / manim-slides

Tool for live presentations using manim
https://manim-slides.eertmans.be
MIT License
446 stars 48 forks source link

[FEATURE] Render full video based on keystroke history #21

Closed chunribu closed 6 months ago

chunribu commented 2 years ago

As the title, is it possible to render a full video based on keystroke history using ffmpeg? That could be another useful feature.

jeertmans commented 2 years ago

Hi @chunribu ! Thank you for your question :-)

If I understand well, you want to present slides, record keystrokes at the same time, and then have a video file that shows exactly what has been shown during the slide presentation?

If so, this is currently not implemented, but should be very easy to do.

jeertmans commented 2 years ago

Well, this is harder than expected, because rendering or saving frames in the same time as presenting, actually slows down the presentation.

I might need to implement some kind of Presentation.get_current_state, then save the state for every frame, and re-read the same files after the presentation to generate output video.

chunribu commented 2 years ago

Hi @jeertmans Glad to see you considering this advice. Thanks for letting me know how it goes. Please continue at your own pace, and have a nice day!

jeertmans commented 2 years ago

Hi @chunribu , when you have time, can you try to new feature, see #25 ?

To test it, please install:

pip install git+https://github.com/jeertmans/manim-slides@record-presentation

Thanks!

chunribu commented 2 years ago

@jeertmans Yes! Of course! 😁😁😁

jeertmans commented 6 months ago

I am re-opening this as this might be worth reconsidering the way we write the video: maybe use PyAV instead?

jeertmans commented 6 months ago

Oops, forgot I removed this feature in #243. It's just probably better to use a separate tool to record the screen.