mirror of https://github.com/AlfredoSequeida/fvid
Fix #38 - No such file or directory: _temp.mp4
This commit is contained in:
parent
3dd98bcbae
commit
a38fa04396
10
fvid/fvid.py
10
fvid/fvid.py
|
@ -108,7 +108,7 @@ def encode_zfec(bit_array: BitArray) -> BitArray:
|
||||||
return BitArray(bytes=ecc_bytes.encode('utf-8'))
|
return BitArray(bytes=ecc_bytes.encode('utf-8'))
|
||||||
|
|
||||||
def get_bits_from_file(
|
def get_bits_from_file(
|
||||||
filepath: str, key: bytes, zfec: bool
|
filepath: str, key: bytes, zfec: bool,
|
||||||
) -> BitArray:
|
) -> BitArray:
|
||||||
"""
|
"""
|
||||||
Get/read bits fom file, encrypt data, and zip
|
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 = []
|
image_sequence = []
|
||||||
if use_h265:
|
if use_h265:
|
||||||
os.system(
|
os.system(
|
||||||
"ffmpeg -i "
|
"ffmpeg -i '"
|
||||||
+ video_filepath
|
+ video_filepath
|
||||||
+ " -c:v libx265 -filter:v fps=fps="
|
+ "' -c:v libx265 -filter:v fps=fps="
|
||||||
+ FRAMERATE
|
+ FRAMERATE
|
||||||
+ " -x265-params lossless=1 -preset 6 -tune grain "
|
+ " -x265-params lossless=1 -preset 6 -tune grain "
|
||||||
+ TEMPVIDEO
|
+ TEMPVIDEO
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
os.system(
|
os.system(
|
||||||
"ffmpeg -i "
|
"ffmpeg -i '"
|
||||||
+ video_filepath
|
+ video_filepath
|
||||||
+ " -c:v libx264rgb -filter:v fps=fps="
|
+ "' -c:v libx264rgb -filter:v fps=fps="
|
||||||
+ FRAMERATE
|
+ FRAMERATE
|
||||||
+ " "
|
+ " "
|
||||||
+ TEMPVIDEO
|
+ TEMPVIDEO
|
||||||
|
|
Loading…
Reference in New Issue