Update the project to run with modern uv/bun (or python/nodejs) environment #7
@ -207,7 +207,13 @@ def process_video(path, *, maxsize, quality):
|
||||
t_save_start = perf_counter()
|
||||
crf = str(int(63 * (1 - quality / 100) ** 2)) # Closely matching PIL quality-%
|
||||
ostream = ocontainer.add_stream(
|
||||
"av1", options={"crf": crf, "usage": "realtime"}
|
||||
"av1",
|
||||
options={
|
||||
"crf": crf,
|
||||
"usage": "realtime",
|
||||
"cpu-used": "8",
|
||||
"threads": "1",
|
||||
},
|
||||
)
|
||||
assert isinstance(ostream, av.VideoStream)
|
||||
ostream.width = frame.width
|
||||
|
Loading…
x
Reference in New Issue
Block a user