i looked into peertube-runner.js to switch to ffmpeg GPU support
-hwaccel cuda: Accelerates decoding using the GPU.
-vcodec h264_nvenc: Accelerates encoding to H.264 format using the GPU.
but howto edit?
whisper was a lot easier
/srv/prunner/.local/bin/whisper
#!/srv/prunner/.local/share/pipx/venvs/openai-whisper/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from whisper.transcribe import cli
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.argv.insert(1, '--device')
sys.argv.insert(2, 'cuda')
sys.exit(cli())