mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-17 23:11:45 +00:00
feat(preset): adding encoding preset
This commit is contained in:
committed by
Michel Aractingi
parent
0a8aa85871
commit
4e0ee0d643
@@ -355,6 +355,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