Git Product home page Git Product logo

radarr-sma's Introduction

Hi there 👋

radarr-sma's People

Contributors

easternpa avatar jdamata avatar mdhiggins avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

radarr-sma's Issues

Warning with update.py on radarr-sma:preview

[cont-init.d] 90-sma-config: executing...
/usr/local/sma/update.py:36: DeprecationWarning: The SafeConfigParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in future versions. Use ConfigParser directly instead.
safeConfigParser = configparser.SafeConfigParser()
[cont-init.d] 90-sma-config: exited 0.

I noticed this error when using the radarr-sma:preview tag image during startup

Mounting a file onto a directory

This recent update broke the container, due to the fact the VOLUME instruction should be used to share directories.

VOLUME /usr/local/bin/sma/sickbeard_mp4_automator/autoProcess.ini

Starting the container fails with the following error message:

OCI runtime create failed: container_linux.go:346: starting container process caused \"process_linux.go:449: container init caused \\\"rootfs_linux.go:58: mounting \\\\\\\"/sharedfolders/Volumes/SMA/autoProcess.ini\\\\\\\" to rootfs \\\\\\\"/var/lib/docker/overlay2/e53e14f8365d4286fbb11fea920a1c05f32f09f7582e167738618d061f8c345e/merged\\\\\\\" at \\\\\\\"/var/lib/docker/overlay2/e53e14f8365d4286fbb11fea920a1c05f32f09f7582e167738618d061f8c345e/merged/usr/local/bin/sma/sickbeard_mp4_automator/autoProcess.ini\\\\\\\" caused \\\\\\\"not a directory\\\\\\\"\\\"\": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

I can confirm that autoProcess.ini has been replaced with a directory, causing the container to fail to start.

root@radarr:/# ls -dl /usr/local/bin/sma/sickbeard_mp4_automator/autoProcess.ini
drwxr-xr-x 2 root root 4096 Feb 16 19:57 /usr/local/bin/sma/sickbeard_mp4_automator/autoProcess.ini
root@radarr:/#

I see that you have made the same with sonarr-sma, however, interestingly that container has survived the update. Anyway, I would recommend removing the affected VOLUME instruction.

Import failed, path does not exist or is not accessible by Radarr

First off, this is my first time to play with Docker.
I believe I followed the instructions on how to set up docker with radarr, made a fresh install of nzbget with no options set apart from my usenet server.
In radarr I have Nzbget as the download client and completed download handling enabled. In the connections, /usr/local/sma/postRadarr.sh is setup

The download handles fine but as soon as its downloaded, nothing happens, the file is left in the download directory, not renamed.

this is from the radarr log:

Import failed, path does not exist or is not accessible by Radarr: /volume1/downloads/completed/Movies/Casablanca.1942.70th.Anniversary.1080p.BluRay.DTS-HD.MA.1.0.x264-HDH

Screenshot (5)

Screenshot (9)
Screenshot (10)
Screenshot (11)

FFMpeg cannot be found in the root directory!

Hello,
I just installed FFMpegSharp but having a difficulty setting up the envirnoment.
Whenever i try to use the FFMpeg class, it shows an exception, "FFMpeg cannot be found in the root directory!".
I have copied FFMpeg.exe from the project's FFMpeg x64/x86 folders/and also tried latest executable from the official site on to c:\ffmpeg\bin and set .
I added the path to the Windows Environment variable, user variable, path.
I also tried using the project's FFMpeg x64/x86 folders in the config variable but all didn't work.
I am not sure what is wrong with my setting.
I looked for the answer in the web but nothing worked so far.
Could someone help me, please?
I am using Windows 11.
Thank you.

Latest FFMPEG

Looks like the version of FFMPEG in the SMA container is 4.1.6.

I see there is a build tag, but how can we get this updated to the latest FFMPEG release?

I'm using the "latest" build as well

NVENC for radarr

Is it a safe assumption that we need linuxserver to rebase radarr to ubuntu before nvidia will be supportable? Or is the build configuration for alpine different?

I tried the approach that we discussed for sonarr-sma without much luck. Different set of problems, but problems. :)

services:
  radarr:
    container_name: radarr-sma
    build:
      context: https://github.com/mdhiggins/radarr-sma.git#build
      args:
        ffmpeg_tag: 5.1-nvidia2004
        radarr_tag: develop
    [snip]
    environment:
      - SMA_HWACCEL=true
      - NVIDIA_VISIBLE_DEVICES=all
      - NVIDIA_DRIVER_CAPABILITIES=all
      - LD_LIBRARY_PATH=/usr/local/cuda-11.4/lib64
    runtime: nvidia    

Logs generate this:

cont-init: info: running /etc/cont-init.d/90-sma-config
Error relocating /usr/local/lib/libfontconfig.so.1: __snprintf_chk: symbol not found
Error relocating /usr/local/lib/libfontconfig.so.1: __vfprintf_chk: symbol not found
Error relocating /usr/local/lib/libfontconfig.so.1: __open_2: symbol not found
Error relocating /usr/local/lib/libfontconfig.so.1: random_r: symbol not found
Error relocating /usr/local/lib/libfontconfig.so.1: __memcpy_chk: symbol not found
Error relocating /usr/local/lib/libfontconfig.so.1: __strncpy_chk: symbol not found
Error relocating /usr/local/lib/libfontconfig.so.1: __printf_chk: symbol not found
Error relocating /usr/local/lib/libfontconfig.so.1: __fprintf_chk: symbol not found
Error relocating /usr/local/lib/libfontconfig.so.1: initstate_r: symbol not found
Error relocating /usr/local/lib/libfontconfig.so.1: __sprintf_chk: symbol not found
Error relocating /usr/local/lib/libfreetype.so.6: __memcpy_chk: symbol not found
Error relocating /usr/local/lib/libfreetype.so.6: __longjmp_chk: symbol not found
Error relocating /usr/local/lib/libfreetype.so.6: __sprintf_chk: symbol not found
Error relocating /usr/bin/fc-cache: FcDirCacheCreateUUID: symbol not found
ERROR: fontconfig-2.13.1-r4.trigger: script exited with error 127
Error relocating /usr/local/lib/libfreetype.so.6: __memcpy_chk: symbol not found
Error relocating /usr/local/lib/libfreetype.so.6: __longjmp_chk: symbol not found
Error relocating /usr/local/lib/libfreetype.so.6: __sprintf_chk: symbol not found
Error relocating /usr/local/lib/libfreetype.so.6: __memcpy_chk: symbol not found
Error relocating /usr/local/lib/libfreetype.so.6: __longjmp_chk: symbol not found
Error relocating /usr/local/lib/libfreetype.so.6: __sprintf_chk: symbol not found
Error relocating /usr/local/lib/libfreetype.so.6: __memcpy_chk: symbol not found
Error relocating /usr/local/lib/libfreetype.so.6: __longjmp_chk: symbol not found
Error relocating /usr/local/lib/libfreetype.so.6: __sprintf_chk: symbol not found
Error relocating /usr/local/lib/libfreetype.so.6: __memcpy_chk: symbol not found
Error relocating /usr/local/lib/libfreetype.so.6: __longjmp_chk: symbol not found
Error relocating /usr/local/lib/libfreetype.so.6: __sprintf_chk: symbol not found
ERROR: mkfontscale-1.2.1-r1.trigger: script exited with error 127
cont-init: info: /etc/cont-init.d/90-sma-config exited 0

RadarrPostProcess - ERROR - Radarr monitor status update failed.

I'm experiencing an issue when trying to use the radarr-sma docker. Not sure if it's the script or my config, I suspect the latter but would appreciate any assistance or advice on next troubleshooting steps. (This seems to have been happening since 13th Feb, I don't have a change log so not sure if I changed anything at this end on that date.)

I'm running the latest nightly and I have checked the radarr API key is correct in autoprocess.ini (although I think that should be set automatically?)
Using linuxserver/sabnzbd as the downloader

Full autoprocess.ini is at https://pastebin.com/G6WvRBrm in case it's relevant

When processing a file, after conversion completes I get the following error in sma.log:

2021-02-21 16:10:59 - RadarrPostProcess - ERROR - Radarr monitor status update failed.
Traceback (most recent call last):
  File "/usr/local/sma/postRadarr.py", line 165, in <module>
    if rescanAndWait(host, port, webroot, apikey, protocol, movieid, log):
  File "/usr/local/sma/postRadarr.py", line 24, in rescanAndWait
    log.info("Radarr response Rescan command: ID %d %s." % (rstate['id'], rstate['state']))
KeyError: 'id'

And a corresponding error in the radarr log:

Request Failed. POST /api/command: The JSON value could not be converted to System.Nullable`1[System.Int32]. Path: $.movieId | LineNumber: 0 | BytePositionInLine: 40.
System.Text.Json.JsonException: The JSON value could not be converted to System.Nullable`1[System.Int32]. Path: $.movieId | LineNumber: 0 | BytePositionInLine: 40.
 ---> System.InvalidOperationException: Cannot get the value of a token type 'String' as a number.
   at System.Text.Json.Utf8JsonReader.TryGetInt32(Int32& value)
   at System.Text.Json.Utf8JsonReader.GetInt32()
   at System.Text.Json.Serialization.Converters.NullableConverter`1.Read(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options)
   at System.Text.Json.JsonPropertyInfo`1.ReadJsonAndSetMember(Object obj, ReadStack& state, Utf8JsonReader& reader)
   at System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)
   at System.Text.Json.Serialization.JsonConverter`1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)
   at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
   --- End of inner exception stack trace ---
   at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, Utf8JsonReader& reader, Exception ex)
   at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
   at System.Text.Json.Serialization.JsonConverter`1.ReadCoreAsObject(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
   at System.Text.Json.JsonSerializer.ReadCore[TValue](JsonConverter jsonConverter, Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
   at System.Text.Json.JsonSerializer.ReadCore[TValue](JsonReaderState& readerState, Boolean isFinalBlock, ReadOnlySpan`1 buffer, JsonSerializerOptions options, ReadStack& state, JsonConverter converterBase)
   at System.Text.Json.JsonSerializer.ReadAsync[TValue](Stream utf8Json, Type returnType, JsonSerializerOptions options, CancellationToken cancellationToken)
   at NzbDrone.Common.Serializer.STJson.Deserialize(Stream input, Type type) in D:\a\1\s\src\NzbDrone.Common\Serializer\System.Text.Json\STJson.cs:line 50
   at Radarr.Http.Extensions.ReqResExtensions.FromJson(Stream body, Type type) in D:\a\1\s\src\Radarr.Http\Extensions\ReqResExtensions.cs:line 31
   at NzbDrone.Api.Commands.CommandModule.StartCommand(CommandResource commandResource) in D:\a\1\s\src\NzbDrone.Api\Commands\CommandModule.cs:line 56
   at Radarr.Http.REST.RestModule`1.<set_CreateResource>b__43_0(Object options) in D:\a\1\s\src\Radarr.Http\REST\RestModule.cs:line 206
   at Nancy.NancyModule.<>c__DisplayClass38_0`1.<Post>b__0(Object args)
   at Nancy.NancyModule.<>c__DisplayClass40_0`1.<Post>b__0(Object args, CancellationToken ct)
   at Nancy.Routing.Route`1.Invoke(DynamicDictionary parameters, CancellationToken cancellationToken)
   at Nancy.Routing.DefaultRouteInvoker.Invoke(Route route, CancellationToken cancellationToken, DynamicDictionary parameters, NancyContext context)
   at Nancy.Routing.DefaultRequestDispatcher.Dispatch(NancyContext context, CancellationToken cancellationToken)
   at Nancy.NancyEngine.InvokeRequestLifeCycle(NancyContext context, CancellationToken cancellationToken, IPipelines pipelines)

Cannot run ./manual.py

Hi,

I've seen some similar issues on this like #11 but I don't seem to have any problem with Guessit or other modules. Using the latest version and latest SMA.

Here's whats happening:

Running from inside container

root@e1f361d58140:/# /usr/local/sma/venv/bin/python3 /usr/local/sma/manual.py

/usr/local/sma/venv/bin/python3: can't open file '/usr/local/sma/manual.py': [Errno 2] No such file or directory

root@e1f361d58140:/usr/local/sma# ls
config  postRadarr.sh  update.py  venv

Running from host

root@Apollo:~# docker exec -it radarr /usr/local/sma/venv/bin/python3 /usr/local/sma/manual.py

/usr/local/sma/venv/bin/python3: can't open file '/usr/local/sma/manual.py': [Errno 2] No such file or directory

Is there a reason manual.py is missing or is something else wrong?

Hardware encoding failure

Latest update is causing hardware encoding to fail. Was working fine before update with same docker compose.

FFmpeg command:
======================
/usr/bin/ffmpeg -hwaccel vaapi -i "Dunkirk (2017) - Remux-1080p.mkv" -vcodec hevc_vaapi -map 0:0 -field_order progressive -metadata:s:v title=FHD -metadata:s:v handler_name=FHD -preset slower -tag:v hvc1 -qp 28 -vaapi_device /dev/dri/renderD128 -vf "format=nv12|vaapi,hwupload" -c:a:0 ac3 -map 0:1 -ac:a:0 6 -b:a:0 1536k -metadata:s:a:0 BPS=1536000 -metadata:s:a:0 BPS-eng=1536000 -metadata:s:a:0 "title=5.1 Channel" -metadata:s:a:0 "handler_name=5.1 Channel" -metadata:s:a:0 language=eng -disposition:a:0 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -f mp4 -threads 0 -metadata:g encoding_tool=SMA -y "/media/merged/Media/NEW-Movies/Dunkirk (2017)/Dunkirk (2017) - Remux-1080p.mp4"
======================
[                    ] 0% Error converting file, FFMPEG error.
Traceback (most recent call last):
  File "/usr/local/sma/resources/mediaprocessor.py", line 2292, in convert
    for timecode, debug in conv:
  File "/usr/local/sma/converter/__init__.py", line 329, in convert
    for timecode, debug in self.ffmpeg.convert(outfile,
  File "/usr/local/sma/converter/ffmpeg.py", line 795, in convert
    raise FFMpegConvertError('Exited with code %d' % p.returncode, cmd,
converter.ffmpeg.FFMpegConvertError: <unprintable FFMpegConvertError object>
/usr/bin/ffmpeg -hwaccel vaapi -i Dunkirk (2017) - Remux-1080p.mkv -vcodec hevc_vaapi -map 0:0 -field_order progressive -metadata:s:v title=FHD -metadata:s:v handler_name=FHD -preset slower -tag:v hvc1 -qp 28 -vaapi_device /dev/dri/renderD128 -vf format=nv12|vaapi,hwupload -c:a:0 ac3 -map 0:1 -ac:a:0 6 -b:a:0 1536k -metadata:s:a:0 BPS=1536000 -metadata:s:a:0 BPS-eng=1536000 -metadata:s:a:0 title=5.1 Channel -metadata:s:a:0 handler_name=5.1 Channel -metadata:s:a:0 language=eng -disposition:a:0 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -f mp4 -threads 0 -metadata:g encoding_tool=SMA -y /media/merged/Media/NEW-Movies/Dunkirk (2017)/Dunkirk (2017) - Remux-1080p.mp4
ffmpeg version 5.1.2 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 12.2.1 (Alpine 12.2.1_git20220924-r3) 20220924
  configuration: --prefix=/usr --enable-avfilter --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libpulse --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-libdav1d --enable-lto --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --enable-librist --enable-libsrt --enable-libssh --enable-libvidstab --disable-stripping --disable-static --disable-librtmp --disable-lzma --enable-libaom --enable-libopus --enable-libsoxr --enable-libwebp --enable-vaapi --enable-vdpau --enable-vulkan --enable-libdrm --enable-libzmq --optflags=-O2 --disable-debug --enable-libsvtav1
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
[AVHWDeviceContext @ 0x7ff39c638e40] No VA display found for device /dev/dri/renderD128.
Device creation failed: -22.
Failed to set value '/dev/dri/renderD128' for option 'vaapi_device': Invalid argument
Error parsing global options: Invalid argument

There was an error processing file Dunkirk (2017) - Remux-1080p.mkv, no output data received

Docker Compose:

  radarr-sma:
    image: mdhiggins/radarr-sma
    container_name: radarr-sma
    volumes:
      - /plexms/docker/radarr-sma/opt/appdata/radarr:/config
      - /plexms/docker/radarr-sma/opt/appdata/sma:/usr/local/sma/config
      - /plexms/docker/radarr-sma/mnt/storage/movies:/movies
      - /media/merged:/media/merged
      - /home/travis/docker/sabnzbd-sma/downloads:/downloads #optional
      - /data:/media/data
      - /home/travis/docker/shared:/shared
    ports:
      - 7879:7878
    restart: always
    environment:
      - PUID=1000
      - PGID=1000
      - DOCKER_MODS=ghcr.io/gilbn/theme.park:radarr|linuxserver/mods:universal-package-install
      - SMA_USE_REPO=true
      - INSTALL_PACKAGES=libva-intel-driver|mesa-dri-gallium
      - INSTALL_PIP_PACKAGES=tmdbsimple|guessit|mutagen|qtfaststart
    devices:
      - /dev/dri:/dev/dri

isValidSource unexpectedly threw an exception

I configured the script based on radarr rename. It may well be a user mistake, but I cannot figure out what I am doing wrong. Please see error below from the radarr debug log:

7/30/2020 2:30:29 AM - Standard - 2020-07-30 10:30:29 - RadarrPostProcess - INFO - Radarr extra script post processing started.
7/30/2020 2:30:29 AM - Standard - 2020-07-30 10:30:29 - resources.readsettings - INFO - /usr/bin/python3
7/30/2020 2:30:29 AM - Standard - 2020-07-30 10:30:29 - resources.readsettings - INFO - Loading config file /usr/local/sma/config/autoProcess.ini.
7/30/2020 2:30:29 AM - Standard - 2020-07-30 10:30:29 - resources.readsettings - WARNING - Force-convert is true, so convert-mp4 is being overridden to true as well
7/30/2020 2:30:29 AM - Standard - 2020-07-30 10:30:29 - resources.mediaprocessor - ERROR - isValidSource unexpectedly threw an exception, returning None
7/30/2020 2:30:29 AM - Standard - Traceback (most recent call last):
7/30/2020 2:30:29 AM - Standard -   File "/usr/local/sma/resources/mediaprocessor.py", line 258, in isValidSource
7/30/2020 2:30:29 AM - Standard -     extension = self.parseFile(inputfile)[2]
7/30/2020 2:30:29 AM - Standard -   File "/usr/local/sma/resources/mediaprocessor.py", line 1417, in parseFile
7/30/2020 2:30:29 AM - Standard -     path = os.path.abspath(path)
7/30/2020 2:30:29 AM - Standard -   File "/usr/lib/python3.8/posixpath.py", line 374, in abspath
7/30/2020 2:30:29 AM - Standard -     path = os.fspath(path)
7/30/2020 2:30:29 AM - Standard - TypeError: expected str, bytes or os.PathLike object, not NoneType
7/30/2020 2:30:29 AM - Standard - 2020-07-30 10:30:29 - resources.mediaprocessor - INFO - File None is not valid
7/30/2020 2:30:29 AM - Standard - 2020-07-30 10:30:29 - RadarrPostProcess - INFO - Processing returned False.
7/30/2020 2:30:29 AM - Standard - 2020-07-30 10:30:29 - RadarrPostProcess - ERROR - Error processing file
7/30/2020 2:30:29 AM - Standard - Traceback (most recent call last):
7/30/2020 2:30:29 AM - Standard -   File "/usr/local/sma/postRadarr.py", line 153, in <module>
7/30/2020 2:30:29 AM - Standard -     sys.exit(1)
7/30/2020 2:30:29 AM - Standard - SystemExit: 1

build version not starting

Since Synology unfortunately disabled external devices (ans with that VAAPI support) for their web UI for good (previously they could be used by exporting, modifying and importing the json config) I'm in the process of switching to a docker-composed version of this repository.

my docker-compose.yml:

version: "2.1"
services:
  sonarr:
    container_name: sonarr
    build:
      context: /volume1/configs/repos/sonarr # this is a git pulled https://github.com/mdhiggins/sonarr-sma.git#build
      args:
        ffmpeg_tag: 4.4-vaapi2004
    environment:
      - PUID=1028
      - PGID=65536
      - TZ=Europe/Berlin
      - MAX_NAME=143 # File length for encrypted file system
    volumes:
      - /volume1/configs/sma_sonarr:/usr/local/sma/config
      - /volume1/downloads/complete:/downloads
      - /volume1/serien:/tv
      - /volume1/configs/sonarr:/config
    ports:
      - 38004:8989/tcp
    devices:
      - /dev/dri/renderD128:/dev/dri/renderD128
      - /dev/dri/card0:/dev/dri/card0
    network_mode: bridge

This built fine, though there were some warnings (red text) logged:
build_log.txt

It also seems to start up, but keeps hanging there with lots of errors in the sonarr.txt log:
sonarr.txt

console errors have a liitle bit more to say (Temporary failure resolving 'download.mono-project.com' etc.):
console_error.log

It mostly seems to complain about missing permissions for /etc and System.DllNotFoundException: sqlite3.

Do you have any idea what could be going wrong here? It worked fine before using the prebuilt image with the same options.

ffprobe/ffmpeg error

When trying to do a convert I noticed this error in the log:

FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/bin/ffprobe'

When trying to run ffprobe from the command line, I get:

bash: /usr/local/bin/ffprobe: cannot execute: required file not found

But it is there:

-rwxr-xr-x 1 root users 133768 Mar 21 07:24 ffprobe

Same thing happens with ffmpeg.

Installing with docker with the build tag.

FFMPEG files missing after starting container

When I start the container, my /usr/local/bin directory is empty. When I pull the logs, I get the following info:
[cont-init.d] 90-sma-config: executing...
xz: (stdin): File format not recognized
tar: Child returned status 1
tar: Error is not recoverable: exiting now
chown: cannot access '/usr/local/bin/ffmpeg': No such file or directory
chown: cannot access '/usr/local/bin/ffprobe': No such file or directory
chmod: cannot access '/usr/local/bin/ffmpeg': No such file or directory
chmod: cannot access '/usr/local/bin/ffprobe': No such file or directory
[cont-init.d] 90-sma-config: exited 0.

Reruns will sometimes fix the issue.

Unknown encoder 'h264_nvenc'

I have sonarr working perfectly and tried to setup radarr using the same method i did for sonarr which was building the local image

docker build https://github.com/mdhiggins/radarr-sma.git#build -t smaradarr --build-arg ffmeg_tag=nvidia2004 --build-arg radarr_tag=develop

Then i used

docker run -ti ^
    --name=radarr ^
    --restart unless-stopped ^
    -v E:/Share/_Docker_/RADARR/sma/:/usr/local/sma/config ^
    -v E:/Share/_Docker_/RADARR/radarr:/config ^
    -v E:/Share/MOVIES/:/movies ^
    -v E:/Share/_Downloads_:/downloads ^
    -p 7878:7878 ^
    -e PUID=${PUID} ^
    -e PGID=${PGID} ^
    smaradarr

i have the same autoprocess.ini setup

[Converter]
ffmpeg = /usr/local/bin/ffmpeg
ffprobe = /usr/local/bin/ffprobe
threads = 0
hwaccels = 
hwaccel-decoders = h264_cuvid, mjpeg_cuvid, mpeg1_cuvid, mpeg2_cuvid, mpeg4_cuvid, vc1_cuvid, hevc_qsv, h264_qsv, hevc_vaapi, h264_vaapi
hwdevices = vaapi:/dev/dri/renderD128
hwaccel-output-format = vaapi:vaapi
output-directory = 
output-format = mp4
output-extension = mp4
temp-extension = 
minimum-size = 0
ignored-extensions = nfo, ds_store
copy-to = 
move-to = 
delete-original = True
sort-streams = True
process-same-extensions = False
bypass-if-copying-all = False
force-convert = False
post-process = False
wait-post-process = False
detailed-progress = False
opts-separator = ,
preopts = 
postopts = 
regex-directory-replace = [^\w\-_\. ]

[Permissions]
chmod = 0644
uid = -1
gid = -1

[Metadata]
relocate-moov = True
full-path-guess = True
tag = True
tag-language = eng
download-artwork = poster
sanitize-disposition = 
strip-metadata = False
keep-titles = False

[Video]
codec = h264_nvenc, x264, h264
max-bitrate = 3000
bitrate-ratio = 
crf = -1
crf-profiles = 
preset = 
codec-parameters = 
dynamic-parameters = False
max-width = 1920
profile = 
max-level = 0.0
pix-fmt = yuv420p
filter = 
force-filter = False

Heres the full log from one of the movies it tried

2021-11-22 22:22:51 - RadarrPostProcess - INFO - Radarr extra script post processing started.
2021-11-22 22:22:51 - resources.readsettings - INFO - /usr/local/sma/venv/bin/python3
2021-11-22 22:22:51 - resources.readsettings - INFO - Loading config file /usr/local/sma/config/autoProcess.ini.
2021-11-22 22:23:04 - resources.mediaprocessor - INFO - Processing /movies/The Matrix (1999)/The Matrix (1999).mkv.
2021-11-22 22:23:04 - resources.mediaprocessor - INFO - Input Data
2021-11-22 22:23:04 - resources.mediaprocessor - INFO - {
    "format": "matroska,webm",
    "format-fullname": "unknown",
    "video": {
        "index": 0,
        "codec": "hevc",
        "bitrate": 1888400,
        "pix_fmt": "yuv420p10le",
        "profile": "2",
        "fps": 23.976023976023978,
        "framedata": {
            "pix_fmt": "yuv420p10le",
            "color_space": "bt709",
            "color_primaries": "bt709",
            "color_transfer": "bt709"
        },
        "dimensions": "1920x1080",
        "level": 4.0,
        "field_order": "unknown"
    },
    "audio": [
        {
            "index": 1,
            "codec": "ac3",
            "bitrate": 384000,
            "channels": 6,
            "samplerate": 48000,
            "language": "eng",
            "disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired"
        }
    ],
    "subtitle": [
        {
            "index": 2,
            "codec": "hdmv_pgs_subtitle",
            "bitrate": 28549,
            "disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "language": "eng"
        },
        {
            "index": 3,
            "codec": "hdmv_pgs_subtitle",
            "bitrate": 22888,
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced+hearing_impaired-visual_impaired",
            "language": "eng"
        },
        {
            "index": 4,
            "codec": "subrip",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "language": "eng"
        }
    ],
    "attachment": []
}
2021-11-22 22:23:04 - resources.mediaprocessor - INFO - Reading video stream.
2021-11-22 22:23:04 - resources.mediaprocessor - INFO - Video codec detected: hevc.
2021-11-22 22:23:04 - resources.mediaprocessor - INFO - Pix Fmt: yuv420p10le.
2021-11-22 22:23:04 - resources.mediaprocessor - INFO - Profile: 2.
2021-11-22 22:23:04 - resources.mediaprocessor - INFO - Video codec parameters None.
2021-11-22 22:23:04 - resources.mediaprocessor - INFO - Creating h264_nvenc video stream from source stream 0.
2021-11-22 22:23:04 - resources.mediaprocessor - INFO - Reading audio streams.
2021-11-22 22:23:04 - resources.mediaprocessor - INFO - The following stream indexes have been identified as being copies: [] [stream-codec-combinations].
2021-11-22 22:23:04 - resources.mediaprocessor - INFO - Audio detected for stream 1 - ac3 eng 6 channel.
2021-11-22 22:23:04 - resources.mediaprocessor - INFO - Creating aac audio stream from source stream 1.
2021-11-22 22:23:04 - resources.mediaprocessor - INFO - Creating aac audio stream from source audio stream 1 [universal-audio].
2021-11-22 22:23:04 - resources.mediaprocessor - INFO - Found 0 streams that can be removed from the output file since they will dupcliates [stream-codec-combinations].
2021-11-22 22:23:04 - resources.mediaprocessor - INFO - Default audio stream set to eng aac 6 channel stream [default-more-channels: True].
2021-11-22 22:23:04 - resources.mediaprocessor - INFO - Reading subtitle streams.
2021-11-22 22:23:14 - resources.mediaprocessor - INFO - Image-based subtitle detected for stream 2 - hdmv_pgs_subtitle eng.
2021-11-22 22:23:14 - resources.mediaprocessor - INFO - Image-based subtitle detected for stream 3 - hdmv_pgs_subtitle eng.
2021-11-22 22:23:15 - resources.mediaprocessor - INFO - Text-based subtitle detected for stream 4 - subrip eng.
2021-11-22 22:23:15 - resources.mediaprocessor - INFO - Creating mov_text subtitle stream from source stream 4.
2021-11-22 22:23:15 - resources.mediaprocessor - INFO - Scanned for external subtitles and found 0 results in your approved languages.
2021-11-22 22:23:15 - resources.mediaprocessor - INFO - Output Data
2021-11-22 22:23:15 - resources.mediaprocessor - INFO - {
    "source": [
        "/movies/The Matrix (1999)/The Matrix (1999).mkv"
    ],
    "format": "mp4",
    "video": {
        "codec": "h264_nvenc",
        "map": 0,
        "bitrate": 1816.8379499999999,
        "crf": -1,
        "maxrate": null,
        "bufsize": null,
        "level": 0.0,
        "profile": null,
        "preset": null,
        "pix_fmt": "yuv420p",
        "field_order": "unknown",
        "width": null,
        "filter": null,
        "params": null,
        "framedata": null,
        "title": "FHD",
        "debug": "video.pix_fmt"
    },
    "audio": [
        {
            "map": 1,
            "codec": "aac",
            "channels": 2,
            "bitrate": 256,
            "samplerate": null,
            "sampleformat": "",
            "filter": "pan=stereo|FL=0.5*FC+0.707*FL+0.707*BL+0.5*LFE|FR=0.5*FC+0.707*FR+0.707*BR+0.5*LFE",
            "language": "eng",
            "disposition": "-default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "title": "Stereo",
            "debug": "universal-audio"
        },
        {
            "map": 1,
            "codec": "aac",
            "channels": 6,
            "bitrate": 768,
            "filter": null,
            "samplerate": null,
            "sampleformat": "",
            "language": "eng",
            "disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "bsf": null,
            "title": "5.1 Channel",
            "debug": "audio"
        }
    ],
    "subtitle": [
        {
            "map": 4,
            "codec": "mov_text",
            "language": "eng",
            "disposition": "+default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired",
            "title": null,
            "debug": "subtitle.embed-subs"
        }
    ],
    "attachment": []
}
2021-11-22 22:23:15 - resources.mediaprocessor - INFO - Preopts
2021-11-22 22:23:15 - resources.mediaprocessor - INFO - [
    "-fix_sub_duration"
]
2021-11-22 22:23:15 - resources.mediaprocessor - INFO - Postopts
2021-11-22 22:23:15 - resources.mediaprocessor - INFO - [
    "-threads",
    "0",
    "-metadata:g",
    "encoding_tool=SMA"
]
2021-11-22 22:23:15 - resources.mediaprocessor - INFO - Starting conversion.
2021-11-22 22:23:15 - resources.mediaprocessor - INFO - FFmpeg command:
2021-11-22 22:23:15 - resources.mediaprocessor - INFO - ======================
2021-11-22 22:23:15 - resources.mediaprocessor - INFO - /usr/local/bin/ffmpeg -fix_sub_duration -i "/movies/The Matrix (1999)/The Matrix (1999).mkv" -vcodec h264_nvenc -map 0:0 -pix_fmt yuv420p -vb 1816k -metadata:s:v BPS=1816000 -metadata:s:v BPS-eng=1816000 -metadata:s:v title=FHD -metadata:s:v handler_name=FHD -c:a:0 aac -map 0:1 -ac:a:0 2 -b:a:0 256k -metadata:s:a:0 BPS=256000 -metadata:s:a:0 BPS-eng=256000 -filter:a:0 pan=stereo|FL=0.5*FC+0.707*FL+0.707*BL+0.5*LFE|FR=0.5*FC+0.707*FR+0.707*BR+0.5*LFE -metadata:s:a:0 title=Stereo -metadata:s:a:0 handler_name=Stereo -metadata:s:a:0 language=eng -disposition:a:0 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -strict experimental -c:a:1 aac -map 0:1 -ac:a:1 6 -b:a:1 768k -metadata:s:a:1 BPS=768000 -metadata:s:a:1 BPS-eng=768000 -metadata:s:a:1 "title=5.1 Channel" -metadata:s:a:1 "handler_name=5.1 Channel" -metadata:s:a:1 language=eng -disposition:a:1 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -strict experimental -c:s:0 mov_text -map 0:4 -metadata:s:s:0 title= -metadata:s:s:0 handler_name= -metadata:s:s:0 language=eng -disposition:s:0 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -f mp4 -threads 0 -metadata:g encoding_tool=SMA -y "/movies/The Matrix (1999)/The Matrix (1999).mp4"
2021-11-22 22:23:15 - resources.mediaprocessor - INFO - ======================
2021-11-22 22:23:15 - resources.mediaprocessor - ERROR - Error converting file, FFMPEG error.
Traceback (most recent call last):
  File "/usr/local/sma/resources/mediaprocessor.py", line 1752, in convert
    for timecode, debug in conv:
  File "/usr/local/sma/converter/__init__.py", line 330, in convert
    for timecode, debug in self.ffmpeg.convert(outfile,
  File "/usr/local/sma/converter/ffmpeg.py", line 728, in convert
    raise FFMpegConvertError('Exited with code %d' % p.returncode, cmd,
converter.ffmpeg.FFMpegConvertError: <unprintable FFMpegConvertError object>
2021-11-22 22:23:15 - resources.mediaprocessor - ERROR - /usr/local/bin/ffmpeg -fix_sub_duration -i /movies/The Matrix (1999)/The Matrix (1999).mkv -vcodec h264_nvenc -map 0:0 -pix_fmt yuv420p -vb 1816k -metadata:s:v BPS=1816000 -metadata:s:v BPS-eng=1816000 -metadata:s:v title=FHD -metadata:s:v handler_name=FHD -c:a:0 aac -map 0:1 -ac:a:0 2 -b:a:0 256k -metadata:s:a:0 BPS=256000 -metadata:s:a:0 BPS-eng=256000 -filter:a:0 pan=stereo|FL=0.5*FC+0.707*FL+0.707*BL+0.5*LFE|FR=0.5*FC+0.707*FR+0.707*BR+0.5*LFE -metadata:s:a:0 title=Stereo -metadata:s:a:0 handler_name=Stereo -metadata:s:a:0 language=eng -disposition:a:0 -default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -strict experimental -c:a:1 aac -map 0:1 -ac:a:1 6 -b:a:1 768k -metadata:s:a:1 BPS=768000 -metadata:s:a:1 BPS-eng=768000 -metadata:s:a:1 title=5.1 Channel -metadata:s:a:1 handler_name=5.1 Channel -metadata:s:a:1 language=eng -disposition:a:1 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -strict experimental -c:s:0 mov_text -map 0:4 -metadata:s:s:0 title= -metadata:s:s:0 handler_name= -metadata:s:s:0 language=eng -disposition:s:0 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -f mp4 -threads 0 -metadata:g encoding_tool=SMA -y /movies/The Matrix (1999)/The Matrix (1999).mp4
2021-11-22 22:23:15 - resources.mediaprocessor - ERROR - ffmpeg version 4.3.3 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
  configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libass --enable-fontconfig --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libbluray --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-libsrt --enable-libaribb24 --enable-libvmaf --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
[matroska,webm @ 0x56444b427700] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x56444b427700] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from '/movies/The Matrix (1999)/The Matrix (1999).mkv':
  Metadata:
    title           : The Matrix (1999) [OPEN MATTE] [WEB-DL 1080p 10bit DD5.1 x265] - Encoded by Thakur
    encoder         : libebml v1.4.0 + libmatroska v1.6.1
    creation_time   : 2021-05-11T04:08:31.000000Z
  Duration: 02:16:41.66, start: 0.000000, bitrate: 2296 kb/s
    Chapter #0:0: start 0.000000, end 205.789000
    Metadata:
      title           : Trinity in a Jam
    Chapter #0:1: start 205.789000, end 395.645000
    Metadata:
      title           : Impossible Pursuit
    Chapter #0:2: start 395.645000, end 582.665000
    Metadata:
      title           : Follow Instructions
    Chapter #0:3: start 582.665000, end 718.301000
    Metadata:
      title           : The Question
    Chapter #0:4: start 718.301000, end 1007.423000
    Metadata:
      title           : "They're Coming for You"
    Chapter #0:5: start 1007.423000, end 1293.542000
    Metadata:
      title           : Unable to Speak
    Chapter #0:6: start 1293.542000, end 1508.590000
    Metadata:
      title           : Getting the Bug Out
    Chapter #0:7: start 1508.590000, end 1731.146000
    Metadata:
      title           : Morpheus' Proposal
    Chapter #0:8: start 1731.146000, end 1945.193000
    Metadata:
      title           : Down the Rabbit Hole
    Chapter #0:9: start 1945.193000, end 2121.870000
    Metadata:
      title           : Slimy Rebirth
    Chapter #0:10: start 2121.870000, end 2320.902000
    Metadata:
      title           : Nebuchadnezzar's Crew
    Chapter #0:11: start 2320.902000, end 2662.577000
    Metadata:
      title           : The Real World
    Chapter #0:12: start 2662.577000, end 2793.541000
    Metadata:
      title           : The Search Is Over
    Chapter #0:13: start 2793.541000, end 2937.852000
    Metadata:
      title           : Training Begins
    Chapter #0:14: start 2937.852000, end 3211.291000
    Metadata:
      title           : Morpheus/Neo Matchup
    Chapter #0:15: start 3211.291000, end 3392.139000
    Metadata:
      title           : First Jump
    Chapter #0:16: start 3392.139000, end 3541.288000
    Metadata:
      title           : The Gatekeepers
    Chapter #0:17: start 3541.288000, end 3668.582000
    Metadata:
      title           : Running Silent and Deep
    Chapter #0:18: start 3668.582000, end 3916.496000
    Metadata:
      title           : Dealing for Bliss
    Chapter #0:19: start 3916.496000, end 4066.813000
    Metadata:
      title           : Off to See the Oracle
    Chapter #0:20: start 4066.813000, end 4353.432000
    Metadata:
      title           : There Is No Spoon
    Chapter #0:21: start 4353.432000, end 4669.582000
    Metadata:
      title           : Choices...and a Cookie
    Chapter #0:22: start 4669.582000, end 4863.108000
    Metadata:
      title           : Glitch in the Matrix
    Chapter #0:23: start 4863.108000, end 5105.350000
    Metadata:
      title           : One Left Behide
    Chapter #0:24: start 5105.350000, end 5385.130000
    Metadata:
      title           : Heroes Unplugged
    Chapter #0:25: start 5385.130000, end 5487.565000
    Metadata:
      title           : Cypher's Burnout
    Chapter #0:26: start 5487.565000, end 5845.256000
    Metadata:
      title           : Matters of Belief
    Chapter #0:27: start 5845.256000, end 6064.976000
    Metadata:
      title           : Virus to Be Cured
    Chapter #0:28: start 6064.976000, end 6260.337000
    Metadata:
      title           : Lobby Shooting Spree
    Chapter #0:29: start 6260.337000, end 6420.497000
    Metadata:
      title           : Dodge This
    Chapter #0:30: start 6420.497000, end 6618.529000
    Metadata:
      title           : Gotcha
    Chapter #0:31: start 6618.529000, end 6776.687000
    Metadata:
      title           : Rooftop Rescue
    Chapter #0:32: start 6776.687000, end 6996.907000
    Metadata:
      title           : Subway Showdown
    Chapter #0:33: start 6996.907000, end 7129.372000
    Metadata:
      title           : "My Name Is Neo"
    Chapter #0:34: start 7129.372000, end 7347.423000
    Metadata:
      title           : Sentinels Attack
    Chapter #0:35: start 7347.423000, end 7541.784000
    Metadata:
      title           : "He Is the One"
    Chapter #0:36: start 7541.784000, end 7726.802000
    Metadata:
      title           : Final Connections
    Chapter #0:37: start 7726.802000, end 8201.657000
    Metadata:
      title           : End Credits ("Wake Up Rock Is Dead")
    Stream #0:0: Video: hevc, yuv420p10le(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
    Metadata:
      title           : Encoded by Thakur
      BPS-eng         : 1888400
      DURATION-eng    : 02:16:41.652000000
      NUMBER_OF_FRAMES-eng: 196643
      NUMBER_OF_BYTES-eng: 1936000374
      _STATISTICS_WRITING_APP-eng: mkvmerge v49.0.0 ('Sick Of Losing Soulmates') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-05-11 04:08:31
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
    Metadata:
      title           : Dolby Digital 5.1CH 384kbps - Encoded by Thakur
      BPS-eng         : 384000
      DURATION-eng    : 02:16:18.688000000
      NUMBER_OF_FRAMES-eng: 255584
      NUMBER_OF_BYTES-eng: 392577024
      _STATISTICS_WRITING_APP-eng: mkvmerge v49.0.0 ('Sick Of Losing Soulmates') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-05-11 04:08:31
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle (default)
    Metadata:
      title           : PGS - Encoded by Thakur
      BPS-eng         : 28549
      DURATION-eng    : 02:08:16.235000000
      NUMBER_OF_FRAMES-eng: 2692
      NUMBER_OF_BYTES-eng: 27465003
      _STATISTICS_WRITING_APP-eng: mkvmerge v49.0.0 ('Sick Of Losing Soulmates') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-05-11 04:08:31
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : PGS [SDH] - BluRay
      BPS-eng         : 22888
      DURATION-eng    : 02:15:33.209000000
      NUMBER_OF_FRAMES-eng: 2746
      NUMBER_OF_BYTES-eng: 23269431
      _STATISTICS_WRITING_APP-eng: mkvmerge v49.0.0 ('Sick Of Losing Soulmates') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-05-11 04:08:31
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:4(eng): Subtitle: subrip
    Metadata:
      title           : SRT - Encoded by Thakur
      BPS-eng         : 40
      DURATION-eng    : 02:08:15.935000000
      NUMBER_OF_FRAMES-eng: 1346
      NUMBER_OF_BYTES-eng: 38857
      _STATISTICS_WRITING_APP-eng: mkvmerge v49.0.0 ('Sick Of Losing Soulmates') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-05-11 04:08:31
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:5: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1575x2367 [SAR 96:96 DAR 175:263], 90k tbr, 90k tbn, 90k tbc (attached pic)
    Metadata:
      filename        : The Matrix (1999) - Encoded by Ashish Thakur.jpg
      mimetype        : image/jpeg
Unknown encoder 'h264_nvenc'

2021-11-22 22:23:15 - RadarrPostProcess - INFO - Processing returned False.
2021-11-22 22:23:15 - RadarrPostProcess - ERROR - Error processing file.
Traceback (most recent call last):
  File "/usr/local/sma/postRadarr.py", line 301, in <module>
    sys.exit(1)
SystemExit: 1

Build fails with apt-get not found

Docker compose file contains:

    build:
      context: https://github.com/mdhiggins/radarr-sma.git#build
      args:
        - radarr_tag=nightly
        - ffmpeg_tag=snapshot-vaapi

Get the following error on docker-compose build

Step 11/17 : RUN   apt-get update &&   apt-get install -y     git     wget     python3     python3-pip     ${extra_packages} &&   mkdir ${SMA_PATH} &&   git clone https://github.com/mdhiggins/sickbeard_mp4_automator.git ${SMA_PATH} &&   python3 -m pip install --user --upgrade pip &&   python3 -m pip install --user virtualenv &&   python3 -m virtualenv ${SMA_PATH}/venv &&   ${SMA_PATH}/venv/bin/pip install -r ${SMA_PATH}/setup/requirements.txt &&   chgrp users /usr/local/bin/ffmpeg &&   chgrp users /usr/local/bin/ffprobe &&   chmod g+x /usr/local/bin/ffmpeg &&   chmod g+x /usr/local/bin/ffprobe &&   apt-get purge --auto-remove -y &&   apt-get clean &&   rm -rf     /tmp/*     /var/lib/apt/lists/*     /var/tmp/*
 ---> Running in 42f3bb45e964
/bin/sh: apt-get: not found

LinuxServer.io rebased the nightly tag to Alpine: https://info.linuxserver.io/issues/2022-02-03-radarr/

Can this be accounted for in your dockerfile?

Warn ImportApprovedMovie Couldn't import movie

I am running SABnzbd, radarr-sma, and sonarr-sma all in docker containers. Sonarr seems to be working fine, but radarr-sma does not seem to be executing. Radarr makes the call to SABnzbd and the movie downloads, but I think it is failing to import and then does not call sma. Testing the custom script from the radarr UI works fine. I am using the same settings as in sonarr except calling the postradarr script instead.

From bash within the container, I can get to the config, downloads, and movies folders and see files so I don't think it a volume mount or permissions issue. Not sure what to try next.

Radarr logs
radarr.4.txt

Radarr-sma logs
radarr-sma.log

image

Error in update.py

Log of error

[cont-init.d] 90-sma-config: executing...
From https://github.com/mdhiggins/sickbeard_mp4_automator
* branch master -> FETCH_HEAD
Already up to date.
Traceback (most recent call last):
File "/usr/local/sma/update.py", line 62, in <module>
main()
File "/usr/local/sma/update.py", line 25, in main
sslport = root.find("SslPort").text
AttributeError: 'NoneType' object has no attribute 'text'
[cont-init.d] 90-sma-config: exited 1.

I don't see the same error in sonarr.

Just a note, this is using the preview image tag

Burn in subtitles from external srt

Mr. Higgins,
Thank you so much for these amazing scripts!

I've recently transitioned to running my setups in docker containers. I've 2 sonarrsma containers and a radarrsma container and these are working fantastic. I'm building another container strictly for manual processing.

I found this thread: mdhiggins/sonarr-sma#14 where you'd mentioned the manual command is: $SMA_PATH/venv/bin/python3 $SMA_PATH/manual.py -i

From there I thought I was gold. I can convert individual files or point to a directory and convert the entire directory. I can ignore the source mkv's embedded subs. I can set the autoProcess.ini to embed an external srt ...but I can't seem to get the external srt to actually "burn" into the video. I feel like I'm missing something simple and just can't place my finger on it (or this is a limitation I'm unaware of). Everything else seems to work as designed.

Bashing into the container I run: $SMA_PATH/venv/bin/python3 $SMA_PATH/manual.py -i /source_location/Test.mkv
In my Source Location I have: Test.mkv and Test.forced.eng.srt
The subtitle module in the autoProcess.ini I currently have as:
[Subtitle]
codec = mov_text
codec-image-based =
languages = eng
default-language = eng
first-stream-of-language = False
encoding =
burn-subtitles = True
burn-dispositions = forced
embed-subs = True
embed-image-subs = False
embed-only-internal-subs = False
filename-dispositions = forced
ignore-embedded-subs = True
ignored-dispositions =
unique-dispositions = False
attachment-codec =

The above setting actually embeds my external source.srt
*In Plex, this is workable as I just have to set the client to play the external or set it permanently in the Subtitle settings

The ultimate goal is to have the subs burned in so additional client settings are unneeded.

In the above module, if I change to "codec = srt" & change to "embed-subs = False", this log line error is produced (can supply entire log if needed):
Scanned for external subtitles and found 1 results in your approved languages.
Skipping external subtitle file Test.forced.eng.srt, no appropriate codecs found or embed disabled.
No valid subtitle stream candidates found to be burned into video stream [burn-subtitles].

This is where I get stuck and have tried multitude of variations within the Subtitle module. All to no avail. The best I can get is to get the external srt file to be embedded into the converted mp4 file thus forcing the video client to select the subtitle.

I've read a multitude of articles pertaining to mov_text/srt files when it comes to mp4 containers. Admittedly, I still don't have my head completely wrapped around it.

If any other info is needed, I'll certainly do my best to provide what's asked. If you'd be able to provide any assistance in getting me nudged in the right direction, I'd greatly appreciate it.

*Apologies if I've linked or sourced anything in an incorrect format. This is my first time posting anything on github.

Add option for conversion timeout

I'm running into an issue with some files taking a very long time to process or just not converting at all. While this is happening my CPU is basically pegged at >90% until i restart the container or manually kill the process. Was wondering if you could add a timeout function to either cancel the conversion and just retain the original file or something like that.

ffmpeg not installing

elif [[ -z "${SMA_FFMPEG_PATH}" ]] && [[ -z "${SMA_FFPROBE_PATH}" ]]; then

Hi, the line above is returning true so that the following ffmpeg download block does not execute.

I commented this out in the container and ffmpeg was then available and my script executed

Before, 'which ffmpeg' returned nothing.
After, 'which ffmpeg' returned /usr/local/bin/ffmpeg.

Script exited with code: 1

Been using the manual script for a bit and its been great. Trying to set up a connection for auto conversions and getting "Script exited with code: 1" as soon as I hit save for /usr/local/sma/postRadarr.sh. Not sure if I set something up incorrectly; using docker compose for everything.

radarr:
image: mdhiggins/radarr-sma
container_name: radarr
restart: always
volumes:
- :/data
- :/movies
- :/config
- /pool/sma/radarr:/usr/local/sma/config
environment:
- PUID=
- PGID=
- TZ=<>
ports:
- 7878:7878
networks:
- medianet

Sorry, tried formatting as code and it wants to drop everything on one line (redacted some things). Let me know if you need more info. Thanks!

After build successfully; 1 error, Status: COPY failed: stat build: file does not exist, Code: 1

The Radarr Build version isn't successfully building anymore.
Docker compose file...

  radarr:
    build:
      context: https://github.com/mdhiggins/radarr-sma.git#build
      args:
        - ffmpeg_tag=5.0-nvidia2004
        - radarr_tag=develop
    container_name: radarr
    restart: unless-stopped
    networks:
      t2_proxy:
        ipv4_address: 192.168.90.164
    depends_on:
      - prowlarr
      - plex
      - nzbget
    deploy:
      resources:
        reservations:
          devices:
          - capabilities: [gpu, compute, utility, graphics, video, display]
            driver: nvidia
    volumes:
      - $DOCKERDIR/appdata/radarr:/config
      # Optional. See why MediaCover is mounted as volume https://github.com/htpcBeginner/docker-traefik/discussions/147
      - /mnt/evil/Temp/RadarrMediaCover:/config/MediaCover
      - trueNAS:/data
      - $DOCKERDIR/appdata/radarr-sma:/usr/local/sma/config
    environment:
      PUID: $PUID
      PGID: $PGID
      TZ: $TZ
      SMA_UPDATE: "true"
      NVIDIA_VISIBLE_DEVICES: all
      NVIDIA_DRIVER_CAPABILITIES: all
      LD_LIBRARY_PATH: "/usr/local/cuda-11.4/lib64"
    labels:
      - "com.centurylinklabs.watchtower.enable=false"
      - "traefik.enable=true"
      ## HTTP Routers Auth Bypass
      - "traefik.http.routers.radarr-rtr-bypass.entrypoints=https"
      - "traefik.http.routers.radarr-rtr-bypass.rule=Host(`radarr.$DOMAINNAME0`) && (Headers(`X-Api-Key`, `$RADARR_API_KEY`) || Host(`radarr.$DOMAINNAME0`) && Query(`apikey`, `$RADARR_API_KEY`))"
      - "traefik.http.routers.radarr-rtr-bypass.priority=100"
      ## HTTP Routers Auth
      - "traefik.http.routers.radarr-rtr.entrypoints=https"
      - "traefik.http.routers.radarr-rtr.priority=99"
      ## Middlewares
      - "traefik.http.routers.radarr-rtr-bypass.middlewares=chain-no-auth@file"
      - "traefik.http.routers.radarr-rtr.middlewares=chain-oauth@file"
      ## HTTP Services
      - "traefik.http.routers.radarr-rtr.service=radarr-svc"
      - "traefik.http.routers.radarr-rtr-bypass.service=radarr-svc"
      - "traefik.http.services.radarr-svc.loadbalancer.server.port=7878"

Output...

Sending build context to Docker daemon  22.12kB
Step 1/19 : ARG ffmpeg_source=jrottenberg/ffmpeg
Step 2/19 : ARG ffmpeg_tag=4.4-ubuntu
Step 3/19 : ARG radarr_tag=latest
Step 4/19 : ARG extra_packages
Step 5/19 : FROM ${ffmpeg_source}:${ffmpeg_tag} as ffmpeg
5.0-nvidia2004: Pulling from jrottenberg/ffmpeg
7b1a6ab2e44d: Pull complete
e16cee16ca17: Pull complete
6ec83366bb9c: Pull complete
b965687ef91b: Pull complete
245ba75186c4: Pull complete
10af6bd0c329: Pull complete
8e8c4ffb362c: Pull complete
f00bf28453dd: Pull complete
4b786be5a197: Pull complete
918b711862d3: Pull complete
01bab04e90aa: Pull complete
6f2cf2adf93f: Pull complete
b06bda5f1fd7: Pull complete
Digest: sha256:191bf22b8ebaab5148291c3be8bf2d6bff163e6b1eca5bdbe2c35c20e2b99559
Status: Downloaded newer image for jrottenberg/ffmpeg:5.0-nvidia2004
 ---> 9096aaa59d4b
Step 6/19 : FROM lscr.io/linuxserver/radarr:${radarr_tag}
develop: Pulling from linuxserver/radarr
965460678a8d: Already exists
8ce3e9125882: Already exists
2b7247a86269: Already exists
b7af881e82cb: Already exists
00b5a40f8145: Already exists
96d7e89cf51e: Already exists
af1459358d04: Already exists
33e3ce69c6af: Pull complete
3785a60afd3d: Pull complete
Digest: sha256:56c8d1ecb1505f4e9c7ed02781a337bbc9f09d982cfd9513ccfef332a06f0d3c
Status: Downloaded newer image for lscr.io/linuxserver/radarr:develop
 ---> ac977b9d17e3
Step 7/19 : LABEL maintainer="mdhiggins <[email protected]>"
 ---> Running in 3ce2b103ba70
Removing intermediate container 3ce2b103ba70
 ---> c8405b2e0022
Step 8/19 : COPY --from=ffmpeg /usr/local/ /usr/local/
 ---> 42b763980e30
Step 9/19 : COPY --from=ffmpeg /build /
Sending build context to Docker daemon   22.1kB
Step 1/17 : ARG ffmpeg_tag=4.4-ubuntu
Step 2/17 : ARG sonarr_tag=latest
Step 3/17 : ARG extra_packages
Step 4/17 : FROM jrottenberg/ffmpeg:${ffmpeg_tag} as ffmpeg
 ---> 9096aaa59d4b
Step 5/17 : FROM lscr.io/linuxserver/sonarr:${sonarr_tag}
develop: Pulling from linuxserver/sonarr
6852aaeda061: Pull complete
14fa6337c2df: Pull complete
13695a514c54: Pull complete
1aa8a85bbe40: Pull complete
ecfa25acf88f: Pull complete
035361bee809: Pull complete
278a9d93d2dc: Pull complete
322e5b00563d: Pull complete
19537216f2a9: Pull complete
6cccee8126fb: Pull complete
Digest: sha256:ce70e931713b6478a9a9829a7e484796588885b9d27af267dbac8dd4a2c1306b
Status: Downloaded newer image for lscr.io/linuxserver/sonarr:develop
 ---> fa1fbb91872e
Step 6/17 : LABEL maintainer="mdhiggins <[email protected]>"
 ---> Running in 4198f3e8328c
Removing intermediate container 4198f3e8328c
 ---> e4096f2f486a
Step 7/17 : COPY --from=ffmpeg /usr/local/ /usr/local/
 ---> 4036f3c65985
Step 8/17 : ENV SMA_PATH /usr/local/sma
 ---> Running in 8b0c25d8d237
Removing intermediate container 8b0c25d8d237
 ---> 8646382f171f
Step 9/17 : ENV SMA_RS Sonarr
 ---> Running in ff0807ea75ce
Removing intermediate container ff0807ea75ce
 ---> 9cae61c39e16
Step 10/17 : ENV SMA_UPDATE false
 ---> Running in 8b596e2b0b06
Removing intermediate container 8b596e2b0b06
 ---> bdc8b5ffaf5a
Step 11/17 : ENV SMA_HWACCEL true
 ---> Running in a9aa6fd233d9
Removing intermediate container a9aa6fd233d9
 ---> 08a94bf1f8fc
Step 12/17 : RUN   mkdir ${SMA_PATH} &&   chgrp users /usr/local/bin/ffmpeg &&   chgrp users /usr/local/bin/ffprobe &&   chmod g+x /usr/local/bin/ffmpeg &&   chmod g+x /usr/local/bin/ffprobe
 ---> Running in 7480c10fbb67
Removing intermediate container 7480c10fbb67
 ---> 7aba6057a589
Step 13/17 : EXPOSE 8989
 ---> Running in eb6a93eb9903
Removing intermediate container eb6a93eb9903
 ---> 5fc61fbbd1dd
Step 14/17 : VOLUME /config
 ---> Running in 87cb33f3363f
Removing intermediate container 87cb33f3363f
 ---> da587f87c4b4
Step 15/17 : VOLUME /usr/local/sma/config
 ---> Running in 905fc79b51b9
Removing intermediate container 905fc79b51b9
 ---> c8b12f9c277c
Step 16/17 : COPY extras/ ${SMA_PATH}/
 ---> 46d182c0f46b
Step 17/17 : COPY root/ /
 ---> 3eb3cd2e4efe
Successfully built 3eb3cd2e4efe
Successfully tagged docker_sonarr:latest
1 error occurred:
	* Status: COPY failed: stat build: file does not exist, Code: 1

Not sure if this is releated to #34 , but I'm happy to try and provide any further info that may help.

manual.py script not working in container

In the latest container, the manual.py script is not working due to a guessit error

Traceback (most recent call last):
File "./manual.py", line 5, in
import guessit
ModuleNotFoundError: No module named 'guessit'

Is something missing?

Radarr keeps downloading movies over and over again

Hey,

Firstly, this is fantastic. I’ve used your packages for a few years now, and they help my automated setup no end!

Since the changes to your docker images, though, I’ve started having an issue. I also use your sonarr-sma and I have no issues with that whatsoever (that I can see).

But radar-sma will grab a movie from my wanted list, download it, and then I can see from the logs that it will start post-processing. It moves the .mkv from SABnzbd to the correct folder, will read the autoProcess.ini, and convert the file to .m4v. But then for some reason it will download the file again, delete the old one, and keep looping through this. Last night it downloaded the same movie 14 times! I’m not sure whether it somehow doesn’t recognise that there is a file in the folder, I have no clue, but it’s eating through data.

Have you seen this issue before, and if so can you please assist? I’ve obviously had to make a few amendments to my setup to accommodate the new images (i.e. never used to have Download Handling enabled, but do now).

There are a few errors in the log files around DB corruption (but I have no idea if that is a known issue or not), and not sure if that’s related.

Happy to provide log files if needed, just let me know what you’d need.

Thanks again!

Radarr V3

Will you be adding a preview tag like on the sonarr-sma

Unraid

How to use the Radarr-SMA container, but set radarr to update with linux server updates?

How to check conversion progress?

First of all, thank you for baking this into one docker! I'm using this in docker on a synology NAS.

I've followed your instructions to get it setup (despite the documentation giving different advice for path and args), a file has been downloaded but nothing happens. I don't know where to check the progress or view logs of whats going on - please can you point me in the right direction?

Thanks!

Issue with conversion

Pulled the latest image last night, now getting the following error:

FFmpeg command:

/usr/local/bin/ffmpeg -i "Mulan (1998) {tmdb-10674} - Bluray-1080p.mkv" -vcodec hevc_vaapi -map 0:0 -field_order progressive -metadata:s:v title=FHD -metadata:s:v handler_name=FHD -preset slower -tag:v hvc1 -qp 28 -vaapi_device /dev/dri/renderD128 -vf "format=nv12|vaapi,hwupload" -c:a:0 ac3 -map 0:1 -ac:a:0 6 -b:a:0 768k -metadata:s:a:0 BPS=768000 -metadata:s:a:0 BPS-eng=768000 -metadata:s:a:0 "title=5.1 Channel" -metadata:s:a:0 "handler_name=5.1 Channel" -metadata:s:a:0 language=eng -disposition:a:0 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -f mp4 -threads 0 -metadata:g encoding_tool=SMA -y "/media/USB-7/Movies/Mulan (1998)/Mulan (1998) {tmdb-10674} - Bluray-1080p.mp4"

[ ] 0% Error converting file, FFMPEG error.
Traceback (most recent call last):
File "/usr/local/sma/resources/mediaprocessor.py", line 2292, in convert
for timecode, debug in conv:
File "/usr/local/sma/converter/init.py", line 329, in convert
for timecode, debug in self.ffmpeg.convert(outfile,
File "/usr/local/sma/converter/ffmpeg.py", line 795, in convert
raise FFMpegConvertError('Exited with code %d' % p.returncode, cmd,
converter.ffmpeg.FFMpegConvertError:
/usr/local/bin/ffmpeg -i Mulan (1998) {tmdb-10674} - Bluray-1080p.mkv -vcodec hevc_vaapi -map 0:0 -field_order progressive -metadata:s:v title=FHD -metadata:s:v handler_name=FHD -preset slower -tag:v hvc1 -qp 28 -vaapi_device /dev/dri/renderD128 -vf format=nv12|vaapi,hwupload -c:a:0 ac3 -map 0:1 -ac:a:0 6 -b:a:0 768k -metadata:s:a:0 BPS=768000 -metadata:s:a:0 BPS-eng=768000 -metadata:s:a:0 title=5.1 Channel -metadata:s:a:0 handler_name=5.1 Channel -metadata:s:a:0 language=eng -disposition:a:0 +default-dub-original-comment-lyrics-karaoke-forced-hearing_impaired-visual_impaired-captions -f mp4 -threads 0 -metadata:g encoding_tool=SMA -y /media/USB-7/Movies/Mulan (1998)/Mulan (1998) {tmdb-10674} - Bluray-1080p.mp4
ffmpeg version 6.0-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
Unrecognized option 'vaapi_device'.
Error splitting the argument list: Option not found

There was an error processing file Mulan (1998) {tmdb-10674} - Bluray-1080p.mkv, no output data received

Docker compose:

radarr:
image: mdhiggins/radarr-sma
container_name: radarr
volumes:
- /Docker/radarr-sma/opt/appdata/radarr:/config
- /Docker/radarr-sma/opt/appdata/sma:/usr/local/sma/config
- /media/USB-1:/media/USB-1
- /Docker/sabnzbd/downloads:/downloads
ports:
- 7879:7878
restart: unless-stopped
environment:
- PUID=1000
- PGID=1000
- SMA_UPDATE=true
- SMA_USE_REPO=true
- SMA_HWACCEL=true
- DOCKER_MODS=linuxserver/mods:universal-package-install
- INSTALL_PACKAGES=libva-intel-driver|mesa-dri-gallium
- INSTALL_PIP_PACKAGES=tmdbsimple|guessit|mutagen|qtfaststart
devices:
- /dev/dri:/dev/dri

Last nightly build?

Hi, apologies if I've misunderstood something, but just wanted to understand the cadence of the nightly builds, and to know what to expect.

I'm using the nightly tag, but currently on 3.1.0.4700, which is about a month old. Are the nightly builds automated or do they have to done manually? From checking here and on hub, it looks like they are possibly manual, which is of course fine and I'm not chasing for an update, just wanted to check my assumptions are correct.

Thanks.

ERROR - Unable to download subtitles

Thank you @mdhiggins for your continued support. Been running Radarr-sma on Unraid with no issues for several months now.

After the V3 update recently I noticed that online subtitle downloads weren't working anymore. Checked the logs and found the following error.

2020-11-30 11:08:49 - resources.mediaprocessor - INFO - Attempting to download subtitles.
2020-11-30 11:08:49 - resources.mediaprocessor - ERROR - Unable to download subtitles.
Traceback (most recent call last):
File "/usr/local/sma/resources/mediaprocessor.py", line 1255, in downloadSubtitles
video.format = og.format
AttributeError: 'Movie' object has no attribute 'format'

I've attached my autoprocess.ini as well. (i purposely removed apikeys and tokens for posting online but they exist on my system).

Let me know if you need any more info and again thank you for your help.

autoProcess.ini.zip

Error when executing against incoming file

I'm encountering an issue with both sonarr-sma and radarr-sma when the sma script is called:

2020-10-23 17:19:46 - RadarrPostProcess - INFO - Radarr extra script post processing started.
2020-10-23 17:19:46 - resources.readsettings - INFO - /usr/local/sma/venv/bin/python3
2020-10-23 17:19:46 - resources.readsettings - INFO - Loading config file /usr/local/sma/config/autoProcess.ini.
2020-10-23 17:19:46 - resources.mediaprocessor - INFO - File /home/unprivilegeduser/store/video/testVideo/testVideo.mkv is not valid
2020-10-23 17:19:46 - RadarrPostProcess - INFO - Processing returned False.
2020-10-23 17:19:46 - RadarrPostProcess - ERROR - Error processing file
Traceback (most recent call last):
  File "/usr/local/sma/postRadarr.py", line 210, in <module>
    sys.exit(1)
SystemExit: 1

Looking at the postRadarr.py file, the issue isn't apparent to me. I'm able to execute non-docker sma from the CLI normally and the file is processed and converted as expected. My system host has the nvidia device, and the nvidia-smi docker container is running and executes as expected.

My docker-compose.yml is as follows:

  radarr:
    container_name: radarr
    build:
      context: https://github.com/mdhiggins/radarr-sma.git#build
      args:
        - ffmpeg_tag=4.3.1-nvidia1804
    volumes:
      - /home/unprivilegeduser/.config/Radarr:/config
      - /media/4tbarray/video:/4tbvideo
      - /home/unprivilegeduser/workspace/docker-mediaserver:/usr/local/sma/config
    ports:
      - 8385:7878
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - SMA_PATH=/usr/local/sma
      - SMA_UPDATE=true
    restart:
      always

I can't seem to attach the autoProcess.ini, so I've included what I believe is relevant here:

[Converter]
ffmpeg = /usr/local/bin/ffmpeg
ffprobe = /usr/local/bin/ffprobe
threads = 0
hwaccels = dxva2, cuvid, qsv, d3d11va
hwaccel-decoders = h264_cuvid, mjpeg_cuvid, mpeg1_cuvid, mpeg2_cuvid, mpeg4_cuvid, vc1_cuvid, hevc_qsv, h264_qsv
output-directory =
output-format = mp4
output-extension = mp4
temp-extension =
minimum-size = 0
ignored-extensions = nfo, ds_store
copy-to =
move-to =
delete-original = True
sort-streams = True
process-same-extensions = False
force-convert = False
post-process = False
preopts =
postopts =
hwdevices = vaapi:/dev/dri/renderD128
hwaccel-output-format = vaapi:vaapi
wait-post-process = False
detailed-progress = True

[Permissions]
chmod = 0755
uid = 1000
gid = 1000

[Metadata]
relocate-moov = True
full-path-guess = True
tag = True
tag-language = eng
download-artwork = poster
sanitize-disposition =

[Video]
codec = h264, x264
max-bitrate = 0
crf = -1
crf-profiles =
max-width = 0
profile =
max-level = 0.0
pix-fmt =
filter =
force-filter = False
preset =
codec-parameters =
dynamic-parameters = False

[Audio]
codec = aac
languages =
default-language =
first-stream-of-language = False
allow-language-relax = True
channel-bitrate = 320
max-bitrate = 0
max-channels = 0
prefer-more-channels = True
default-more-channels = True
filter =
sample-rates =
copy-original = True
aac-adtstoasc = False
ignore-truehd = mp4, m4v
force-filter = False
ignored-dispositions =
unique-dispositions = False

[Universal Audio]
codec = aac
channel-bitrate = 0
first-stream-only = False
move-after = False
filter =
force-filter = False

[Subtitle]
codec = mov_text
codec-image-based =
languages =
default-language =
first-stream-of-language = False
encoding =
burn-subtitles = False
burn-dispositions =
download-subs = False
download-hearing-impaired-subs = False
download-providers =
embed-subs = True
embed-image-subs = False
embed-only-internal-subs = False
filename-dispositions = forced
ignore-embedded-subs = False
attachment-codec =
ignored-dispositions =
unique-dispositions = False

[Sonarr]
host = 127.0.0.1
port = 8989
apikey = redacted
ssl = False
webroot =
force-rename = False

[Radarr]
host = 127.0.0.1
port = 7878
apikey = redacted
ssl = False
webroot =
force-rename = False

Any help here would be appreciated!

Build version need updating?

I just did a build using #build as I need fdkaac in ffmpeg and the radarr version is:
3.0.2.4552

Feb 5 2021

Any way to update the radarr in this docker to latest version keeping the compiled ffmpeg?

Need to install Intel Non-Free driver?

I had to install the Intel non free driver (sudo docker exec -it Sonarr apt install intel-media-va-driver-non-free -y) to get vaapi hardware acceleration to work in Sonarr.

I have tried the same command in my Radarr docker, but receive the following error:

OCI runtime exec failed: exec failed: container_linux.go:367: starting container process caused: exec: "apt": executable file not found in $PATH: unknown

Do I need to install the non-free driver and if so how can I do that without apt?

nightly is wrong radarr version

Hi,

The nightly radarr version is showing as 3.0.2.4552.

The interface is broken in places because radarr nightly is up to 3.1.something.

Can you please have a look to see where things have gone wrong?

Thanks

UnboundLocalError: local variable 'info' referenced before assignment

autoProcess.ini:

[SickBeard]
host = localhost
port = 8081
username = 
password = 
web_root = 
ssl = False
api_key = 

[Sonarr]
host = redacted
port = 8989
web_root = 
ssl = False
apikey = redacted

[Radarr]
host = redacted
port = 7878
web_root = 
ssl = False
apikey = redacted

[MP4]
ffmpeg = /usr/local/bin/ffmpeg/ffmpeg
ffprobe = /usr/local/bin/ffmpeg/ffprobe
threads = 0
output_directory = 
copy_to = 
move_to = 
output_extension = mp4
output_format = mp4
delete_original = True
relocate_moov = True
video-codec = h264,x264
video-bitrate = 5000
video-crf = 
video-max-width = 
video-profile = 
h264-max-level = 
use-qsv-decoder-with-encoder = True
use-hevc-qsv-decoder = False
enable_dxva2_gpu_decode = False
ios-audio = True
ios-first-track-only = False
ios-audio-filter = 
ios-move-last = False
max-audio-channels = 
audio-codec = ac3
ignore-trudhd = true
audio-language = 
audio-default-language = 
audio-channel-bitrate = 256
audio-filter = 
audio-copy-original = False
audio-first-track-of-language = False
subtitle-codec = mov_text
subtitle-language = 
subtitle-default-language = 
subtitle-encoding = 
fullpathguess = True
convert-mp4 = False
tagfile = True
tag-language = en
download-artwork = Poster
download-subs = False
embed-subs = True
embed-only-internal-subs = False
sub-providers = addic7ed,podnapisi,thesubdb,opensubtitles
permissions = 0644
post-process = False
pix-fmt = 
aac_adtstoasc = False
postopts = 
preopts = 

[CouchPotato]
host = localhost
port = 5050
username = 
password = 
web_root = 
ssl = False
apikey = 
delay = 65
method = renamer
delete_failed = False

[uTorrent]
convert = 
couchpotato-label = couchpotato
sickbeard-label = sickbeard
sonarr-label = sonarr
bypass-label = bypass
sickrage-label = sickrage
webui = False
action_before = stop
action_after = removedata
host = http://localhost:8080/
username = 
password = 
output_directory = 
radarr-label = radarr

[Deluge]
host = localhost
username = localclient
convert = True
password = redacted
sonarr-label = tv-sonarr
bypass-label = bypass
sickbeard-label = sickbeard
port = 58846
sickrage-label = sickrage
couchpotato-label = couchpotato
output_directory = 
remove = false
radarr-label = radarr

[SABNZBD]
convert = True
sickrage-category = sickrage
sonarr-category = sonarr
radarr-category = radarr
bypass-category = bypass
couchpotato-category = couchpotato
sickbeard-category = sickbeard
output_directory = 

[Sickrage]
host = localhost
port = 8081
username = 
password = 
web_root = 
ssl = False
api_key = 

[Plex]
host = localhost
port = 32400
refresh = True
token = 

Error:

19-6-1 12:51:44.5|Error|python3|Traceback (most recent call last):
19-6-1 12:51:44.5|Error|python3|  File "/usr/local/bin/sma/sickbeard_mp4_automator/postRadarr.py", line 51, in <module>
19-6-1 12:51:44.5|Error|python3|    output = converter.process(inputfile, original=original)
19-6-1 12:51:44.5|Error|python3|  File "/usr/local/bin/sma/sickbeard_mp4_automator/mkvtomp4.py", line 238, in process
19-6-1 12:51:44.5|Error|python3|    dim = self.getDimensions(outputfile)
19-6-1 12:51:44.5|Error|python3|  File "/usr/local/bin/sma/sickbeard_mp4_automator/mkvtomp4.py", line 282, in getDimensions
19-6-1 12:51:44.5|Error|python3|    self.log.debug("Height: %s" % info.video.video_height)
19-6-1 12:51:44.5|Error|python3|UnboundLocalError: local variable 'info' referenced before assignment

Cannot run ./manual.py from within the docker container.

Hi,

I've created the docker container on my synology nas:
docker run -d \ --name=radarr \ -e PUID=1029 \ -e PGID=100 \ -e TZ="Europe/Brussels" \ -p 7878:7878\ -v /volume1/docker/radarr:/config \ -v /volume1/docker/sma:/usr/local/sma/config \ -v /volume2/media/movies:/movies \ -v /volume3/downloads:/downloads \ --restart unless-stopped \ mdhiggins/radarr-sma

Then I ssh into the container:
docker exec -it 39003bbcabf7 bash

Then I copied the autoprocess.ini.sample from the /usr/local/sma/setup to /usr/local/sma/config directory.
Then I tried to run ./manual.py

but keeps getting:
root@39003bbcabf7:/usr/local/sma# ./manual.py Traceback (most recent call last): File "./manual.py", line 5, in <module> import guessit ModuleNotFoundError: No module named 'guessit'

mp4 not created

Hello, my conversions in radarr will not finish. Right when it finishes it throws an error and does not create the mp4. I cant see any real useful information in the log file even with debug on. I know this is a ffmpeg error but hoping you might have some insight. I even tried using the same ini from sonarr which works fine. They both use the same directories and are both updated and both use the same docker config.

LOG: https://pastebin.com/raw/vPaf1JW0
CONFIG: https://pastebin.com/raw/hRr5e32Y

Latest version failure

Pulled :latest today and now I'm getting the following error:

[Error] postRadarr.sh: Traceback (most recent call last):
[Error] postRadarr.sh: File "/usr/local/sma/postRadarr.py", line 10, in
[Error] postRadarr.sh: from resources.mediaprocessor import MediaProcessor
[Error] postRadarr.sh: File "/usr/local/sma/resources/mediaprocessor.py", line 15, in
[Error] postRadarr.sh: from autoprocess import plex
[Error] postRadarr.sh: File "/usr/local/sma/autoprocess/plex.py", line 5, in
[Error] postRadarr.sh: from plexapi.myplex import MyPlexAccount
[Error] postRadarr.sh: ModuleNotFoundError: No module named 'plexapi'

FFMPEG in Radarr-sma cannot use INTEL QSV

I am running both radarr-sma and sonarr-sma in docker in the same machine, passing though my INTEL GPU.

Hardware transcoding (h264_qsv and hevc_qsv) under sonarr-sma work flawlessly, but in radarr-sma it does not. After switching to another ffmpeg build I get at least the qsv encoder and decoder to showing up, but error while transcoding are persintent.

I noticed that a couple of weeks ago radarr-sma was reverted back from liunxserver/ffmpeg, while sonarr-sma is still using this build. Is there is chance to get radarr-sma back to linuxserver/ffmpeg?

log file: https://textbin.net/p7pqbsap6w

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.