Skip to content

Extra: Sickbeard MP4 Automator

desimaniac edited this page May 4, 2019 · 26 revisions
  1. Introduction
  2. Overview
  3. Initial Setup
    1. Settings
    2. Install
  4. Setup
  5. Sonarr
  6. Radarr
  7. Tips
  8. User Submitted Configs

1. Introduction

Sickbeard MP4 Automator Automatically converts video files to a standardized mp4 format.

2. Overview

  1. Download is handed back to Sonarr/Radarr from NZBGet/ruTorrent.

  2. Sonarr/Radarr renames the file and executes the Sickbeard MP4 Automator (SMA) script.

  3. SMA runs, converts the renamed file to an mp4, following the config in autoProcess.ini, and deletes the original file (can be changed in the settings).

  4. SMA executes the plex_autoscan.py post-processing script to notify Plex Autoscan to scan the new file's directory.

  5. SMA notifies Sonarr/Radarr of the new filename and initiates a rescan of the file location to pick up the change.

3. Initial Setup

Sickbeard MP4 Automator is installed on 'Cloudbox' or 'Feederbox' setups.

i. Settings

Set the following option in adv_settings.yml:

sickbeard_mp4_automator: yes

ii. Install

Run the following command:

sudo ansible-playbook cloudbox.yml --tags sickbeard_mp4_automator

or

sudo ansible-playbook cloudbox.yml --tags sma

4. Setup

i. Add your Plex Autoscan URL into 'plex_autoscan.py'

On a full 'Cloudbox' install, the URL= should be set to your Plex Autoscan URL on line 32 of /opt/scripts/sickbeard_mp4_automator/post_process/plex_autoscan.py.

If not, or if your are using a 'Feederbox' setup, replace PLEX_AUTOSCAN_URL with your Plex Autoscan URL.

url = "PLEX_AUTOSCAN_URL"

ii. Fill in API Keys into 'autoProcess.ini'

Out of box, the install process would have put your Sonarr and Radarr API keys into /opt/scripts/sickbeard_mp4_automator/autoProcess.ini.

If they are missing, you will need to add them in yourself.

5. Sonarr

i. Set 'Plex Autoscan' to rename only

This is now handled by the 'plex_autoscan.py' script.

  1. Click "Settings" -> "Connect".

  2. Click 'Plex Autoscan'.

  3. Set the following (in order):

    1. Name: Plex Autoscan

    2. On Grab: No

    3. On Download: Yes

    4. On Upgrade: No

    5. On Rename: Yes

    6. On Download: No (this is not a typo)

  4. Click "Save"

  5. The box will look like this:

ii. Add 'Sickbeard MP4 Automator'

  1. Click "Settings" -> "Connect".

  2. Add a new "Custom Script".

  3. Add the following:

    1. Name: Sickbeard MP4 Automator

    2. On Grab: No

    3. On Download: Yes

    4. On Upgrade: Yes

    5. On Rename: No

    6. Path: /scripts/sickbeard_mp4_automator/postSonarr.py

    7. Arguments: (blank)

  4. The settings will look like this:

    SMA for Sonarr

  5. Click "Save" to add the Sickbeard MP4 Automator script.

6. Radarr

i. Set 'Plex Autoscan' to rename only

This is now handled by the 'plex_autoscan.py' script.

  1. Click "Settings" -> "Connect".

  2. Click 'Plex Autoscan'.

  3. Set the following (in order):

    1. Name: Plex Autoscan

    2. On Grab: No

    3. On Download: Yes

    4. On Upgrade: No

    5. On Rename: Yes

    6. On Download: No (this is not a typo)

  4. Click "Save"

  5. The box will look like this:

ii. Add 'Sickbeard MP4 Automator'

  1. Click "Settings" -> "Connect".

  2. Add a new "Custom Script".

  3. Add the following:

    1. Name: Sickbeard MP4 Automator

    2. On Grab: No

    3. On Download: Yes

    4. On Upgrade: Yes

    5. On Rename: No

    6. Path: /scripts/sickbeard_mp4_automator/postRadarr.py

    7. Arguments: (blank)

  4. The settings will look like this:

    SMA for Radarr

  5. Click "Save" to add the Sickbeard MP4 Automator script.

7. Tips

Enable HW acceleration for supported Intel CPUs

Set the following in /opt/scripts/sickbeard_mp4_automator/autoProcess.ini:

use-qsv-decoder-with-encoder = True
video-codec = h264vaapi, h264, x264

Set the next one only if your server's CPU is capable of HW decoding HEVC. See here.

use-hevc-qsv-decoder = True

8. User Submitted Configs

Home

Basics

  1. Introduction
  2. Cloudbox Install Types
  3. Cloudbox Paths
  4. Accessing Cloudbox Apps

Prerequisites

  1. Overview
  2. Presumptions
  3. Server
  4. Domain Name
  5. Cloudflare
  6. Cloud Storage
  7. Plex / Emby - Account
  8. Usenet vs. BitTorrent

Install Cloudbox

Cloudbox
  1. Overview
  2. Dependencies
  3. Ansible Vault
  4. Settings
  5. Preinstall
  6. SSH
  7. Rclone
  8. Cloudbox
  9. Application Setup
    1. NZBGet
    2. ruTorrent
    3. NZBHydra2
    4. Jackett
    5. Plex Media Server
    6. Plex Autoscan
    7. Sonarr
    8. Radarr
    9. Lidarr
    10. PlexPy (Tautulli)
    11. Ombi
    12. Portainer
    13. Organizr

Install Mediabox / Feederbox

Feederbox (do this first)
  1. Overview
  2. Dependencies
  3. Ansible Vault
  4. Settings
  5. Preinstall
  6. SSH
  7. Rclone
  8. Feederbox
  9. Application Setup
    1. NZBGet
    2. ruTorrent
    3. NZBHydra2
    4. Jackett
    5. Sonarr
    6. Radarr
    7. Lidarr
    8. Portainer
    9. Organizr

Mediabox
  1. Overview
  2. Dependencies
  3. Ansible Vault
  4. Settings
  5. Preinstall
  6. SSH
  7. Rclone
  8. Mediabox
  9. Application Setup
    1. Feeder Mount
    2. Plex Media Server
    3. Plex Autoscan
    4. PlexPy (Tautulli)
    5. Ombi

Recommended Reading

Backup and Restore

More Information

Advanced Configuration

Experimental

Extras

Docs coming soon for ...

  • Radarr4K
  • Sonarr4K

Misc Guides

Reference

Troubleshooting

Links

Community Project

Clone this wiki locally
You can’t perform that action at this time.