mirror of
https://github.com/kkroening/ffmpeg-python.git
synced 2025-08-08 11:57:34 +08:00
Detect: Add test for detecting hardware acceleration
This commit is contained in:
parent
fcaab4f368
commit
8c16c5242e
@ -740,6 +740,13 @@ def test__build_data():
|
|||||||
assert isinstance(data['protocols'][protocol_key], list)
|
assert isinstance(data['protocols'][protocol_key], list)
|
||||||
|
|
||||||
|
|
||||||
|
def test__detect():
|
||||||
|
for hwaccels in [
|
||||||
|
ffmpeg.detect_hwaccels(),
|
||||||
|
ffmpeg.detect_hwaccels(['foohwaccel'])]:
|
||||||
|
assert isinstance(hwaccels, list)
|
||||||
|
|
||||||
|
|
||||||
def get_filter_complex_input(flt, name):
|
def get_filter_complex_input(flt, name):
|
||||||
m = re.search(r'\[([^]]+)\]{}(?=[[;]|$)'.format(name), flt)
|
m = re.search(r'\[([^]]+)\]{}(?=[[;]|$)'.format(name), flt)
|
||||||
if m:
|
if m:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user