Peertube-runner.js GPU support

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())

You have to update runner code and rebuild the application: PeerTube/apps/peertube-runner at develop · Chocobozzz/PeerTube · GitHub

installed it via npm
it was already the latest version

npm list -g @peertube/peertube-runner
/usr/lib
└── @peertube/peertube-runner@0.0.21

Like I said you have to update the code directly and rebuild the tool, not install it from NPM.