mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-24 04:59:47 +00:00
feat(preset): adding encoding preset
This commit is contained in:
@@ -354,6 +354,9 @@ def encode_video_frames(
|
|||||||
if crf is not None:
|
if crf is not None:
|
||||||
video_options["crf"] = str(crf)
|
video_options["crf"] = str(crf)
|
||||||
|
|
||||||
|
#TEMPORARY FIX
|
||||||
|
video_options["preset"] = "12"
|
||||||
|
|
||||||
if fast_decode:
|
if fast_decode:
|
||||||
key = "svtav1-params" if vcodec == "libsvtav1" else "tune"
|
key = "svtav1-params" if vcodec == "libsvtav1" else "tune"
|
||||||
value = f"fast-decode={fast_decode}" if vcodec == "libsvtav1" else "fastdecode"
|
value = f"fast-decode={fast_decode}" if vcodec == "libsvtav1" else "fastdecode"
|
||||||
|
|||||||
Reference in New Issue
Block a user