forked from Github/frigate
When running ffprobe, use `subprocess.run` rather than `subprocess.Popen`. This simplifies the handling that is needed to run and process the outputs. Here, filename parsing is also simplified by explicitly removing the file extension with `os.path.splitext` and forcing a single split into the camera name and the formatted date.
8.9 KiB
8.9 KiB