YunoHost-Apps / peertube_remote_runner_ynh

Peertube remote runner standalone package for YunoHost
https://docs.joinpeertube.org/admin/remote-runners
GNU Affero General Public License v3.0
1 stars 1 forks source link

Add whisper as a dependency? #9

Open tio-trom opened 2 months ago

tio-trom commented 2 months ago

Since Peertube 6.2 there is an option to auto-caption the uploaded videos and the remote runners need the whisper package to be installed. See https://docs.joinpeertube.org/maintain/tools#runner-installation

pip install whisper-ctranslate2 # or pipx install whisper-ctranslate2 depending on your distribution

If we can please add it as a dependency to YNH.

MadMan247 commented 1 month ago

I 2nd this request.

MadMan247 commented 1 month ago

hmmm..... simply running the command to install whisper on the target (remote runner) system seems insufficient. I keep having my remote runner error out on the transcoding process. Will look into this further.

Command failed with ENOENT: whisper-ctranslate2 /var/www/peertube_remote_runner/.cache/peertube-runner-nodejs/default/transcoding/12280bd9-034b-49e6-a34e-5ad342069d8f --model small --word_timestamps True --vad_filter true --output_format all --output_dir /var/www/peertube_remote_runner/.cache/peertube-runner-nodejs/default/transcription/92Wf5WBt3yiuhER7UVfsrF
spawn whisper-ctranslate2 ENOENT

Editing this, because I dont want to clutter this issue with particularly off-topic items. I wan't sure I understood "update the runner", but if you mean update the config, that did work. I added a line for enginePath = "" and set it to the output of which whisper-ctranslate2 which was /usr/local/bin/whisper-ctranslate2. I also changed my model to large-v2 instead of small, just in case that matters here (I have extra ram on my runner. large-v2 still used less that 4 GB with a few-minute-long video.). No more enoent.

tio-trom commented 1 month ago

@MadMan247 try also updating the runner then restart the server. Works well for us. Tested with over 6 servers.