mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 17:55:21 +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 copy
|
||||||
import datetime
|
import datetime
|
||||||
import logging
|
import logging
|
||||||
|
import shlex
|
||||||
import subprocess as sp
|
import subprocess as sp
|
||||||
import json
|
import json
|
||||||
import re
|
import re
|
||||||
@ -888,7 +889,7 @@ def vainfo_hwaccel() -> sp.CompletedProcess:
|
|||||||
|
|
||||||
def get_ffmpeg_arg_list(arg: Any) -> list:
|
def get_ffmpeg_arg_list(arg: Any) -> list:
|
||||||
"""Use arg if list or convert to list format."""
|
"""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):
|
class FrameManager(ABC):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user