Function
_video_paths
(
args: argparse.Namespace,
*,
out_dir: Path,
camera_ids: list[str],
)
Source from the content-addressed store, hash-verified
| 1289 | |
| 1290 | |
| 1291 | def _video_paths( |
| 1292 | args: argparse.Namespace, |
| 1293 | *, |
| 1294 | out_dir: Path, |
| 1295 | camera_ids: list[str], |
| 1296 | ) -> dict[str, Path]: |
| 1297 | video_dir = ( |
| 1298 | out_dir / "videos" |
| 1299 | if args.video_dir is None |
| 1300 | else args.video_dir.expanduser().resolve() |
| 1301 | ) |
| 1302 | return {camera_id: video_dir / f"{camera_id}.mp4" for camera_id in camera_ids} |
| 1303 | |
| 1304 | |
| 1305 | def _preferred_video_backend() -> str | None: |
Tested by
no test coverage detected