Project

General

Profile

Feature #33399

Quicksync/nvenc

Added by Kenny Bülow Larsen over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
No priority
Assignee:
Martin Wilke
Category:
Plugins
Target version:
Estimated time:
Severity:
Medium
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
Tags:

Description

Alot of people are using FreeNas with a Plex Jail/VM
so it would be wonderfull if you could add the ability to use Quicksync/nvenc
aka. Quicksync is on most cpu's and nvenc is on nvidia grafic cards.
a accelerator for transcodeing in plex.

Plex has it atm in Plex Pass, and are soon to go public with it. but would be good to test it out and well use the ability of our CPU/grafic card power

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


Related issues

Related to FreeNAS - Feature #30663: Add graphics/drm-next-kmod to system Done
Related to FreeNAS - Feature #47015: Add nvidia-driver pkg to buildClosed
Related to FreeNAS - Feature #54270: Add hw passthrough for VM (Bhyve) (Quicksync/Nvidia transcode support in VM)Closed
Has duplicate FreeNAS - Feature #56799: Officially support Intel Quick Sync Hardware accelerated transcoding in Plex Closed

History

#1 Updated by Dru Lavigne about 2 years ago

  • Target version changed from 11.1-U4 to Backlog

#2 Updated by Dru Lavigne about 2 years ago

  • Assignee changed from Release Council to Alexander Motin

#3 Updated by Alexander Motin about 2 years ago

  • Assignee changed from Alexander Motin to Kris Moore

Plex site tells there is no transcoding acceleration support for FreeBSD, so that may be not easy.

Kris, have you heard anything about it?

#4 Avatar?id=14398&size=24x24 Updated by Kris Moore about 2 years ago

I'll do some research on this. I know it hasn't been supported by FreeBSD in the past, but perhaps we can make it work with some ports love ;)

#5 Updated by Dru Lavigne about 2 years ago

  • Assignee changed from Kris Moore to Alexander Motin

#6 Updated by Alexander Motin about 2 years ago

  • Assignee changed from Alexander Motin to Brandon Schneider

Brandon, Kris had some progress on this side, and he believes we may have all the things required, and the only problem is that the code is blocked on the Plex side. Please contact Kris for details he found.

#7 Updated by Brandon Schneider about 2 years ago

  • Status changed from Unscreened to Not Started

#8 Updated by Jake Baynham about 2 years ago

Kenny Bülow Larsen wrote:

Alot of people are using FreeNas with a Plex Jail/VM
so it would be wonderfull if you could add the ability to use Quicksync/nvenc
aka. Quicksync is on most cpu's and nvenc is on nvidia grafic cards.
a accelerator for transcodeing in plex.

Plex has it atm in Plex Pass, and are soon to go public with it. but would be good to test it out and well use the ability of our CPU/grafic card power

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

Hello I apologize if this isn't the place to do this but I would like to express my interest in this feature as well.

#9 Updated by Brandon Schneider about 2 years ago

  • Severity changed from New to Low

#10 Updated by Kenny Bülow Larsen about 2 years ago

Hmm according to other VM in Ubuntu etc. They just need a passthrough of graficcard. I ofc don't know what else it takes :) but nice to see progress. Keep it up guys!

#11 Updated by William Grzybowski about 2 years ago

  • Category changed from Hardware to Middleware

#12 Updated by Disk Didler about 2 years ago

Kenny Bülow Larsen wrote:

Hmm according to other VM in Ubuntu etc. They just need a passthrough of graficcard. I ofc don't know what else it takes :) but nice to see progress. Keep it up guys!

I am also interested in this.

I imagine it would be significantly easier to do, under the new iocage jails, rather than VM pass through. Is this to the intel GPU onboard most of their CPUs?
Also is this the same as "QuickAssist"?
https://ark.intel.com/products/97937/Intel-Atom-Processor-C3558-8M-Cache-up-to-2_20-GHz
"Integrated Intel® QuickAssist Technology" ?

#13 Updated by Kenny Bülow Larsen about 2 years ago

Disk Didler wrote:

Kenny Bülow Larsen wrote:

Hmm according to other VM in Ubuntu etc. They just need a passthrough of graficcard. I ofc don't know what else it takes :) but nice to see progress. Keep it up guys!

I am also interested in this.

I imagine it would be significantly easier to do, under the new iocage jails, rather than VM pass through. Is this to the intel GPU onboard most of their CPUs?
Also is this the same as "QuickAssist"?
https://ark.intel.com/products/97937/Intel-Atom-Processor-C3558-8M-Cache-up-to-2_20-GHz
"Integrated Intel® QuickAssist Technology" ?

nope it's not QuickAssist. its Quicksync.(google quicksync) Quicksync is from the Intel CPU feature, it's almost the same as NVENC from nvidia cards, a way to transcode on the fly video streams from 1 format to another. can use ffmpeg and such to generate faster movies converts, also Plex uses it to transcode when a player can't direct play a, let's say a mkv or mp4 format.
thinks its the same in jail (iocage) and VM, the host needs to have "drivers" for it and able to passthrough, then iocage and bhyve just needs to pick it up basiclly

#14 Updated by Disk Didler about 2 years ago

I suspected that might be the case. Thanks.

Does that mean Denverton is not supporting quicksync? (I couldn't see it on intel ark unfortunately)

EDIT: I've checked, no. So I just best hope an 8 core model is beefy enough for plex under an iocage jail.

#15 Updated by Rob Ert about 2 years ago

  • Target version changed from Backlog to 11.2-BETA3
  • Severity changed from Low to High

So is this going to happen ?

I NEED this feature badly !

Hopefully you clever folk will figure it out soon

11.2 RC1 maybe ? :-)

#16 Updated by John Chen about 2 years ago

I need this feature too.

Hopefully it will be implemented ASAP.

Thanks ^^

#17 Updated by William Grzybowski about 2 years ago

  • Target version changed from 11.2-BETA3 to Backlog
  • Severity changed from High to Medium

Rob Ert wrote:

So is this going to happen ?

I NEED this feature badly !

Hopefully you clever folk will figure it out soon

11.2 RC1 maybe ? :-)

Please don't change target version nor priority, its not up to the community to set priority on issues.

#18 Updated by Dru Lavigne about 2 years ago

  • Assignee changed from Brandon Schneider to Kris Moore

#20 Updated by Dru Lavigne about 2 years ago

  • Target version changed from Backlog to Backlog

#21 Avatar?id=14398&size=24x24 Updated by Kris Moore almost 2 years ago

  • Status changed from Not Started to Blocked
  • Target version changed from Backlog to 11.3
  • Reason for Blocked set to Dependent on a related task to be completed

#22 Avatar?id=14398&size=24x24 Updated by Kris Moore almost 2 years ago

  • Related to Feature #30663: Add graphics/drm-next-kmod to system added

#23 Avatar?id=14398&size=24x24 Updated by Kris Moore almost 2 years ago

  • Blocked by Feature #42569: Add ability for iocage plugin to specifiy kernel modules added

#24 Updated by Rob Ert almost 2 years ago

Great to see this is being worked on :-)
Your hard work is appreciated !

#25 Avatar?id=14398&size=24x24 Updated by Kris Moore almost 2 years ago

#26 Updated by Dru Lavigne almost 2 years ago

  • Status changed from Blocked to Unscreened
  • Reason for Blocked deleted (Dependent on a related task to be completed)

#27 Updated by Kenny Bülow Larsen almost 2 years ago

Hello
Nice to See Progress!
But was wondering if only iocage gets this feature ? Or is it also byhve VM that gets passthrough to the hardware ?

#28 Avatar?id=14398&size=24x24 Updated by Kris Moore almost 2 years ago

  • Status changed from Unscreened to In Progress
  • Target version changed from 11.3 to 11.2-RC2

GPU passthrough in a VM is another whole project. We'll be starting with iocage / jails first here and can re-visit this in VM's at a later point.

#29 Avatar?id=14398&size=24x24 Updated by Kris Moore almost 2 years ago

#30 Updated by Kenny Bülow Larsen almost 2 years ago

Kris Moore wrote:

GPU passthrough in a VM is another whole project. We'll be starting with iocage / jails first here and can re-visit this in VM's at a later point.

Woohoo
Is there a feature request for nullfs mount in iocage than ?! Then I can switch back to Plex rclone in iocage hehe.

#31 Updated by Kenny Bülow Larsen almost 2 years ago

Correction.
Fuse mount inside iocage

#32 Avatar?id=14398&size=24x24 Updated by Kris Moore almost 2 years ago

Why would you need FUSE mount for this? We're going to use devfs to pass in the GPU devices directly.

#33 Updated by Kenny Bülow Larsen almost 2 years ago

Can't Post ?!? Or edit only short answers..

Basically I use and alot others rclone mount of cloud storage. Aka for Plex

Requesting passthrough GPU for iocage and VM

I use VM because of Fuse mount which you can't in iocage

#34 Updated by Kenny Bülow Larsen almost 2 years ago

That's why the question about Fuse mount if you knew there was a request ATM. It would lift the GPU passthrough along side with people could use cloud storage along with Plex transcode etc

#35 Avatar?id=14398&size=24x24 Updated by Kris Moore almost 2 years ago

Ok, so that sounds like a different issue. I'm not 100% positive FUSE mounting can be added inside a jail, but I'd suggest you open a separate ticket on that specifically so we can investigate.

#36 Updated by Kenny Bülow Larsen almost 2 years ago

Byte ny bits just released a guide to unleash the nvenc standard 2 limit hw transcode.
Something you could add as well ? Or make It possible to enable/disable ?
[[https://youtu.be/bQLgbc9NFdU]]

#37 Updated by Kenny Bülow Larsen almost 2 years ago

Or just make it Possible to use our own drivers ?
Benefit of passthrough to a VM then we sort it Out our self

#38 Updated by Carl Adams almost 2 years ago

So, what is Emby doing differently that it already has Quicksync / NVENC / VAAPI / OpenMAX support for transcoding in jails?

If we're adding driver support for GPUs via this request (and it seems from the comments that FreeNAS does not currently include the graphics drivers). Can the AMD/ATI drivers be included for those running AMD systems? The linux open drivers run on OpenBSD and I suppose FreeBSD could be similar enough to use the same work.

#39 Updated by Alexander Motin almost 2 years ago

Package added to the build in ticket #30663 include both Intel and AMD drivers. I don't know whether AMD side was tested, but I suppose we are as close to it as we could. You could try to load `amdgpu` kernel module to see what happen and least with console video mode.

#40 Updated by Dru Lavigne almost 2 years ago

  • Category changed from Middleware to OS
  • Assignee changed from Kris Moore to Alexander Motin

#41 Updated by Alexander Motin almost 2 years ago

  • Target version changed from 11.2-RC2 to 11.2-U2

Bump this forward. While prerequisites are done, AFAIK there is still no FreeBSD version of Plex supporting hardware transcoding. Hope it will be soon.

#42 Updated by Kenny Bülow Larsen almost 2 years ago

Alexander Motin wrote:

Bump this forward. While prerequisites are done, AFAIK there is still no FreeBSD version of Plex supporting hardware transcoding. Hope it will be soon.

:(

alltho! you could look into this aswell as it would be able to run bhyve VM with etc. ubuntu witch has support in plex Feature #54270

#43 Updated by Dru Lavigne almost 2 years ago

  • Related to Feature #54270: Add hw passthrough for VM (Bhyve) (Quicksync/Nvidia transcode support in VM) added

#44 Updated by Alexander Motin almost 2 years ago

  • Assignee changed from Alexander Motin to Martin Wilke

According to today meeting, Plex yesterday released the FreeBSD version with hardware transcoding support. So it can get in time for FreeNAS 11.2.

Martin, Kris told me that you will be working on plugin update, so pushing this ticket to you.

#45 Updated by Martin Wilke almost 2 years ago

  • Status changed from In Progress to Blocked

#47 Avatar?id=14398&size=24x24 Updated by Kris Moore almost 2 years ago

  • Private changed from No to Yes

Martin - We are not. There is a setting in the UI which the user can toggle to enable DRM-KMS module for intel, that handles the loading of driver already. We don't try to auto-detect and set this yet, but if we manually enable the flag it should expose the /dev/dri* devices necessary for Plex.

#48 Updated by Dru Lavigne over 1 year ago

  • Has duplicate Feature #56799: Officially support Intel Quick Sync Hardware accelerated transcoding in Plex added

#49 Updated by Dru Lavigne over 1 year ago

  • Status changed from Blocked to In Progress

#50 Updated by Dru Lavigne over 1 year ago

  • Private changed from Yes to No

#51 Updated by Dru Lavigne over 1 year ago

  • Category changed from OS to Plugins

#52 Updated by Dru Lavigne over 1 year ago

  • Target version changed from 11.2-U2 to 11.2-U3

#54 Updated by Dru Lavigne over 1 year ago

  • Target version changed from 11.2-U3 to 11.2-U4

#55 Avatar?id=14398&size=24x24 Updated by Kris Moore over 1 year ago

  • Blocked by deleted (Feature #42569: Add ability for iocage plugin to specifiy kernel modules)

#56 Avatar?id=14398&size=24x24 Updated by Kris Moore over 1 year ago

  • Blocked by deleted (Feature #42593: Add devfs rules to iocage plugins)

#57 Avatar?id=14398&size=24x24 Updated by Kris Moore over 1 year ago

  • Status changed from In Progress to Closed

Also available in: Atom PDF