Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- crl-m1:clc_ansible cooper$ git diff
- diff --git a/camera_archiver/files/ca.py b/camera_archiver/files/ca.py
- index 3fe3843..20f2afc 100644
- --- a/camera_archiver/files/ca.py
- +++ b/camera_archiver/files/ca.py
- @@ -69,23 +69,23 @@ def timelapse_generate(archive_path: Path, date: str, cam_name: str) -> None:
- # Make sure we don't have any zero-length snapshots
- # It will truncate the timelapse
- snap_glob = list(archive_path.glob(f"{cam_name}_*.jpg"))
- - for f in [x for x in snap_glob if x.stat().st_size == 0]:
- + for f in [x for x in snap_glob if x.stat().st_size == 0]:
- f.unlink()
- output_options = {
- - 'c:v': 'libx265',
- - 'b:v': '10M',
- - 'f': 'mp4' ,
- - 'tag:v': 'hvc1',
- - 'movflags': '+faststart',
- - 'pix_fmt': 'p010le',
- - 'profile:v': 'main10',
- + "c:v": "libx265",
- + "b:v": "10M",
- + "f": "mp4",
- + "tag:v": "hvc1",
- + "movflags": "+faststart",
- + "pix_fmt": "p010le",
- + "profile:v": "main10",
- }
- ffmpeg.input(
- f"{archive_path.as_posix()}/{cam_name}_*.jpeg",
- pattern_type="glob",
- framerate=30,
- - ).output(timelapse_path.as_posix(), **output_options}).overwrite_output().run()
- + ).output(timelapse_path.as_posix(), **output_options).overwrite_output().run()
- def main() -> int:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement