We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 498f0b9 commit 80fd11eCopy full SHA for 80fd11e
1 file changed
manim/scene/scene_file_writer.py
@@ -6,6 +6,7 @@
6
7
import json
8
import shutil
9
+import warnings
10
from fractions import Fraction
11
from pathlib import Path
12
from queue import Queue
@@ -17,7 +18,17 @@
17
18
import numpy as np
19
import srt
20
from PIL import Image
-from pydub import AudioSegment
21
+
22
+# Manim handles audio conversion through PyAV directly. Importing pydub emits a
23
+# RuntimeWarning if ffmpeg/avconv is not on PATH, even when only WAV code paths
24
+# are used (which do not need ffmpeg). Silence this specific warning.
25
+with warnings.catch_warnings():
26
+ warnings.filterwarnings(
27
+ "ignore",
28
+ message=r".*ffmpeg or avconv.*",
29
+ category=RuntimeWarning,
30
+ )
31
+ from pydub import AudioSegment
32
33
from manim import __version__
34
0 commit comments