FFMpeg-Compressor: Enable hardware video decoding

This commit is contained in:
OleSTEEP 2024-06-15 03:34:19 +03:00
parent da64641bed
commit 54820279d1
2 changed files with 2 additions and 1 deletions

View file

@ -69,6 +69,7 @@ def compress_video(folder, file, target_folder, extension):
(FFmpeg()
.input(f'{folder}/{file}')
.option("hide_banner")
.option("hwaccel", "auto")
.output(utils.check_duplicates(f'{target_folder}/{os.path.splitext(file)[0]}.{extension}'),
{"codec:v": codec, "v:b": 0, "loglevel": "error"}, crf=crf)
.execute()