{"id":20558886,"url":"https://github.com/mdhiggins/radarr-sma","last_synced_at":"2025-04-14T13:43:21.636Z","repository":{"id":54385058,"uuid":"140946879","full_name":"mdhiggins/radarr-sma","owner":"mdhiggins","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-03T14:41:39.000Z","size":173,"stargazers_count":26,"open_issues_count":0,"forks_count":15,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T02:47:16.199Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdhiggins.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-14T13:06:54.000Z","updated_at":"2025-01-03T14:26:19.000Z","dependencies_parsed_at":"2025-01-02T17:28:34.182Z","dependency_job_id":"6dbabe1c-8b01-4b35-b501-f2505e4b5562","html_url":"https://github.com/mdhiggins/radarr-sma","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdhiggins%2Fradarr-sma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdhiggins%2Fradarr-sma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdhiggins%2Fradarr-sma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdhiggins%2Fradarr-sma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdhiggins","download_url":"https://codeload.github.com/mdhiggins/radarr-sma/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248890190,"owners_count":21178383,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T03:47:30.263Z","updated_at":"2025-04-14T13:43:21.611Z","avatar_url":"https://github.com/mdhiggins.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Official SMA container based on linuxserver/radarr\nDocker container for Radarr that includes all FFMPEG and python requirements to run SMA with Radarr.\n\n## Version Tags\n\n|Tag|Description|\n|---|---|\n|latest|Stable release from Radarr with precompiled FFMPEG binaries|\n|develop|Develop release from Radarr with precompiled FFMPEG binaries|\n|nightly|Nightly release from Radarr with precompiled FFMPEG binaries|\n|build|Stable release from Radarr with FFMPEG compiled from jrottenberg/ffmpeg|\n\n## Usage\n\n### Recent update\nAs of 3/9/2020 the containers were overhauled and the location of the script was changed from `/usr/local/bin/sma/sickbeard_mp4_automator` to `/usr/local/sma`. The autoProcess mount point has been modified as well to be more docker friendly in a `/usr/local/sma/config` directory. Please review and update accordingly.\n\n### docker-compose\n~~~yml\nservices:\n  radarr:\n    image: mdhiggins/radarr-sma\n    container_name: radarr\n    volumes:\n      - /opt/appdata/radarr:/config\n      - /opt/appdata/sma:/usr/local/sma/config\n      - /mnt/storage/movies:/movies\n      - /mnt/storage/downloads:/downloads\n    ports:\n      - 7878:7878\n    restart: always\n    environment:\n      - PUID=${PUID}\n      - PGID=${PGID}\n~~~\n\n### autoProcess.ini\n- Mount autoProcess.ini containing directory to `/usr/local/sma/config` using volumes\n - Consider making this writable as new options will be auto written to the config as they are added\n- Radarr configuration options are read from `config.xml` inside the container and injected at runtime into `autoProcess.ini`\n - ffmpeg\n - ffprobe\n - host (read from environment variable or set to 127.0.0.1)\n - webroot\n - port\n - ssl\n\n### Python Environment\nThe script installs all dependencies in a virtual environment, not the container/system level Python environment. In order to use the Python environment with the dependencies installed, please execute using `/usr/local/sma/venv/bin/python3`. Use this same Python executable if using manual.py\n\n## Configuring Radarr\n\n###  Enable completed download handling\n- Settings \u003e Download Client \u003e Completed Download Handling \u003e Enable: Yes\n\n### Add Custom Script\n- Settings \u003e Connect \u003e + Add \u003e Custom Script\n\n|Parameter|Value|\n|---|---|\n|On Grab| No|\n|On Import| Yes|\n|On Upgrade| Yes|\n|On Rename| No|\n|On Movie Delete| No|\n|On Movie File Delete| No|\n|On Health Issue| No|\n|On Application Update| No|\n|Path|`/usr/local/sma/postRadarr.sh`|\n\n**Make sure you're using the .sh file, no the .py file, the .sh file points to the appropriate virtual environment**\n\n## Logs\n\nLocated at `/usr/local/sma/config/sma.log` inside the container and your mounted config folder\n\n## Environment Variables\n\n|Variable|Description|\n|---|---|\n|PUID|User ID|\n|PGID|Group ID|\n|HOST|Local IP address for callback requests, default `127.0.0.1`|\n|SMA_PATH|`/usr/local/sma`|\n|SMA_UPDATE|Default `false`. Set `true` to pull git update of SMA on restart|\n|SMA_FFMPEG_URL|Defaults to latest static build from https://johnvansickle.com but can override by changing this var|\n|SMA_STRIP_COMPONENTS|Default `1`. Number of components to strip from your tar.xz file when extracting so that FFmpeg binaries land in `/usr/local/bin`|\n|SMA_HWACCEL|Default `false`. Set `true` to pull additional packages used for hardare acceleration (will require custom FFmpeg binaries)|\n|SMA_USE_REPO|Default `false`. Set `true` to download FFMPEG binaries for default repository (will likely be older versions)|\n\n## Special Considerations\nUsing the `build` tag leverages mulit-stage docker builds to generate FFMPEG compiled using [jrottenberg/ffmpeg's](https://hub.docker.com/r/jrottenberg/ffmpeg) containers. This allows flexibility with building FFMPEG using special options such as VAAPI or NVENC. Building locally allows `ARG` values to be set to change the underlying parent container tags as below. It is recommended that you match your Ubuntu version in the ffmpeg_tag and radarr_tag to ensure no missing dependencies.\n\n|ARG|Default|Description|\n|---|---|---|\n|ffmpeg_tag|latest|Set tag to correspond to jrottenberg/ffmpeg:tag|\n|radarr_tag|latest|Set tag to correspond to linuxserver/radarr:tag|\n|extra_packages||Set additional packages/dependencies that might need to be installed via apt-get or apk, separated by spaces|\n\n### VAAPI docker-compose sample\n~~~yml\nservices:\n  radarr:\n    container_name: radarr\n    build:\n      context: https://github.com/mdhiggins/radarr-sma.git#build\n      args:\n        ffmpeg_tag: 4.4-vaapi2004\n    devices:\n      - /dev/dri/renderD128:/dev/dri/renderD128\n~~~\n\n\nFor the newer Linuxserver Radarr builds based on mono the jrottenberg FFMpeg builds are not compatible and will have issues with VAAPI. The repo build of FFMpeg however includes VAAPI with appropriate libaries so you can use non-build tags with the `SMA_USE_REPO` environment variable set to `true` to enable VAAPI supported FFMpeg builds\n\n~~~yml\nservices:\n  radarr:\n    image: mdhiggins/radarr-sma\n    container_name: radarr\n    volumes:\n      - /opt/appdata/radarr:/config\n      - /opt/appdata/sma:/usr/local/sma/config\n      - /mnt/storage/movies:/movies\n      - /mnt/storage/downloads:/downloads\n    ports:\n      - 7878:7878\n    restart: always\n    environment:\n      - PUID=${PUID}\n      - PGID=${PGID}\n      - SMA_USE_REPO=true\n    devices:\n      - /dev/dri/renderD128:/dev/dri/renderD128\n~~~\n\n### NVIDIA / NVEnc\nCurrently nVidia and NVEnc are not supported on mono which is used by the lastest Linuxserver containers. In order to use NVEnc or nVidia hardare accleration you will need to use an older tag that is still based on Ubuntu\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdhiggins%2Fradarr-sma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdhiggins%2Fradarr-sma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdhiggins%2Fradarr-sma/lists"}