mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35:22 +03:00
Allow to use shell-like string args
This commit is contained in:
parent
d84541ec6e
commit
df2e5e728b
@ -1,6 +1,7 @@
|
||||
import copy
|
||||
import datetime
|
||||
import logging
|
||||
import shlex
|
||||
import subprocess as sp
|
||||
import json
|
||||
import re
|
||||
@ -888,7 +889,7 @@ def vainfo_hwaccel() -> sp.CompletedProcess:
|
||||
|
||||
def get_ffmpeg_arg_list(arg: Any) -> list:
|
||||
"""Use arg if list or convert to list format."""
|
||||
return arg if isinstance(arg, list) else arg.split(" ")
|
||||
return arg if isinstance(arg, list) else shlex.split(arg)
|
||||
|
||||
|
||||
class FrameManager(ABC):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user