This commit is contained in:
Nikolas
2024-11-28 17:14:04 -08:00
parent 036c00d6de
commit 20b740df4e
2 changed files with 21 additions and 7 deletions

View File

@@ -17,7 +17,6 @@ from harness_utils.output import (
)
SCRIPT_DIR = Path(__file__).resolve().parent
LOG_DIR = SCRIPT_DIR.joinpath("run")
LOG_DIR.mkdir(exist_ok=True)
@@ -31,17 +30,29 @@ logging.basicConfig(
)
ENCODER_TO_PRESET = {
"h264": {
"h264 (cpu)": {
"file": f"{SCRIPT_DIR}\\presets\\h264_bigbuckbunny_1080p_cpu_test.json",
"name": "\"CPU 1080p BBB H264\""
},
"h265": {
"h265 (cpu)": {
"file": f"{SCRIPT_DIR}\\presets\\h265_bigbuckbunny_1080p_cpu_test.json",
"name": "\"CPU 1080p BBB H265\""
},
"av1": {
"av1 (cpu)": {
"file": f"{SCRIPT_DIR}\\presets\\av1-svt_bigbuckbunny_1080p_cpu_test.json",
"name": "\"CPU 1080p BBB AV1\""
},
"h264 (nvenc)": {
"file": f"{SCRIPT_DIR}\\presets\\h264_nvenc_bigbuckbunny_1080p_gpu_test.json",
"name": "\"NVENC 1080p BBB H264\""
},
"h265 (nvenc)": {
"file": f"{SCRIPT_DIR}\\presets\\h265_nvenc_bigbuckbunny_1080p_gpu_test.json",
"name": "\"NVENC 1080p BBB H265\""
},
"av1 (nvenc)": {
"file": f"{SCRIPT_DIR}\\presets\\av1-nvenc_bigbuckbunny_1080p_gpu_test.json",
"name": "\"NVENC 1080p BBB AV1\""
}
}

View File

@@ -7,7 +7,10 @@ options:
- name: encoder
type: select
values:
- h264
- h265
- av1
- h264 (cpu)
- h265 (cpu)
- av1 (cpu)
- h264 (nvenc)
- h265 (nvenc)
- av1 (nvenc)
tooltip: Select which preset to use