Add warning for FFmpeg spawning classes executable parameter

This commit is contained in:
Rapptz 2024-02-11 05:54:48 -05:00
parent 8d3b56206b
commit 9345a2a1be

View File

@ -288,6 +288,12 @@ class FFmpegPCMAudio(FFmpegAudio):
passed to the stdin of ffmpeg.
executable: :class:`str`
The executable name (and path) to use. Defaults to ``ffmpeg``.
.. warning::
Since this class spawns a subprocess, care should be taken to not
pass in an arbitrary executable name when using this parameter.
pipe: :class:`bool`
If ``True``, denotes that ``source`` parameter will be passed
to the stdin of ffmpeg. Defaults to ``False``.
@ -392,6 +398,12 @@ class FFmpegOpusAudio(FFmpegAudio):
executable: :class:`str`
The executable name (and path) to use. Defaults to ``ffmpeg``.
.. warning::
Since this class spawns a subprocess, care should be taken to not
pass in an arbitrary executable name when using this parameter.
pipe: :class:`bool`
If ``True``, denotes that ``source`` parameter will be passed
to the stdin of ffmpeg. Defaults to ``False``.