mirror of
https://github.com/kkroening/ffmpeg-python.git
synced 2025-08-07 18:39:47 +08:00
Detect: Improve docstrings
This commit is contained in:
parent
130457ffe1
commit
c70a3f9cae
@ -60,7 +60,7 @@ def detect_gpu():
|
||||
|
||||
def detect_hwaccels(hwaccels=None, cmd='ffmpeg'):
|
||||
"""
|
||||
Extract details about the ffmpeg build.
|
||||
Order the available hardware accelerations by performance.
|
||||
"""
|
||||
# Filter against what's available in the ffmpeg build
|
||||
hwaccels_data = ffmpeg.get_hwaccels(cmd=cmd)
|
||||
@ -96,7 +96,7 @@ def detect_hwaccels(hwaccels=None, cmd='ffmpeg'):
|
||||
def detect_coder(
|
||||
codec, coder, hwaccels=None, avail_codecs=None, cmd='ffmpeg'):
|
||||
"""
|
||||
Determine the optimal decoder/encoder given the hwaccels.
|
||||
Detect the optimal decoders and encoders on the optimal hwaccel.
|
||||
"""
|
||||
if hwaccels is None:
|
||||
hwaccels = detect_hwaccels(cmd=cmd)
|
||||
|
Loading…
x
Reference in New Issue
Block a user