mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +03:00
Fix tests
This commit is contained in:
parent
f521213462
commit
ee08333581
@ -1,11 +1,5 @@
|
|||||||
import unittest
|
import unittest
|
||||||
import numpy as np
|
from frigate.config import FrigateConfig
|
||||||
from pydantic import ValidationError
|
|
||||||
from frigate.config import (
|
|
||||||
BirdseyeModeEnum,
|
|
||||||
FrigateConfig,
|
|
||||||
DetectorTypeEnum,
|
|
||||||
)
|
|
||||||
from frigate.ffmpeg_presets import parse_preset_input
|
from frigate.ffmpeg_presets import parse_preset_input
|
||||||
|
|
||||||
|
|
||||||
@ -17,7 +11,10 @@ class TestFfmpegPresets(unittest.TestCase):
|
|||||||
"back": {
|
"back": {
|
||||||
"ffmpeg": {
|
"ffmpeg": {
|
||||||
"inputs": [
|
"inputs": [
|
||||||
{"path": "rtsp://10.0.0.1:554/video", "roles": ["detect"]}
|
{
|
||||||
|
"path": "rtsp://10.0.0.1:554/video",
|
||||||
|
"roles": ["detect", "rtmp"],
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"output_args": {
|
"output_args": {
|
||||||
"detect": "-f rawvideo -pix_fmt yuv420p",
|
"detect": "-f rawvideo -pix_fmt yuv420p",
|
||||||
@ -33,6 +30,9 @@ class TestFfmpegPresets(unittest.TestCase):
|
|||||||
"record": {
|
"record": {
|
||||||
"enabled": True,
|
"enabled": True,
|
||||||
},
|
},
|
||||||
|
"rtmp": {
|
||||||
|
"enabled": True,
|
||||||
|
},
|
||||||
"name": "back",
|
"name": "back",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user