ManimCommunity/manim

Remove `pydub` from dependencies

Aperta

#3968 aperta il 20 ott 2024

 (7 commenti) (2 reazioni) (0 assegnatari)Python (1378 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (17.820 stelle)
Metriche merge PR
 (Merge medio 90g 10h) (31 PR mergiate in 30 g)

Descrizione

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

Guida contributor