cibrrig.preprocess.compress_video

This convinience script usses ffmpeg and the gpu to compress a video in both lossless and lossy hevc encoding.

Functions

main(fn, skip_lossless, skip_lossy, no_delete)

Compress a video file using ffmpeg and the gpu to both lossless and lossy hevc encoding.

Module Contents

cibrrig.preprocess.compress_video.main(fn, skip_lossless, skip_lossy, no_delete)[source]

Compress a video file using ffmpeg and the gpu to both lossless and lossy hevc encoding.

Parameters:
  • fn (str) – Path to the video file to be compressed

  • skip_lossless (bool) – Skip the lossless encoding

  • skip_lossy (bool) – Skip the lossy encoding

  • no_delete (bool) – Do not delete the original raw uncompressed file