ManimCommunity / manim-voiceover

Manim plugin for all things voiceover
https://voiceover.manim.community/en/stable
MIT License
154 stars 20 forks source link

Allow other audio codecs to be used other than mp3 #60

Open ldatmpacc opened 11 months ago

ldatmpacc commented 11 months ago

Description of proposed feature

Currently, rendering to .webm doesn't work with manim-voiceover, as all audio files use .mp3's, which the WebM format does not support(it only supports Vorbis or OPUS).

The MP3 codec is also pretty old and really lossy, especially when compared to more modern formats like AAC, Vorbis or OPUS. On that ground, there should be a way for audio to be encoded as another format(which could be done with FFmpeg on the source files).

How can the new feature be used?

It would re-enable WebM output without having to spend extra time reencoding(and losing fidelity), which some people might prefer over having to deal with over the patented H.264/H.265 found in .mp4 files.

Additional comments

As I said before, it could easily be done using FFmpeg.

osolmaz commented 11 months ago

I will try and see if there is an easy way to do this in the next version.