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.

***GUIDE*** Plex Hardware Acceleration using Intel Quick Sync

Featured Replies

I can't be the only one, I got stuck on cd /dev/drils.

Looks like your code blocks are removing the return carriages.

 

Once I figured out what was going on, it worked like a charm. Thanks.

Annotation 2019-09-20 231459.png

  • Replies 501
  • Views 526.6k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • You might find this useful (Yes means the iGPU can both encode and decode.):   BTW: this chart is from the Quick Sync Video Wikipedia page.  

  • Please be courteous and respectful to one another. Thank you

  • To anyone who is having trouble with the modified go file saving the changes after a system restart, you may be making the same stupid mistake as me. When you edit your go file via the terminal with "

Posted Images

Hey all 

 

looking for some advice please? 

 

original thread in official repo page 

 

 

 

Ive followed this guide to the T several times over 

i have tried every variation i can think off of the above guide and all others i have found. 

 

I have tried linuxserver / binhex / limetech / plexinc dockers they all behaviour about the same in this regard 

 

Currently running 6.6.7 was running 6.7.2 even tried the latest RC it does not work on any. 

 

So what happens is....

 

Fire up plex works fine 

force transcoding to test HW acceleration, plex says its working but logs show it is not (changes some times it shows HW sometimes it doesnt) 

player gets a black screen and nothing happens until i go back to original quality, no disk IO nothin in htop nothing at all its like plex stalls but remains responsive 

 

docker setup; 

(i have tried public/docker/latest/plexpass though i think thats not for linuxserver) 

(i have also tried setting --device blahh:blah as an extra paramater but im led to believe this method is broken/outdated) 

(added as an extra device both as /dev/dri and as /dev/dri:/dev/dri neither work) 

image.thumb.png.d97f2ef8e75900b0d1662a33184730f2.png

 

 

go file; (sdparm to enable write caching on my SAS disks) 

Now with this i have tried both with and without the chown/chmod lines both result in the same 

image.png.2e1904b818e11e11e1e6ccae44277b61.png

 

 

/dev/dri ;

image.png.a7840d3a7285c260e9e8210238791096.png

 

 

plex settings; 

image.png.9e8108832a4d3239b1e6b236c8a4c871.png

 

since downgrading to 6.6.7 the logs show it has a VAAPI provider and is using it before it would say hardware accelration is enabled but not hardware device exists (or something like that) 

image.png.73ac5bacf9e2bbb8094985680ef10b97.png

 

but both plex and tautulli show no HW decoding is present (again changed since going back to 6.6.7 before hand it would show HW in the dashboard but would play nothing, now it doesnt say HW but it still plays nothing) 

image.png.80b3b114e3e9aaf0dd060bd9f22f69d3.png

plex says its still on direct steam (this screen taken AFTER the above tautulli)

image.png.cfd461255c2d5eba4ed246da67fb22b3.png

 

 

Note if i turn of HW acceleration it works fine just creams my CPU 

 

 

 

please please please help me! ive found maybe 10 threads which are identical to mine ever single one is closed with no answer or the usual FIXED IT thanks all anyway, no explanation given 

 

thank you in advance i am seriously pulling my hair out.

 

 

EDIT

i5-6500 btw

 

another edit 

so i noticed that /dev/dri wasnt set to 777 even though its in the go file so i manually did it restarted the plex docker and it still doesnt work but now the logs show this; 

 

image.thumb.png.4a3f3b352756601fd7d0e948e064e47c.png

 

 

 

Edited by Exa
adding cpu

It's late, I'm tired but; "no hardware decode accelerator found" - You can't hardware decode on Linux, end of. Hardware Encode fine. Which is what Transcoding is doing so that log means very little here.

 

Also "Throttled" suggests Plex is throttling the data due to bandwidth restrictions not transcoding. I mean it LOOKS like your trying to play a MKV in 480p, but I don't know the original video and I don't know the source and the destination for the network. 

 

It looks like you've done everything right with regard to the setup for Hardware Acceleration, so I'd be concentrating on why Plex is Throttling not transcoding. I have attached a screenshot of what a 1080p => 480p Hardware Transcode should look like.

 

Annotation 2019-09-22 225239.png

11 minutes ago, OFark said:

You can't hardware decode on Linux, end of. Hardware Encode fine.

Also incorrect.

 

With a CPU with QuickSync video support, hardware encoding and decoding is supported on Windows, Linux and Mac.

 

From https://support.plex.tv/articles/115002178853-using-hardware-accelerated-streaming/

 

1. Check the system requirements

Hardware-Accelerated Streaming is supported in Plex Media Server on modern Windows, Mac, Linux, and NAS devices. Plex Media Server’s hardware acceleration uses Intel Quick Sync Video for decoding and encoding, which is available in all recent Intel Core processors as well as some other Intel processors (such as some Xeon, Atom, or Celeron models).

  • The following are required in general for Hardware-Accelerated Streaming, regardless of your operating system:
  • A recent Intel CPU meeting these requirements:
    • 2nd-generation Intel Core (Sandy Bridge, 2011) or newer (we recommend 5th-gen Broadwell or newer for the best experience; Sandy Bridge, in particular, is known to sometimes have poor visual output on some systems)
    • Supports Intel Quick Sync Video (Not sure? Look up your processor)
  • Plex Media Server 1.9.3 or later
  • An active Plex Pass subscription

Like I said I was tired, I got hung up on this:

Quote

"On Linux, hardware-accelerated decoding is not supported on NVIDIA GPUs."

But of course you can use Intel's Quick Sync.

And in the Guide it shows a picture of the "throttled" status and underneath it:

Quote

"As you can see this file is being direct played, so there's no transcoding happening."

So -1 for Speed reading when tired. Still I do think the issue is with Plex, not this guide. I can't see the sharing of this device going that badly wrong that it's intermittent.

Not sure what im doing wrong. I have an I5-6500 with a z170 motherboard.  2062507409_quicksink.PNG.9eb7e3214606ecbfac64c6a7c7fec05a.PNG

50 minutes ago, wattsda said:

Not sure what im doing wrong. I have an I5-6500 with a z170 motherboard.  2062507409_quicksink.PNG.9eb7e3214606ecbfac64c6a7c7fec05a.PNG

In other words, it should be 

cd /dev/dri
ls

 

1 hour ago, ctrlbreak said:

Seems that Plex now supports Linux HW decoding AND transcoding on Nvidia: https://forums.plex.tv/t/plex-media-server/30447/286

 

Will this work with unraid and docker passthrough? What drivers might be required?

Follow the instructions in this post:

 

 

I have followed the guide without problem. But I'm not sure it works anyway.

Because when i compare how it looks i see only one hw and others have two.

Why?

 

916765143_Skrmavbild2019-10-09kl_15_44_33.thumb.png.cb2b675456c85269df7f3974da969459.png

 

1411644937_Skrmavbild2019-10-09kl_15_40_25.png.75b991fda0dbb0dacc14362f6570d9f7.png

Why do people use this crapy sh.. of QuickSync transcoding?

The quality is terrible and i dont pay for a PlexPass only for this - a useless feature (for me)... 😉

25 minutes ago, Taddeusz said:

@Lappen71 What CPU do you have? To support HEVC hardware decoding you need at least a Skylake CPU.

No i have Inte Xeon. But why does it show hw anyway?

2 minutes ago, Zonediver said:

Why do people use this crapy sh.. of QuickSync transcoding?

The quality is terrible and i dont pay for a PlexPass only for this - a useless feature (for me)... 😉

Because some doesn't have a choice

Edited by Lappen71

1 minute ago, Lappen71 said:

Because some doesn't have a choice

Why?

Just now, Zonediver said:

Why?

Why? Because i don't have the money to buy a dedicated graphs card.

Just now, Lappen71 said:

Why? Because i don't have the money to buy a dedicated graphs card.

For "what reason" do you need a Graphics card for transcoding??? The "CPU" will do this out of the Box - you dont need a graphics card...

1 minute ago, Zonediver said:

For "what reason" do you need a Graphics card for transcoding??? The "CPU" will do this out of the Box - you dont need a graphics card...

Because with many streams my CPU don't keep up. With Quicksynk HW that's not an issue. I used to own a MacMini and HW transcode could manage more streams.

6 minutes ago, Lappen71 said:

No i have Inte Xeon. But why does it show hw anyway?

Which model of Xeon do you have? If you notice it shows “hw” for the H.264 video just not for HEVC. It’s a newer technology that requires a Skylake architecture or better CPU.

5 minutes ago, Lappen71 said:

Because with many streams my CPU don't keep up. With Quicksynk HW that's not an issue. I used to own a MacMini and HW transcode could manage more streams.

You said, you use a Xeon... which Xeon? Normaly this CPUs are more the strong enough for transcoding.

My i7-3770 can transcode 5x 720p/4Mbit "on the fly parallel" - with only 3 cores + HT - the 4th core (+ HT) is reserved for unraid and all dockers...

Edited by Zonediver

5 minutes ago, Zonediver said:

You said, you use a Xeon... which Xeon? Normaly this CPUs are more the strong enough for transcoding.

My i7-3770 can transcode 5x 720p/4Mbit "on the fly parallel" - with only 3 cores + HT - the 4th core (+ HT) is reserved for unraid and all dockers...

That’s part of the problem of your perspective. Quick Sync quality on an Ivy Bridge CPU is not that great. It improved significantly with Haswell.

 

 Not everyone has the hardware reserves for CPU transcoding. You don’t know what else people have running on their machines.

15 minutes ago, Taddeusz said:

Which model of Xeon do you have? If you notice it shows “hw” for the H.264 video just not for HEVC. It’s a newer technology that requires a Skylake architecture or better CPU.

Its an Intel Xeon E3 1225 v3

It you look at the picture it shows hw even with HEVC but only in one place.

@Zonediver Just to discount Quick Sync hardware acceleration out of hand because it doesn’t meet your own quality standards doesn’t mean it wouldn’t be acceptable for others in different situations. Coming on here berating others for using it is rather rude.

2 minutes ago, Lappen71 said:

Its an Intel Xeon E3 1225 v3

It you look at the picture it shows hw even with HEVC but only in one place.

The left side is the original video format, in this case HEVC. That’s what it is decoding. The right side is showing that it is encoding to H.264 using hardware.

 

 Your E3 is a Haswell architecture CPU so it cannot decode or encode HEVC in hardware.

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.