Jump to content


Photo

Enable hardware acceleration on FreeBSD

drm intel libva vaapi

  • Please log in to reply
47 replies to this topic

#41 bingemeister OFFLINE  

bingemeister

    Newbie

  • Members
  • 3 posts
  • Local time: 02:39 PM

Posted 13 March 2020 - 03:54 PM

I'm having the same issue with my FreeBSD server. Hardware acceleration works perfectly when using ffmpeg directly but ffdetect seems to have some issues with my system.

 

Is it in any way possible to force emby to use hardware acceleration regardless of what ffdetect reports?

 

Output of ffdetect:

# /usr/local/lib/emby-server/bin/ffdetect -hide_banner -show_program_version -loglevel 48 -show_error -show_log 40 vaencdec -print_format json
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
{
    "ProgramVersion": {
        "Version": "4.3.0-emby_2019_11_09",
        "Copyright": "Copyright (c) 2018-2019 softworkz for Emby Llc",
        "Compiler": "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"
    },
    "Devices": [
Begin GetVaAdapterInfo
Found -1 device entries
End GetVaAdapterInfo

    ],
    "Log": [
        {
            "Level": 40,
            "Category": 0,
            "Message": "Found -1 device entries"
        }
    ]
}

Output of vainfo:

# vainfo
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.6.0
libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/local/lib/dri/i965_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 i965 driver for Intel(R) Haswell Server - 2.4.0
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Simple            :	VAEntrypointEncSlice
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileH264MultiviewHigh      :	VAEntrypointVLD
      VAProfileH264MultiviewHigh      :	VAEntrypointEncSlice
      VAProfileH264StereoHigh         :	VAEntrypointVLD
      VAProfileH264StereoHigh         :	VAEntrypointEncSlice
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileJPEGBaseline           :	VAEntrypointVLD


#42 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156835 posts
  • Local time: 09:39 AM

Posted 13 March 2020 - 04:06 PM

It's not that simple. If ffdetect can't use it, then neither will our embedded ffmpeg builds, so it's not a matter of hacking the detection. We're still trying to figure out what's going on. Thanks.



#43 bingemeister OFFLINE  

bingemeister

    Newbie

  • Members
  • 3 posts
  • Local time: 02:39 PM

Posted 13 March 2020 - 04:09 PM

Hm I understand. If there is any information I could provide you with to help you investigate this, please let me know.



#44 Baenwort OFFLINE  

Baenwort

    Advanced Member

  • Members
  • 184 posts
  • Local time: 02:39 PM

Posted 19 March 2020 - 12:05 AM

So it seems the PLEX guys have gotten it working at https://www.ixsystem...on.75391/page-3 has anyone been able to get Emby to use HW?

#45 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156835 posts
  • Local time: 09:39 AM

Posted 19 March 2020 - 12:06 AM

We're looking to hire someone from the FreeBSD community who can help us with this.



#46 bingemeister OFFLINE  

bingemeister

    Newbie

  • Members
  • 3 posts
  • Local time: 02:39 PM

Posted 19 March 2020 - 02:15 PM

If it helps you to debug the issue I can offer you full SSH access to my server.


  • Duffyx likes this

#47 Duffyx OFFLINE  

Duffyx

    Advanced Member

  • Members
  • 47 posts
  • Local time: 03:39 PM
  • LocationBelgium

Posted 21 April 2020 - 03:25 AM

Luke, could the ffdetect developer use the SSH access? This can help but might be quite intensive.

But when adding enough debug statements in the ffdetect binary, output can be compared between a Linux and FreeBSD machine in between functions.


Edited by Duffyx, 21 April 2020 - 03:25 AM.


#48 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156835 posts
  • Local time: 09:39 AM

Posted 26 April 2020 - 04:23 PM

Luke, could the ffdetect developer use the SSH access? This can help but might be quite intensive.

But when adding enough debug statements in the ffdetect binary, output can be compared between a Linux and FreeBSD machine in between functions.

 

If you're offering to provide a machine, thank you very much, although once we find a FreeBsd developer we'll make sure they have a local environment for this. Thanks.


  • Baenwort likes this





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