Fix confdir passing to workers
This commit is contained in:
parent
e93b94a05c
commit
6e236481a1
|
@ -100,7 +100,6 @@ def process_video(path, *, maxsize, quality):
|
||||||
with av.open(str(path)) as container:
|
with av.open(str(path)) as container:
|
||||||
stream = container.streams.video[0]
|
stream = container.streams.video[0]
|
||||||
stream.codec_context.skip_frame = "NONKEY"
|
stream.codec_context.skip_frame = "NONKEY"
|
||||||
stream.codec_context.threads = 1
|
|
||||||
rot = stream.side_data and stream.side_data.get(DISPLAYMATRIX) or 0
|
rot = stream.side_data and stream.side_data.get(DISPLAYMATRIX) or 0
|
||||||
container.seek(container.duration // 8)
|
container.seek(container.duration // 8)
|
||||||
img = next(container.decode(stream)).to_image()
|
img = next(container.decode(stream)).to_image()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user