ManimCommunity / ManimCommunity/manim
Remove `pydub` from dependencies
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 40.9k
- Forks
- 3.1k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 25
Description
`pydub` is no longer actively maintained, and is now running into issues with `audioop` being removed in python 3.13. As such, we should try to remove it from our dependencies and implement the needed features ourselves.
From a quick look through the code, the main features needed to implement are:
- `AudioSegment.silent`
- `AudioSegment.overlay`
- `AudioSegment.from_file`
https://github.com/ManimCommunity/manim/blob/ce1fff645d2b457919933c3f92cb6106fbb9b6a1/manim/scene/scene_file_writer.py#L330-L334
https://github.com/ManimCommunity/manim/blob/ce1fff645d2b457919933c3f92cb6106fbb9b6a1/manim/scene/scene_file_writer.py#L327
https://github.com/ManimCommunity/manim/blob/ce1fff645d2b457919933c3f92cb6106fbb9b6a1/manim/scene/scene_file_writer.py#L370
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the referenced locations in manim/scene/scene_file_writer.py at lines 327, 330-334, and 370, then trace the current uses of AudioSegment.silent, overlay, and from_file. The work is done when those needed features no longer require pydub and the dependency can be removed without breaking audio handling on Python 3.13.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- audio-video-rtc
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100