Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] Josh5 - Unmanic - Library Optimiser

Featured Replies

3 hours ago, Lignage said:

I have Unmanic running on Unraid and installed it on my Synology. Can I set the Synology films to be processed on the Unraid?

i guess its not so clear what you mean, may rather ask in the german part ...

 

howto use a external source in a docker on unraid

  • 3 weeks later...
  • Replies 1.6k
  • Views 440.1k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • @Ashe @trekkiedj @itimpi   Please see update first post also for an example of how I have it setup. I have also added a temporary solution to adding multiple library locations if anyone need

  • There should be a new update available. This has quite a number of changes to how ffmpeg is executed. It should resolve some issues with inotify and library scanning. For those people who created

  • Just as a notice here, I will soon be steeping away from using Unraid to develop and maintain my projects. I will still provide support for Unraid for all of my projects, but that will be moved and on

Posted Images

I just wanted to see if anyone else has had this happen. Unmanic converts from h264 to h265 and says it succeeds but then the video file goes from being a 2-hour video to something like 26 minutes. So it seems to be chopping off the majority of the video. Any ideas or suggestions?

I got lucky and currently have a P4000 and P2000 in my unraid box.

Im using Unmanic to convert everything to H256. I have Unmanic setup with NVIDIA_VISIBLE_DEVICES=all and it uses the P4000 just fine, but Im trying to get the P2000 to work with it as well.

I dont see any settings inside of Unmanic to assign workers in anyway and when I tried a second Unmanic instance setup directly with the P2000 as a remote worker farm of sorts, but it rapid fire failed every transcode stating "Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

Conversion failed!"

 

 

Anyone have an idea of why it might not be functional?

  • 1 month later...

Hi all, i've tried searching but haven't found an answer to my question yet.  apologies if i missed it.

 

Is it possible for unmanic to skip files already in HEVC?  I see there's a plugin to skip files based on metadata, but I'm not sure if/how that would work.

 

Thank you for any tips!

  • 2 weeks later...

Hi @Josh.5 I'm trying to ignore the path "Running Man" using path ignore plugin. I set it like this(see pic) but when I try to scan library, it was still scanned and file go to pending task list. Should I include the mapped container folder?

 

image.png

 

Folder mapping:

 

image.png

Edited by HHUBS

On 2/3/2024 at 5:48 AM, acosmichippo said:

Is it possible for unmanic to skip files already in HEVC?  I see there's a plugin to skip files based on metadata, but I'm not sure if/how that would work.

If you configure your library to convert video to HEVC and the file is already H265, then unmanic will not pick up conversion again. If you want to runn other tasks against that file, you can do that with another plugin in the same library. For example if i run my "convert audio to AAC" library (which is a copy of my original library) against the existing files, this will a) convert audio and b) skip video H265 transcoding, if the file is already H265. So no need for an extra plugin or configuration here.

Question - does this plugin work with Ryzen 7950x iGPU (AMD Raphael Zen 4, Ryzen 7000)?

 

I have used the plugin correctly previously with my Nvidia GPU.

 

But when trying to use my 7950x iGPU I get the error message

 

Quote

[AVHWDeviceContext @ 0x5641c4b8ed40] Failed to initialise VAAPI connection: -1 (unknown libva error).

Device creation failed: -5.

Failed to set value 'vaapi=vaapi0:/dev/dri/renderD128' for option 'init_hw_device': Input/output error

Error parsing global options: Input/output error

 

I have the correct extra parameters (--device=/dev/dri) set in the docker container, have the Radeon-TOP plugin installed and have am using the "H265/HEVC - hevc_vaapi (INTEL/AMD)" plugin.

 

For reference, using the "H265/HEVC - libx265 (CPU)" works correctly utilizing the CPU, but I would like to use the iGPU instead.

 

Thanks for any help.

Edited by unham

  • 2 weeks later...

i want to add Stereo to all files, using the plugin "Add Extra Stereo Audio" but the plugin says: "Specify language tag to search for in source stream - must be specified"

I want to add stereo to any/all language. Is it possible?

Some media are in spanish, some in swedish, some in english, etc.

  • 3 weeks later...
On 3/6/2024 at 6:56 PM, capt.shitface said:

i want to add Stereo to all files, using the plugin "Add Extra Stereo Audio" but the plugin says: "Specify language tag to search for in source stream - must be specified"

I want to add stereo to any/all language. Is it possible?

Some media are in spanish, some in swedish, some in english, etc.

I use the plugin called 

Create stereo audio stream from surround sound in Josh.5 repo. Current version 

0.0.3

 

All you do is set an output audio codec and it does the rest. 

On 3/24/2024 at 9:19 PM, soultaco83 said:

I use the plugin called 

Create stereo audio stream from surround sound in Josh.5 repo. Current version 

0.0.3

 

All you do is set an output audio codec and it does the rest. 

It does not remove the surround audio, only adding stereo?

Edit: its just adding stereo! Thanks!👍

Edited by capt.shitface

I've gone and upgraded the Hardware in my Server.  I've removed my NVIDIA GPU to save power and added an Intel QuickSync capable CPU.

I've switched over the docker container to use the Intel and remove the NVIDIA reference.  Testing it out, it has converted two files already and they are the exact same file size.  The original and the encoded file. I'm not sure why they would remain the same file size at the end of the encode as using the NVIDIA plugin shrunk the filesize considerably.

 

Its in the process of converting two more files and I can see that it is, indeed using the Intel GPU:

 

 

Screenshot 2024-04-05 at 08-16-13 Unmanic.png

I want to use unmanic to extract subtitle from the movie file. I installed the plugin for this. The problem is the unmanic is coping file first to the tmp folder before starting extracting subtitles and that process take ages. Is it possible to make unmanic will start extracting in the original folder without coping movie to tmp first?

On 12/23/2023 at 12:43 PM, ap90033 said:

I just wanted to see if anyone else has had this happen. Unmanic converts from h264 to h265 and says it succeeds but then the video file goes from being a 2-hour video to something like 26 minutes. So it seems to be chopping off the majority of the video. Any ideas or suggestions?

Have you ever figured this out?

I'm having the same issues with some of my files.

Hi All

Just went back to Unmanic to try AV1 (I am a new patreon 🙂)

But I just cant get this working, have some help from the great discord channel, but I think this is more an Unraid problem!

I have build a new system using the new 14th gen iGPU and removed the NVIDIA card.
But when I do a list I have the following cards listed:

# ls /dev/dri
by-path/  card0  card1  renderD128

 

IS THERE ANYWAY TO DELETE CARD1 so I only have one CARD0?

 

 

And I can see that the iGPU is listed as Card1 - and Unmanic uses card0

image.thumb.png.203fe9dd438cbd6acf96f4a2a3a3cb6c.png

 

I have tried some suggested workarounds:
image.png.7c6a7cb64a7ff30d15132985681806c8.png

But no matter what I do it does not encode anything even with a very simple flow:
image.thumb.png.843c3048ab68cc0d8802714ed0638d1c.png
Generic auto on encoding settings:

It just jumps through them as failed:

RUNNER:

Transcode Video Files [Pass #1]

Executing plugin runner... Please wait

Plugin runner requested for a command to be executed by Unmanic

COMMAND:

ffmpeg -hide_banner -loglevel info -hwaccel qsv -hwaccel_output_format qsv -init_hw_device qsv=hw -filter_hw_device hw -i /library/movies/#unmanic_test/Season 05/Star Trek - Discovery (2017) - S05E03 - Jinaal [WEB-DL.1080p][8bit][x264][AC3 5.1]-EGEN.mkv -strict -2 -max_muxing_queue_size 4096 -map 0:v:0 -map 0:a:0 -map 0:s:0 -map 0:s:1 -map 0:s:2 -map 0:s:3 -c:v:0 av1_qsv -preset slow -global_quality 23 -look_ahead 1 -c:a:0 copy -c:s:0 copy -c:s:1 copy -c:s:2 copy -c:s:3 copy -y /tmp/unmanic/unmanic_file_conversion-lketm-1712931432/Star Trek - Discovery (2017) - S05E03 - Jinaal [WEB-DL.1080p][8bit][x264][AC3 5.1]-EGEN-lketm-1712931432-WORKING-1-1.mkv

LOG:

libva info: VA-API version 1.20.0

libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so

libva info: Found init function __vaDriverInit_1_20

libva info: va_openDriver() returns 0

libva info: VA-API version 1.20.0

libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so

libva info: Found init function __vaDriverInit_1_20

libva info: va_openDriver() returns 0

libva info: VA-API version 1.20.0

libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so

libva info: Found init function __vaDriverInit_1_20

libva info: va_openDriver() returns 0

libva info: VA-API version 1.20.0

libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so

libva info: Found init function __vaDriverInit_1_20

libva info: va_openDriver() returns 0

Input #0, matroska,webm, from '/library/movies/#unmanic_test/Season 05/Star Trek - Discovery (2017) - S05E03 - Jinaal [WEB-DL.1080p][8bit][x264][AC3 5.1]-EGEN.mkv':

   Metadata:

     encoder : libebml v1.4.4 + libmatroska v1.7.1

     creation_time : 2024-04-12T06:04:22.000000Z

   Duration: 00:53:22.16, start: 0.000000, bitrate: 8330 kb/s

   Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn (default)

     Metadata:

       BPS : 7879644

       DURATION : 00:53:22.160000000

       NUMBER_OF_FRAMES: 80054

       NUMBER_OF_BYTES : 3153985407

       _STATISTICS_WRITING_APP: mkvmerge v77.0 ('Elemental') 64-bit

       _STATISTICS_WRITING_DATE_UTC: 2024-04-12 06:04:22

       _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

   Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)

     Metadata:

       BPS : 448000

       DURATION : 00:53:22.144000000

       NUMBER_OF_FRAMES: 100067

       NUMBER_OF_BYTES : 179320064

       _STATISTICS_WRITING_APP: mkvmerge v77.0 ('Elemental') 64-bit

       _STATISTICS_WRITING_DATE_UTC: 2024-04-12 06:04:22

       _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

   Stream #0:2(dan): Subtitle: subrip

     Metadata:

       BPS : 71

       DURATION : 00:51:03.855000000

       NUMBER_OF_FRAMES: 607

       NUMBER_OF_BYTES : 27347

       _STATISTICS_WRITING_APP: mkvmerge v77.0 ('Elemental') 64-bit

       _STATISTICS_WRITING_DATE_UTC: 2024-04-12 06:04:22

       _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

   Stream #0:3(fin): Subtitle: subrip

     Metadata:

       BPS : 76

       DURATION : 00:51:03.855000000

       NUMBER_OF_FRAMES: 863

       NUMBER_OF_BYTES : 29194

       _STATISTICS_WRITING_APP: mkvmerge v77.0 ('Elemental') 64-bit

       _STATISTICS_WRITING_DATE_UTC: 2024-04-12 06:04:22

       _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

   Stream #0:4(nor): Subtitle: subrip

     Metadata:

       BPS : 73

       DURATION : 00:51:03.855000000

       NUMBER_OF_FRAMES: 685

       NUMBER_OF_BYTES : 28096

       _STATISTICS_WRITING_APP: mkvmerge v77.0 ('Elemental') 64-bit

       _STATISTICS_WRITING_DATE_UTC: 2024-04-12 06:04:22

       _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

   Stream #0:5(swe): Subtitle: subrip

     Metadata:

       BPS : 76

       DURATION : 00:51:03.855000000

       NUMBER_OF_FRAMES: 749

       NUMBER_OF_BYTES : 29446

       _STATISTICS_WRITING_APP: mkvmerge v77.0 ('Elemental') 64-bit

       _STATISTICS_WRITING_DATE_UTC: 2024-04-12 06:04:22

       _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

Stream mapping:

   Stream #0:0 -> #0:0 (h264 (h264_qsv) -> av1 (av1_qsv))

   Stream #0:1 -> #0:1 (copy)

   Stream #0:2 -> #0:2 (copy)

   Stream #0:3 -> #0:3 (copy)

   Stream #0:4 -> #0:4 (copy)

   Stream #0:5 -> #0:5 (copy)

Press [q] to stop, [?] for help

[av1_qsv @ 0x555a64876e00] Selected ratecontrol mode is unsupported

[av1_qsv @ 0x555a64876e00] Current frame rate is unsupported

[av1_qsv @ 0x555a64876e00] Current picture structure is unsupported

[av1_qsv @ 0x555a64876e00] Current resolution is unsupported

[av1_qsv @ 0x555a64876e00] Current pixel format is unsupported

[av1_qsv @ 0x555a64876e00] some encoding parameters are not supported by the QSV runtime. Please double check the input parameters.

[vost#0:0/av1_qsv @ 0x555a64877540] Error initializing output stream: Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

Conversion failed!


Also the iGPU works fine in PLex/Emby/Jellyfin just not Unmanic

1 hour ago, casperse said:

Also the iGPU works fine in PLex/Emby/Jellyfin just not Unmanic

this iGPU cant encode av1 ... only decode (playback ...)

 

Intel ARC and Nvidia NV40xx as sample can ...

4 hours ago, alturismo said:

this iGPU cant encode av1 ... only decode (playback ...)

 

Intel ARC and Nvidia NV40xx as sample can ...

@alturismo

 

Then why is the Unmanic listing the AV1 encoding with Quicksync?
image.thumb.png.73ab5155eda8eeccde8add7b6a30f094.png
 

Edited by casperse

I'm currently having an issue where Unmanic is logging out of Patreon and Discord about every 40 min after logging back in.

 

I was looking through my encoding logs and I think this first started to occur about 42 days ago. Was there an update to the container or Unraid that may have caused this.

 

Below log shows that it is unable to verify authentication token.

 

2024-04-12T11:49:11:INFO:Unmanic.ScheduledTasksManager - [FORMATTED] - Updating session data

2024-04-12T11:49:12:DEBUG:Unmanic.Session - Updated session at 2024-04-12 11:49:12.554395

2024-04-12T12:49:12:INFO:Unmanic.ScheduledTasksManager - [FORMATTED] - Updating session data

2024-04-12T12:49:13:DEBUG:Unmanic.Session - Unable to verify authentication token. Refreshing...

2024-04-12T12:49:14:DEBUG:Unmanic.Session - Updated session at 2024-04-12 12:49:14.254054

2024-04-12T13:48:46:INFO:Unmanic.ScheduledTasksManager - [FORMATTED] - Checking for updates to plugin repos

2024-04-12T13:48:47:INFO:Unmanic.PluginsHandler - [FORMATTED] - Repo cache file '/config/.unmanic/plugins/repo-258034247056099696721315830246648215170.json'.

2024-04-12T13:49:15:INFO:Unmanic.ScheduledTasksManager - [FORMATTED] - Updating session data

2024-04-12T13:49:16:DEBUG:Unmanic.Session - Updated session at 2024-04-12 13:49:16.197807

2024-04-12T14:49:16:INFO:Unmanic.ScheduledTasksManager - [FORMATTED] - Updating session data

2024-04-12T14:49:17:DEBUG:Unmanic.Session - Unable to verify authentication token. Refreshing...

2024-04-12T14:49:17:DEBUG:Unmanic.Session - Updated session at 2024-04-12 14:49:17.938237

 

1 hour ago, casperse said:

Then why is the Unmanic listing the AV1 encoding with Quicksync?

im not using unmanic, but i can tell you there is currently no AV1 encoding with your iGPU ...

 

if you dont believe me, check this about raptor lake cpu ...

https://en.wikipedia.org/wiki/Intel_Quick_Sync_Video

 

or ask in the dedicated unmanic discord channel ;)

  • 1 month later...

I keep getting this on my unraid server.

What they mean?

How do I fix this?

I try put cash on my nvme and then ram but same result. 

 

CPU_IOWAIT?

 

 

Screenshot_20240604_180238_Chrome.jpg

I have unmanic on my unRAID server w/o GPU transcoding capability so I put an unmanic remote on my Mac mini that has a i5. Problem is that I do not see any activity on the Mac. I have the unRAID link set to send and the Mac link set to receive but nothing is happening on the Mac. I set the Mac to CPU transcoding and still nothing. Only CPU transcoding on the unRAID and that is going to take too long.

 

I am also trying to strip subtitles and non-English audio but it apparently is not working as I checked a few movies and these are still intact. 

Is it possible to send ALL work to the Mac and not so ANY work on the unRAID?

  • 4 weeks later...

Update

 

I got the link working unRAID > Mac mini and wow is it fast!

 

I also discovered that some of my movies were >50gb. This apparently happened following an incident when my usb boot drive crashed and I had to restore unRAID and didn't set up my radarr profiles and downloaded a lot of 4K files and many having subtitles and foreign languages and subtitles in foreign languages. I set the filter to strip subtitles and remove all foreign languages for movies > 40gb and it reduced file sizes by 80%!! Saving > 1tb of disk space! 

 

rescanning to work on movies of all sizes. And tv shows next.

 

Now if I can get hw encoding on Mac mini to convert to h265.

 

  • 2 weeks later...

This may not be the place to post this, but I am getting errors that I have too many remote workers going on and that I should consider paying to increase this. I would happily pay, but how do I go about doing that? I would like to know, and also suggest that the red banner popup includes a link to how to!?

 

And.... How can I enable the gpu for my laptop (discrete NVidia) and Desktop (Intel graphics) if I am using the windows launcher rather than the docker setting?

 

Be happy to know how to pay, I will mess around witht e other stuff, and it is running fine on CPU for the moment. I doubt I will need multiple PC at this down the line?

 

So, How to remove worker limit with my wallet?

  • 1 month later...

i just installed the newest update and now the webui doesn't work and just shows

s6-supervise unmanic: warning: unable to spawn ./run (waiting 60 seconds): Permission denied .

 

 

i tried chmod -R /mnt/user/appdata/unmanic to see if i can fix it.  but that didn't work

I've just set this up and got things running. I just want to convert all my media to h265. I've no interest (at this point) in anything else. 

 

I've got two plugins running the h265 encoder and the File Size Metrics Data Panel. 

 

For some reason (100% due to me doing something silly) the File Size Metrics aren't working. 

 

1. The tasks are showing as complete but if I look at the log I see the following at the bottom

 

RUNNER:

File Size Metrics Data Panel [Pass #1]

Executing plugin runner... Please wait

Runner did not request for Unmanic to execute a command

 

2. If I go to the Data Panel in the UI I get this error. (img below)

 

Clearly I have neglected to do something. What should I have done?

 

 

2024-09-04_12-55-19.png

Edited by suedenimes

Got this sorted. Restarting the docker container fixed it. 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.