diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-06-14 23:28:51 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-06-14 23:28:51 +0300 |
commit | 41e6b2aea1165e69d36b03baa467669d72b093a2 (patch) | |
tree | d96e9748c4e36eb766343dc29d929663a7ddc8e2 /src/home/media | |
parent | 93b5eb4bc5fa380e5a611a4bebdf8dc52a53127b (diff) |
media/record: fix esp32-cam recorder
Diffstat (limited to 'src/home/media')
-rw-r--r-- | src/home/media/record.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/home/media/record.py b/src/home/media/record.py index d3abfbb..d2f9b0e 100644 --- a/src/home/media/record.py +++ b/src/home/media/record.py @@ -450,4 +450,8 @@ class ESP32CameraRecording(Recording): def get_command(self, output: str) -> str: bin = config['esp32_capture']['bin'] - return f'{bin} --addr {self.stream_addr[0]}:{self.stream_addr[1]} --output-directory {output} >/dev/null 2>/dev/null'
\ No newline at end of file + return f'{bin} --addr {self.stream_addr[0]}:{self.stream_addr[1]} --output-directory {output} >/dev/null 2>/dev/null' + + def start(self, output: str): + output = os.path.dirname(output) + return super().start(output)
\ No newline at end of file |