mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-14 19:02:22 +02:00
test(media): detect ffmpeg encoders by codec alias
This commit is contained in:
@@ -37,7 +37,7 @@ def _ffmpeg_has_encoder(name: str) -> bool:
|
|||||||
check=False, capture_output=True, text=True,
|
check=False, capture_output=True, text=True,
|
||||||
)
|
)
|
||||||
return any(
|
return any(
|
||||||
line.split()[1:2] == [name]
|
line.split()[1:2] == [name] or f"(codec {name})" in line
|
||||||
for line in listed.stdout.splitlines()
|
for line in listed.stdout.splitlines()
|
||||||
if line.strip()
|
if line.strip()
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user