I hereby claim:
- I am bjmnbraun on github.
- I am bjmnbraun (https://keybase.io/bjmnbraun) on keybase.
- I have a public key ASALNi07S2WlwaFTcSC9SUoKlw16efmuVbhxyTK_p-DwIwo
To claim this, I am signing this object:
#!/bin/bash | |
# from https://developers.google.com/media/vp9/live-encoding | |
VP9_ARGS="-r 30 -g 90 -s 1920x1080 -quality realtime -speed 5 -threads 8 -row-mt 1 -tile-columns 2 -frame-parallel 1 -qmin 4 -qmax 48 -b:v 4500k" | |
ffmpeg -video_size 1920x1080 -f x11grab -i :0.0 \ | |
-c:v vp9 \ | |
$VP9_ARGS \ | |
screencap.webm |
class LimitBatchSizeMultiProcessingBackend(MultiprocessingBackend): | |
def __init__(self): | |
super().__init__() | |
def compute_batch_size(self): | |
batch_size = super().compute_batch_size() | |
MAX_BATCH_SIZE = 16 | |
if batch_size > MAX_BATCH_SIZE: | |
batch_size = MAX_BATCH_SIZE | |
self._effective_batch_size = batch_size |
I hereby claim:
To claim this, I am signing this object: