From a38fa04396ff0a1a2d129ffba78fa3a182e7dd60 Mon Sep 17 00:00:00 2001 From: Theelgirl Date: Fri, 26 Feb 2021 07:51:25 -0800 Subject: [PATCH] Fix #38 - No such file or directory: _temp.mp4 --- fvid/fvid.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fvid/fvid.py b/fvid/fvid.py index 3635e8f..db7ba84 100644 --- a/fvid/fvid.py +++ b/fvid/fvid.py @@ -108,7 +108,7 @@ def encode_zfec(bit_array: BitArray) -> BitArray: return BitArray(bytes=ecc_bytes.encode('utf-8')) def get_bits_from_file( - filepath: str, key: bytes, zfec: bool + filepath: str, key: bytes, zfec: bool, ) -> BitArray: """ Get/read bits fom file, encrypt data, and zip @@ -223,18 +223,18 @@ def get_bits_from_video(video_filepath: str, use_h265: bool) -> str: image_sequence = [] if use_h265: os.system( - "ffmpeg -i " + "ffmpeg -i '" + video_filepath - + " -c:v libx265 -filter:v fps=fps=" + + "' -c:v libx265 -filter:v fps=fps=" + FRAMERATE + " -x265-params lossless=1 -preset 6 -tune grain " + TEMPVIDEO ) else: os.system( - "ffmpeg -i " + "ffmpeg -i '" + video_filepath - + " -c:v libx264rgb -filter:v fps=fps=" + + "' -c:v libx264rgb -filter:v fps=fps=" + FRAMERATE + " " + TEMPVIDEO