fix aarch64 tests

This commit is contained in:
YS 2022-01-20 14:38:50 +03:00
parent 2c62c7f93b
commit c742c2703a

View File

@ -196,6 +196,7 @@ class TestGstreamerBuilder(TestCase):
"rtspsrc",
'location="rtsp://"',
"latency=0",
"do-timestamp=true",
"!",
"a",
"!",
@ -228,6 +229,7 @@ class TestGstreamerBuilder(TestCase):
"rtspsrc",
'location="rtsp://"',
"latency=0",
"do-timestamp=true",
"!",
"rtph264depay",
"!",
@ -253,6 +255,7 @@ class TestGstreamerBuilder(TestCase):
"rtspsrc",
'location="rtsp://"',
"latency=0",
"do-timestamp=true",
"!",
"rtph264depay",
"!",
@ -293,6 +296,7 @@ class TestGstreamerBuilder(TestCase):
"rtspsrc",
'location="rtsp://"',
"latency=0",
"do-timestamp=true",
"!",
"rtph264depay",
"!",
@ -300,6 +304,10 @@ class TestGstreamerBuilder(TestCase):
"!",
"omxh264dec",
"!",
"videoconvert",
"!",
"videoscale",
"!",
"queue",
"!",
"omxh264enc",
@ -353,7 +361,9 @@ class TestGstreamerBuilder(TestCase):
@mock.patch("frigate.gstreamer.autodetect_decoder_pipeline")
def test_custom_source(self, mock_autodetect_pipeline):
self.builder = GstreamerBuilder("videotestsrc is-live=true pattern=snow", 320, 240, "cam_name")
self.builder = GstreamerBuilder(
"videotestsrc is-live=true pattern=snow", 320, 240, "cam_name"
)
builder = self.builder.with_decoder_pipeline(["a"], caps=None)
builder = builder.with_source_format_pipeline(["d"])
assert builder.build(use_detect=True, use_record=False) == [