Skip to content
MADindustries edited this page Dec 14, 2018 · 13 revisions

The transcodes are uploaded automatically to RED so please check them out to see if they are correct.

Prerequisites

You will need to have rabbitmq installed: sudo apt install rabbitmq-server

Settings

There are several settings that needs to be changed. Make sure the transcoding settings in settings.py are correct. The transcode username and password is for a user that exists within WM.

Celery

Install screen and then run celery either with celery.sh or with pipenv run celery -A WhatManager2 worker --loglevel=info --concurrency=1

Problems

If you have a what.cd upload error, it's probably due to stale login data. Reset this using pipenv run ./manage.py clear_what_login_cache

Crontab

If celery.sh runs next step is to add a crontab. Making a standard cronfile as earlier it would look like this. The basic transcode sync is as follows (modify the URL if you installed WM in a subfolder):

* * * * * root curl curl http://host.com/transcode/update

With crontab -e this would be

* * * * * curl http://host.com/transcode/update

See if it's working to go to http://host.com/transcode and add a transcode job either there or with userscripts.

Clone this wiki locally