added function to create temp transcoding directory

This commit is contained in:
iLLiCiTiT 2021-11-25 16:44:19 +01:00
parent a4cc0b43eb
commit 66ae8a0ccd

View file

@ -114,6 +114,18 @@ def should_decompress(file_url):
return False
def get_transcode_temp_directory():
"""Creates temporary folder for transcoding.
Its local, in case of farm it is 'local' to the farm machine.
Should be much faster, needs to be cleaned up later.
"""
return os.path.normpath(
tempfile.mkdtemp(prefix="op_transcoding_")
)
def get_oiio_info_for_input(filepath, logger=None):
"""Call oiiotool to get information about input and return stdout."""
args = [