Jump to content

***[GUIDE]*** SETUP EMBY (with HW transcoding) ON UNRAID & REMOTE ACCESS THROUGH REVERSE PROXY USING SWAG


Mikele

Recommended Posts

gnollo

From the SWAG log file (XXXXXXXXX to replace my sub-domain and email address)

"Using Let's Encrypt as the cert provider
SUBDOMAINS entered, processing
SUBDOMAINS entered, processing
Only subdomains, no URL in cert
Sub-domains processed are:  -d XXXXXXXXXXXXXXXXXX
E-mail address entered: XXXXXXXXXXXXXXXXXXXXXX
http validation is selected
Certificate exists; parameters unchanged; starting nginx
The cert does not expire within the next day. Letting the cron script handle the renewal attempts overnight (2:08am).
[custom-init] No custom files found, skipping...
[ls.io-init] done.
Server ready

Link to comment
Share on other sites

gnollo

Any ideas? looks like the script will wait until the certificate is due to expire the following day?

Edited by gnollo
Link to comment
Share on other sites

  • 3 weeks later...
Przemek

Hello, @MikeleI try with Your guide to setup IQS in Emby but it's don't show. I have only VAAPI in Transcoding tab. I do as it it in guide:
1. check 

ls /dev/dri`

and I get: `

 by-path/   card0   renderD128

2. Then:

chmod -R 777 /dev/dri

3. Add device variable and rebuild Emby container.

4. Open Emby and there's only VAAPI in Transcoding section.
Regards.

Link to comment
Share on other sites

jaycedk

Try to install on you Unraid server.

Intel GPU TOP

This plugin adds the tool 'intel_gpu_top' to your unRAID server and also enables your Intel iGPU from the installation of this plugin on, so no editis to the 'go' file or creation of other files are necessary. To see the usage of your iGPU open up the unRAID Terminal and type in 'intel_gpu_top' (without quotes). This plugin satisfies installation prerequisites of the GPU Statistics plugin from Community Apps. With both plugins installed you can display Intel GPU utilization on the unRAID Dashboard.

Then add device to your emby docker.

image.thumb.png.f3d2c2cf7f5a3bd661ae793ad15e874a.png

Thats what worked for me on Unraid 6.12.3

Btw using the official docker image

image.png.a417a63ac6b2319dde9cbde5286af835.png

Edited by jaycedk
Link to comment
Share on other sites

Przemek

Hi @jaycedkI have that plugins installed also reinstall my official emby installation with that Device variable. Is there some configuration for that plugins?
Now I have VAAPI checked in Emby and on unraid I see something happen when transcoding:
image.png.14135b74968ead5a6220e0a0681245d1.png

Edited by Przemek
Link to comment
Share on other sites

jaycedk

Not that i know of, but try running intel_gpu_top from terminal just to see if it give any output.

then with terminal open.

Try force transcoding, I use Firefox to test me hvec/h.265 files, that browser always failes to transcode that video format.

Here is me transcoding

image.png.0d9fd5f76884a891238db80403e3aaac.png

If not then you might need a reboot of unraid. but not sure.

But tbh I use VAAPI as first prio, for me that work out best.

Link to comment
Share on other sites

Przemek
7 minutes ago, jaycedk said:

But tbh I use VAAPI as first prio, for me that work out best.

When I choose CPU for my new pc I choose best for intel-quick-sync. I was thinking it's the best performance.
I uncheck all VAAPI and start transcodin but notting happen in unraid terminal with intel_gpu_top.

Edited by Przemek
Link to comment
Share on other sites

jaycedk

Ohh did not see you previous screen shot.

VAAPI is working.

Yes but linux drivers are allways behind, main stream windows.

That might be it.

 

Link to comment
Share on other sites

Przemek

I reboot unraid but still don't have intel-quick-sync. I will choose VAAPI then.
Can You tell me some tips that I can use on Emby and unraid to make my server work better if few users watch/transcode at the same time?
Regards.

Link to comment
Share on other sites

jaycedk

Tbh VAPPI should be fine.

Enable Throttling and it will transcode as needed, instead of the whole movie / episode.

I have also set up an old ssd in a pool for it self, that i have mapped for transcoding.

That way I can toss it if it dies, without loosing data.

Link to comment
Share on other sites

Przemek

One more thing, I look at Emby logs and see hardware detection log have that lines:
 

"DevPath": "/sys/bus/pci/devices/0000:00:02.0",
"DrmCard": "/dev/dri/card0",
"DrmRender": "/dev/dri/renderD128",
"IsEnabled": 1,
"IsBootVga": 1,
"ApiVersionMajor": 1,
"ApiVersionMinor": 12,
"Driver": "Intel iHD driver for Intel(R) Gen Graphics - 21.2.2 (27b773b2)"

 

Link to comment
Share on other sites

jaycedk

Think that normal.

Here is the same in mine.

"DevPath": "/sys/bus/pci/devices/0000:00:02.0",
"DrmCard": "/dev/dri/card0",
"DrmRender": "/dev/dri/renderD128",
"IsEnabled": 1,
"IsBootVga": 1,
"ApiVersionMajor": 1,
"ApiVersionMinor": 12,
"Driver": "Intel iHD driver for Intel(R) Gen Graphics - 21.2.2 (27b773b2)"

Link to comment
Share on other sites

Przemek
12 minutes ago, jaycedk said:

Tbh VAPPI should be fine.

Enable Throttling and it will transcode as needed, instead of the whole movie / episode.

I have also set up an old ssd in a pool for it self, that i have mapped for transcoding.

That way I can toss it if it dies, without loosing data.

Can You tell me what options se to Throttling? 
I set folder for transcoding in cache ssd drive (500GB) in /mnt/user/appdata/embyserver/transcoding-temp.
I also have alder lake and UHD770 GPU so will wait.

Link to comment
Share on other sites

jaycedk

Throttling

image.png.d010bd76666d0dd9cebba2257a8b88ce.png

Here is my emby trans code pool, I would NOT use your appdata/cache pool for transcoding.

Transcoding = constand write / read = quick death of ssd. 

I have a single drive pool with an disposable drive, that only is being used for that.

That way its replace, no worries about appdata.

Appdata is where you dockers live, with out that they die.  

image.thumb.png.7d3170725caa5e94582884923e23f641.png

image.thumb.png.12029a3bd67e67338f33ab506c81cb57.png

image.png.ded169831ae5288e33b72f1db50c8608.png

Link to comment
Share on other sites

Przemek
34 minutes ago, jaycedk said:

Throttling

image.png.d010bd76666d0dd9cebba2257a8b88ce.png

Here is my emby trans code pool, I would NOT use your appdata/cache pool for transcoding.

Transcoding = constand write / read = quick death of ssd. 

I have a single drive pool with an disposable drive, that only is being used for that.

That way its replace, no worries about appdata.

Appdata is where you dockers live, with out that they die.  

image.thumb.png.7d3170725caa5e94582884923e23f641.png

image.thumb.png.12029a3bd67e67338f33ab506c81cb57.png

image.png.ded169831ae5288e33b72f1db50c8608.png

Thanks, I move transcoding folder to my media folder on array. Do You have any special options in unRAID? I see there's lot options for CPU etc.?

Can You tell me also do You have Emby in Host mode on unraid? Because I have all other containers with Bridge.

Edited by Przemek
Link to comment
Share on other sites

jaycedk

Ohh ok, transcoding to array will be slower than a SSD, its all about IO.

And transcoding will be slowed down if its on array.

But its better that, having it in your appdata, where you might, kill of your appdata drive.

My Emby is set to Bridge mode, don't remember why, Guess, it just worked for me :)

 

Link to comment
Share on other sites

Przemek
1 minute ago, jaycedk said:

Ohh ok, transcoding to array will be slower than a SSD, its all about IO.

And transcoding will be slowed down if its on array.

But its better that, having it in your appdata, where you might, kill of your appdata drive.

My Emby is set to Bridge mode, don't remember why, Guess, it just worked for me :)

 

Thanks. Meybe I will buy PCI Express card and put one more ssd for transcoding.
Regards.

  • Like 1
Link to comment
Share on other sites

jaycedk

CPU wise it might be subtitles, I don't think they can be HW transcoded.

That 1 of the reasons I you *.srt = text subtitles, and not image.

Image subs will most likely use CPU. 

Link to comment
Share on other sites

Przemek

Thanks @jaycedk
Yesterday my friend noticed freezeing when watching at the same time. In my Emby client there was no problem. I watch some episode and he also. Then about 23:40 I start different series and he start occur freezeings on his mobile Redmi Pro. Do You think it's something with his network or settings?
I attach log. If You don't know I will start new topic.
Regards.

embyserver-63826704000.txt

Link to comment
Share on other sites

Przemek
39 minutes ago, jaycedk said:

I think you will need to open a new ticket for this one.

OK, thanks for Your help.

Link to comment
Share on other sites

  • 5 months later...
dogcouch

Hello,

I came across this trying to setup emote access. While I'm using docker-compose, I think I can follow this without too much issue. My one concern is my public IP changes, and I have no way to request a permanent one. Will this setup address public IPs that change?

Link to comment
Share on other sites

vaise

There are a few ways of having your wan ip change at your domain host.  Should be able to google that for your provider.

Link to comment
Share on other sites

dogcouch

I'll check again. For the domain i purchased, I was having to manually add my public IP in a static manner for the DNS record.
i'm just reading about duckdns and it appears there's a compose file for it. Perhaps that's an option? If I read this right, I'd plug in duckdns in place of the WAN IP?

Edited by dogcouch
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...