[Support] Josh5 - Unmanic - Library Optimiser


Recommended Posts

  • 3 weeks later...

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?

Link to comment
  • 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!

Link to comment
  • 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
Link to comment
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.

Link to comment

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
Link to comment
  • 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.

Link to comment
  • 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. 

Link to comment
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
Link to comment

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

Link to comment

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?

Link to comment
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.

Link to comment

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

Link to comment

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

 

Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.