Jump to content


Photo

Enable hardware acceleration on FreeBSD

drm intel libva vaapi

  • Please log in to reply
47 replies to this topic

#21 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 157111 posts
  • Local time: 01:59 AM

Posted 23 June 2019 - 10:34 PM

We're still trying to chase this down. If you know someone knowledge about this in the freebsd community let them know we'll be happy to employ them temporarily to help us with it. Thanks.



#22 Duffyx OFFLINE  

Duffyx

    Advanced Member

  • Members
  • 47 posts
  • Local time: 07:59 AM
  • LocationBelgium

Posted 13 July 2019 - 05:13 AM

I'm wondering if there is like a hidden option in the web interface that the user can enforce hardware transcoding.

That option would just hard use the render node, instead of relying on the ffdetect to detect it.

That way we could rule out that Emby *can/cannot* use a render node and it is a bug in the fftdetect binary.


Edited by Duffyx, 13 July 2019 - 05:13 AM.


#23 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 157111 posts
  • Local time: 01:59 AM

Posted 13 July 2019 - 10:30 AM

No there isn't.

#24 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 157111 posts
  • Local time: 01:59 AM

Posted 16 July 2019 - 06:18 PM

Only if you're using the server on FreeBSD.



#25 bizarro252 OFFLINE  

bizarro252

    Advanced Member

  • Members
  • 143 posts
  • Local time: 10:59 PM

Posted 21 August 2019 - 06:31 PM

Bumping this to see if there is any news, as well as offer up myself as another tester.



#26 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 157111 posts
  • Local time: 01:59 AM

Posted 21 August 2019 - 09:44 PM

The situation is still the same. Please see post 21. Thanks.

#27 bizarro252 OFFLINE  

bizarro252

    Advanced Member

  • Members
  • 143 posts
  • Local time: 10:59 PM

Posted 21 August 2019 - 09:49 PM

Thanks. I will look on the FreeNAS forums to see if someone has already asked and if not will see if anyone fits the bill :)

#28 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 157111 posts
  • Local time: 01:59 AM

Posted 21 August 2019 - 10:25 PM

Thanks. Make sure they are aware it is gainful employment.

#29 bizarro252 OFFLINE  

bizarro252

    Advanced Member

  • Members
  • 143 posts
  • Local time: 10:59 PM

Posted 21 August 2019 - 11:34 PM

Will do, rules say no advertising so checking with one of their admins about how / if I can post about it.



#30 Aanerud OFFLINE  

Aanerud

    Newbie

  • Members
  • 1 posts

Posted 22 August 2019 - 02:33 AM

It’s possible ,
https://passthroughp...rking-on-bhyve/

But probably still pretty experimental.

Workaround that many uses, is having the host run ESXi, then FreeBSD / FreeNAS as a VM. That allows you to spin up “whatever” next to it, and get full local speed.

ESXi uses pass trough to the HBA for the drives, and pass trough GPU’s to other VM’s


Sent from my iPhone using Tapatalk

#31 bizarro252 OFFLINE  

bizarro252

    Advanced Member

  • Members
  • 143 posts
  • Local time: 10:59 PM

Posted 22 August 2019 - 06:53 PM

So, at least according to this, where they are discussing enabling it on Plex, it needs to be on FreeBSD 12, so we (FreeNAS users anyways) may just have to wait.

 

https://www.ixsystem...91/#post-545237

 

Looks like beta release will start in Dec.

https://redmine.ixsy...om/versions/467


Edited by bizarro252, 22 August 2019 - 06:56 PM.

  • Baenwort likes this

#32 makarai OFFLINE  

makarai

    Advanced Member

  • Members
  • 549 posts
  • Local time: 07:59 AM

Posted 25 August 2019 - 11:14 AM

So, at least according to this, where they are discussing enabling it on Plex, it needs to be on FreeBSD 12, so we (FreeNAS users anyways) may just have to wait.

 

https://www.ixsystem...91/#post-545237

 

Looks like beta release will start in Dec.

https://redmine.ixsy...om/versions/467

 

 

unfortunately this is not the current roadmap.



#33 bizarro252 OFFLINE  

bizarro252

    Advanced Member

  • Members
  • 143 posts
  • Local time: 10:59 PM

Posted 27 August 2019 - 11:59 PM

unfortunately this is not the current roadmap.

Hi, what do you mean?  Do I have the wrong/old link?

Thanks



#34 makarai OFFLINE  

makarai

    Advanced Member

  • Members
  • 549 posts
  • Local time: 07:59 AM

Posted 28 August 2019 - 05:44 AM

Hi, what do you mean?  Do I have the wrong/old link?

Thanks

 

its here https://jira.ixsyste...board.jspa?id=3  you have to have an account for whatever reason.

Attached Files


  • bizarro252 likes this

#35 Baenwort OFFLINE  

Baenwort

    Advanced Member

  • Members
  • 184 posts
  • Local time: 06:59 AM

Posted 01 March 2020 - 04:37 PM

So, at least according to this, where they are discussing enabling it on Plex, it needs to be on FreeBSD 12, so we (FreeNAS users anyways) may just have to wait.

 

https://www.ixsystem...91/#post-545237

 

Looks like beta release will start in Dec.

https://redmine.ixsy...om/versions/467

 

So according to the post at the bottom he got it working on 11.3 which we are now upto on FreeNAS. https://www.ixsystem...391/post-551470

 

Anyone had any success? 



#36 Duffyx OFFLINE  

Duffyx

    Advanced Member

  • Members
  • 47 posts
  • Local time: 07:59 AM
  • LocationBelgium

Posted 01 March 2020 - 04:49 PM

I haven't gotten this to work on FreeBSD 12-STABLE and since recently I'm on FreeBSD 13 (head) so I'm happy to test anything. ATM I can only tell that its not working because of the way Emby detects hardware transcoding features with ffdetect. I have everything loaded correctly, vainfo shows all available entries for VAAPI, etc.

root@emby:/usr/local/lib/emby-server/bin # su -m emby -c "./ffdetect vaenc"
ffdetect version 4.3.0-emby_2019_11_09 Copyright (c) 2018-2019 softworkz for Emby LLC
  built with gcc 9.2.0 (FreeBSD Ports Collection)
  configuration: --cc=gcc --prefix=/usr/home/embybuilder/Buildbot-master/x64_freebsd12/ffdetect-x64_freebsd12/staging --pkg-config=pkg-config --disable-doc --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-vdpau --enable-vaapi --extra-libs='-ldrm -lva -lva-drm -ldl -lm -lpthread' --arch=x86_64 --disable-shared --enable-static
  libavutil      56. 34.100 / 56. 34.100
root@emby:/usr/local/lib/emby-server/bin # su -m emby -c "./ffdetect vadec"
ffdetect version 4.3.0-emby_2019_11_09 Copyright (c) 2018-2019 softworkz for Emby LLC
  built with gcc 9.2.0 (FreeBSD Ports Collection)
  configuration: --cc=gcc --prefix=/usr/home/embybuilder/Buildbot-master/x64_freebsd12/ffdetect-x64_freebsd12/staging --pkg-config=pkg-config --disable-doc --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-vdpau --enable-vaapi --extra-libs='-ldrm -lva -lva-drm -ldl -lm -lpthread' --arch=x86_64 --disable-shared --enable-static
  libavutil      56. 34.100 / 56. 34.100
root@emby:/usr/local/lib/emby-server/bin # su -m emby -c "./ffdetect vaencdec"
ffdetect version 4.3.0-emby_2019_11_09 Copyright (c) 2018-2019 softworkz for Emby LLC
  built with gcc 9.2.0 (FreeBSD Ports Collection)
  configuration: --cc=gcc --prefix=/usr/home/embybuilder/Buildbot-master/x64_freebsd12/ffdetect-x64_freebsd12/staging --pkg-config=pkg-config --disable-doc --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-vdpau --enable-vaapi --extra-libs='-ldrm -lva -lva-drm -ldl -lm -lpthread' --arch=x86_64 --disable-shared --enable-static
  libavutil      56. 34.100 / 56. 34.100
root@emby:/usr/local/lib/emby-server/bin # su -m emby -c vainfo
libva info: VA-API version 1.6.0
libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_6
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.6 (libva 2.6.0.0)
vainfo: Driver version: Intel iHD driver - 19.4.0
vainfo: Supported profile and entrypoints
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileNone                   : VAEntrypointStats
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointFEI
      VAProfileH264Main               : VAEntrypointEncSliceLP
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointFEI
      VAProfileH264High               : VAEntrypointEncSliceLP
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointFEI
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointFEI

Edited by Duffyx, 01 March 2020 - 04:54 PM.

  • Baenwort likes this

#37 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 157111 posts
  • Local time: 01:59 AM

Posted 01 March 2020 - 04:55 PM

 

I haven't gotten this to work on FreeBSD 12-STABLE and since recently I'm on FreeBSD 13 (head) so I'm happy to test anything. ATM I can only tell that its not working because of the way Emby detects hardware transcoding features with ffdetect. I have everything loaded correctly, vainfo shows all available entries for VAAPI, etc.

root@emby:/usr/local/lib/emby-server/bin # su -m emby -c "./ffdetect vaenc"
ffdetect version 4.3.0-emby_2019_11_09 Copyright (c) 2018-2019 softworkz for Emby LLC
  built with gcc 9.2.0 (FreeBSD Ports Collection)
  configuration: --cc=gcc --prefix=/usr/home/embybuilder/Buildbot-master/x64_freebsd12/ffdetect-x64_freebsd12/staging --pkg-config=pkg-config --disable-doc --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-vdpau --enable-vaapi --extra-libs='-ldrm -lva -lva-drm -ldl -lm -lpthread' --arch=x86_64 --disable-shared --enable-static
  libavutil      56. 34.100 / 56. 34.100
root@emby:/usr/local/lib/emby-server/bin # su -m emby -c "./ffdetect vadec"
ffdetect version 4.3.0-emby_2019_11_09 Copyright (c) 2018-2019 softworkz for Emby LLC
  built with gcc 9.2.0 (FreeBSD Ports Collection)
  configuration: --cc=gcc --prefix=/usr/home/embybuilder/Buildbot-master/x64_freebsd12/ffdetect-x64_freebsd12/staging --pkg-config=pkg-config --disable-doc --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-vdpau --enable-vaapi --extra-libs='-ldrm -lva -lva-drm -ldl -lm -lpthread' --arch=x86_64 --disable-shared --enable-static
  libavutil      56. 34.100 / 56. 34.100
root@emby:/usr/local/lib/emby-server/bin # su -m emby -c "./ffdetect vaencdec"
ffdetect version 4.3.0-emby_2019_11_09 Copyright (c) 2018-2019 softworkz for Emby LLC
  built with gcc 9.2.0 (FreeBSD Ports Collection)
  configuration: --cc=gcc --prefix=/usr/home/embybuilder/Buildbot-master/x64_freebsd12/ffdetect-x64_freebsd12/staging --pkg-config=pkg-config --disable-doc --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-vdpau --enable-vaapi --extra-libs='-ldrm -lva -lva-drm -ldl -lm -lpthread' --arch=x86_64 --disable-shared --enable-static
  libavutil      56. 34.100 / 56. 34.100
root@emby:/usr/local/lib/emby-server/bin # su -m emby -c vainfo
libva info: VA-API version 1.6.0
libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_6
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.6 (libva 2.6.0.0)
vainfo: Driver version: Intel iHD driver - 19.4.0
vainfo: Supported profile and entrypoints
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileNone                   : VAEntrypointStats
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointFEI
      VAProfileH264Main               : VAEntrypointEncSliceLP
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointFEI
      VAProfileH264High               : VAEntrypointEncSliceLP
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointFEI
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointFEI

 

Can you provide the hardware detection log? thanks.



#38 Duffyx OFFLINE  

Duffyx

    Advanced Member

  • Members
  • 47 posts
  • Local time: 07:59 AM
  • LocationBelgium

Posted 01 March 2020 - 05:02 PM

Can you provide the hardware detection log? thanks.

 

Happy to help =)

Attached Files



#39 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 157111 posts
  • Local time: 01:59 AM

Posted 01 March 2020 - 05:03 PM

Did you install using the freenas plugin?



#40 Duffyx OFFLINE  

Duffyx

    Advanced Member

  • Members
  • 47 posts
  • Local time: 07:59 AM
  • LocationBelgium

Posted 01 March 2020 - 05:04 PM

I'm on native FreeBSD. If it doesnt work there I doubt it will work on FreeNAS. I installed through FreeBSD ports.







Also tagged with one or more of these keywords: drm, intel, libva, vaapi

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users