Ffmpeg cpu benchmark (#179)

Added ffmpeg cpu benchmark based on @nharris-lmg commands

3 options for encode (h264, av1, h265)

will report final vmaf score as "score" in report json

logs saved to artifacts
This commit is contained in:
j-lin-lmg
2025-12-23 16:20:51 -08:00
committed by GitHub
parent daffe4e42c
commit b229c4f027
6 changed files with 218 additions and 3 deletions

View File

@@ -210,7 +210,6 @@ try:
logging.info("Detected OpenVino Devices: %s", str(OPENVINO_DEVICES))
logging.info("Detected CUDA Devices: %s", (CUDA_DEVICES))
am = ArtifactManager(LOG_DIR)
args = get_arguments()
option = BENCHMARK_CONFIG[args.engine]["config"]
proc_name = BENCHMARK_CONFIG[args.engine]["process_name"]
@@ -230,7 +229,9 @@ try:
logging.error("Could not find overall score!")
sys.exit(1)
am = ArtifactManager(LOG_DIR)
am.copy_file(RESULTS_XML_PATH, ArtifactType.RESULTS_TEXT, "results xml file")
am.create_manifest()
end_time = time.time()
elapsed_test_time = round(end_time - start_time, 2)
logging.info("Benchmark took %.2f seconds", elapsed_test_time)
@@ -248,7 +249,6 @@ try:
"unit": "score",
"score": score,
}
am.create_manifest()
write_report_json(str(LOG_DIR), "report.json", report)
except Exception as e:
logging.error("Something went wrong running the benchmark!")