Jump to content

Enable hardware acceleration on FreeBSD


Recommended Posts

Posted

Is the concept the same for nvidia cards? Will a separate sys tree be required to copy into the jail?

Posted

Yes, its the same concept.

Posted
50 minutes ago, Duffyx said:

Yes, its the same concept.

Thanks, I'm not entirely sure then how to know what directories from /sys I need to copy into the jail. Do we know the method by which the Intel /sys directories were found?

Posted

Just copy the tarball as layed out. The files are not actually used by anything that matters, its just faking a GPU for ffdetect to pick up. It might work by changing some numbers around to get an "nvidia gpu" to show up. Although tbh I don't know what the state of nvidia is on FreeBSD, nvenc seems a far shot, maybe VAAPI.

  • 4 weeks later...
bbartlomiej
Posted

I'm a bit stuck. I used to have it working for a while but now even though vainfo and ffdetect show everything they should, symling is there, /sys is extracted - I don't see anything in transcoding tab in the dashboard :(

root@emby:/usr/local/lib/emby-server/bin # su -m emby -c "./ffdetect -hide_banner -show_program_version -loglevel 99 -show_error -show_log 99 vaencdec -print_format json"
ffdetect version 4.3.0-emby_2021_02_27 Copyright (c) 2018-2021 softworkz for Emby LLC
  built with FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2)
  configuration: --cc=clang --prefix=/usr/home/embybuilder/x64_freebsd12/ffmpeg-x64_freebsd12/staging --disable-alsa --disable-debug --disable-doc --disable-ffplay --disable-libpulse --disable-vdpau --disable-xlib --enable-chromaprint --enable-fontconfig --enable-gnutls --enable-gpl --enable-iconv --enable-libaribb24 --enable-libass --enable-libdav1d --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libzvbi --enable-pic --enable-version3 --enable-libx265 --enable-vaapi --enable-opencl --arch=x86_64 --enable-shared --disable-static --pkg-config=pkg-config --pkg-config-flags=--static --extra-libs='-lm -lstdc++ -pthread'
  WARNING: library configuration mismatch
  avutil      configuration: --prefix=/usr/local --mandir=/usr/local/man --datadir=/usr/local/share/ffmpeg --pkgconfigdir=/usr/local/libdata/pkgconfig --disable-static --disable-libcelt --enable-shared --enable-pic --enable-gpl --enable-avresample --cc=cc --cxx=c++ --disable-alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --enable-libaom --disable-libaribb24 --enable-asm --enable-libass --disable-libbs2b --disable-libcaca --disable-libcdio --disable-libcodec2 --enable-libdav1d --disable-libdavs2 --disable-libdc1394 --disable-debug --enable-htmlpages --enable-libdrm --disable-libfdk-aac --disable-libflite --enable-fontconfig --enable-libfreetype --enable-frei0r --disable-libfribidi --disable-gcrypt --disable-libglslang --disable-libgme --enable-gmp --enable-gnutls --enable-version3 --disable-libgsm --enable-iconv --disable-libilbc --disable-libjack --disable-libklvanc --disable-libkvazaar --disable-ladspa --enable-libmp3lame --disable-liblensfun --disable-libbluray --disable-librsvg --disable-librtmp --enable-libxml2 --disable-lto --disable-lv2 --disable-mbedtls --disable-libmfx --disable-libmodplug --disable-libmysofa --disable-nonfree --disable-openal --disable-opencl --disable-opengl --disable-libopenh264 --disable-libopenjpeg --disable-libopenmpt --disable-openssl --disable-libopenvino --enable-optimizations --enable-libopus --disable-pocketsphinx --disable-libpulse --disable-librabbitmq --disable-librav1e --disable-librist --enable-runtime-cpudetect --disable-librubberband --disable-sdl2 --disable-libsmbclient --disable-libsnappy --disable-sndio --disable-libsoxr --disable-libspeex --disable-libsrt --disable-libssh --disable-libtensorflow --disable-libtesseract --enable-libtheora --disable-libtwolame --disable-libuavs3d --enable-libv4l2 --enable-vaapi --disable-vapoursynth --enable-vdpau --disable-libvidstab --enable-libvmaf --enable-libvorbis --disable-libvo-amrwbenc --enable-libvpx --disable-vulkan --disable-libwebp --enable-libx264 --enable-libx265 --disable-libxavs2 --enable-libxcb --enable-libxvid --disable-outdev=xv --disable-libzimg --disable-libzmq --disable-libzvbi
  libavutil      56. 36.100 / 56. 70.100
{
    "ProgramVersion": {
        "Version": "4.3.0-emby_2021_02_27",
        "Copyright": "Copyright (c) 2018-2021 softworkz for Emby Llc",
        "Compiler": "FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2)",
        "Configuration": "--cc=clang --prefix=/usr/home/embybuilder/x64_freebsd12/ffmpeg-x64_freebsd12/staging --disable-alsa --disable-debug --disable-doc --disable-ffplay --disable-libpulse --disable-vdpau --disable-xlib --enable-chromaprint --enable-fontconfig --enable-gnutls --enable-gpl --enable-iconv --enable-libaribb24 --enable-libass --enable-libdav1d --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libzvbi --enable-pic --enable-version3 --enable-libx265 --enable-vaapi --enable-opencl --arch=x86_64 --enable-shared --disable-static --pkg-config=pkg-config --pkg-config-flags=--static --extra-libs='-lm -lstdc++ -pthread'"
    },
    "Devices": [
Begin GetVaAdapterInfo
Found 1 device entries
Check device at index 0: /sys/bus/pci/devices/pci0000_00/class
Adding adapter '/sys/bus/pci/devices/pci0000_00' - VendorId: 4660 DeviceId: 4369 - Subsystem: V: 6900, D: 4352
GetDeviceName - Start
find_record: no record found
       adapter '/sys/bus/pci/devices/pci0000_00' - VendorName: (null)
GetDeviceName - Start
find_record: no record found
       adapter '/sys/bus/pci/devices/pci0000_00' - DeviceName: (null)
GetDeviceName - Start
find_record: found: Red Hat, Inc.
       adapter '/sys/bus/pci/devices/pci0000_00' - Subsystem VendorName: Red Hat, Inc.
GetDeviceName - Start
find_record: no record found
find_record: no record found
       adapter '/sys/bus/pci/devices/pci0000_00' - Subsystem DeviceName: (null)
Begin get_nodes
Found 2 drm entries
Found drm node '/dev/dri/card0'
Found drm node '/dev/dri/render0'
End GetVaAdapterInfo
        {
            "DeviceIndex": 0,
            "DeviceInfo": {
                "SubsytemVendorName": "Red Hat, Inc.",
                "VendorId": 4660,
                "DeviceId": 4369,
                "SubsytemVendorId": 6900,
                "SubsytemDeviceId": 4352,
                "DevPath": "/sys/bus/pci/devices/pci0000_00",
                "DrmCard": "/dev/dri/card0",
                "DrmRender": "/dev/dri/render0",
                "IsEnabled": 1,
/dev/dri/render0: VA-API version: 1.13 (libva 1.12.0)
                "IsBootVga": 1,
                "ApiVersionMajor": 1,
/dev/dri/render0: Driver version: Intel i965 driver for Intel(R) Haswell Desktop - 2.4.1
                "ApiVersionMinor": 13,
                "Driver": "Intel i965 driver for Intel(R) Haswell Desktop - 2.4.1"
            },
            "Decoders": [
                {
                    "CodecName": "MPEG2VIDEO",
                    "CodecProfile": "MPEG2_SIMPLE",
                    "CodecId": 2,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 1,
                    "DecSliceMode": 1
                },
                {
                    "CodecName": "MPEG2VIDEO",
                    "CodecProfile": "MPEG2_MAIN",
                    "CodecId": 2,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 1,
                    "DecSliceMode": 1
                },
                {
                    "CodecName": "H264",
                    "CodecProfile": "H264_CONSTRAINED_BASELINE",
                    "CodecId": 27,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 17,
                    "DecSliceMode": 1
                },
                {
                    "CodecName": "H264",
                    "CodecProfile": "H264_MAIN",
                    "CodecId": 27,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 17,
                    "DecSliceMode": 1
                },
                {
                    "CodecName": "H264",
                    "CodecProfile": "H264_HIGH",
                    "CodecId": 27,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 17,
                    "DecSliceMode": 1
                },
                {
                    "CodecName": "WMV3",
                    "CodecProfile": "VC1_SIMPLE",
                    "CodecId": 71,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 1,
                    "DecSliceMode": 1
                },
                {
                    "CodecName": "VC1",
                    "CodecProfile": "VC1_SIMPLE",
                    "CodecId": 70,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 1,
                    "DecSliceMode": 1
                },
                {
                    "CodecName": "WMV3",
                    "CodecProfile": "VC1_MAIN",
                    "CodecId": 71,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 1,
                    "DecSliceMode": 1
                },
                {
                    "CodecName": "VC1",
                    "CodecProfile": "VC1_MAIN",
                    "CodecId": 70,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 1,
                    "DecSliceMode": 1
                },
                {
                    "CodecName": "WMV3",
                    "CodecProfile": "VC1_COMPLEX",
                    "CodecId": 71,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 1,
                    "DecSliceMode": 1
                },
                {
                    "CodecName": "WMV3",
                    "CodecProfile": "VC1_ADVANCED",
                    "CodecId": 71,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 1,
                    "DecSliceMode": 1
                },
                {
                    "CodecName": "VC1",
                    "CodecProfile": "VC1_COMPLEX",
                    "CodecId": 70,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 1,
                    "DecSliceMode": 1
                },
                {
                    "CodecName": "VC1",
                    "CodecProfile": "VC1_ADVANCED",
                    "CodecId": 70,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 1,
                    "DecSliceMode": 1
                },
                {
                    "CodecName": "MJPEG",
                    "CodecProfile": "MJPEG_HUFFMAN_BASELINE_DCT",
                    "CodecId": 7,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "GRAY8 YUV411P YUV422P YUV440P YUV444P ",
                    "RTFormat": 31,
                    "DecSliceMode": 1
                },
                {
                    "Number": 12,
                    "Message": "Failed to query entrypoints for profile UNKNOWN: the requested VAProfile is not supported"
                },
                {
                    "CodecName": "VP9",
                    "CodecProfile": "VP9_0",
                    "CodecId": 167,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 1,
                    "DecSliceMode": 1
                }
            ],
            "Encoders": [
                {
                    "CodecName": "MPEG2VIDEO",
                    "CodecProfile": "MPEG2_SIMPLE",
                    "CodecId": 2,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "MinWidth": 32,
                    "MinHeight": 32,
                    "ColorFormats": "NV12 YUV420P YUV420P ",
                    "RTFormat": 1,
                    "RateControl": 16,
                    "EncPackedHeaders": 11,
                    "EncMaxRefFrames": 65537,
                    "EncQualityRange": 1,
                    "EncROI": 0
                },
                {
                    "CodecName": "MPEG2VIDEO",
                    "CodecProfile": "MPEG2_MAIN",
                    "CodecId": 2,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "MinWidth": 32,
                    "MinHeight": 32,
                    "ColorFormats": "NV12 YUV420P YUV420P ",
                    "RTFormat": 1,
                    "RateControl": 16,
                    "EncPackedHeaders": 11,
                    "EncMaxRefFrames": 65537,
                    "EncQualityRange": 1,
                    "EncROI": 0
                },
                {
                    "CodecName": "H264",
                    "CodecProfile": "H264_CONSTRAINED_BASELINE",
                    "CodecId": 27,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "MinWidth": 32,
                    "MinHeight": 32,
                    "ColorFormats": "NV12 YUV420P YUV420P ",
                    "RTFormat": 1,
                    "RateControl": 22,
                    "EncPackedHeaders": 31,
                    "EncMaxRefFrames": 65537,
                    "EncMaxSlices": 32,
                    "EncSliceStructure": 2,
                    "EncQualityRange": 2,
                    "EncROI": 2147484168,
                    "EncRateControlExt": 2147483907
                },
                {
                    "CodecName": "H264",
                    "CodecProfile": "H264_MAIN",
                    "CodecId": 27,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "MinWidth": 32,
                    "MinHeight": 32,
                    "ColorFormats": "NV12 YUV420P YUV420P ",
                    "RTFormat": 1,
                    "RateControl": 22,
                    "EncPackedHeaders": 31,
                    "EncMaxRefFrames": 65537,
                    "EncMaxSlices": 32,
                    "EncSliceStructure": 2,
                    "EncQualityRange": 2,
                    "EncROI": 2147484168,
                    "EncRateControlExt": 2147483907
                },
                {
                    "CodecName": "H264",
                    "CodecProfile": "H264_HIGH",
                    "CodecId": 27,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "MinWidth": 32,
                    "MinHeight": 32,
                    "ColorFormats": "NV12 YUV420P YUV420P ",
                    "RTFormat": 1,
                    "RateControl": 22,
                    "EncPackedHeaders": 31,
                    "EncMaxRefFrames": 65537,
                    "EncMaxSlices": 32,
                    "EncSliceStructure": 2,
                    "EncQualityRange": 2,
                    "EncROI": 2147484168,
                    "EncRateControlExt": 2147483907
                },
                {
                    "Number": 12,
                    "Message": "Failed to query entrypoints for profile UNKNOWN: the requested VAProfile is not supported"
                }
            ],
            "Filters": [
                {
                    "FilterId": 1,
                    "FilterName": "Noise reduction filter",
                    "Properties": [
                        {
                            "ParamIndex": 0,
                            "MinValue": "0.000",
                            "MaxValue": "1.000",
                            "DefaultValue": "0.500",
                            "Step": "0.031"
                        }
                    ],
                    "IsSupported": 1
                },
                {
                    "FilterId": 2,
                    "FilterName": "Deinterlacing filter",
                    "Properties": [
                        {
                            "DeinterlacingType": 1
                        },
                        {
                            "DeinterlacingType": 3
                        },
                        {
                            "DeinterlacingType": 4
                        }
                    ],
                    "IsSupported": 1
                },
                {
                    "FilterId": 3,
                    "FilterName": "Sharpening filter",
                    "Properties": [
                        {
                            "ParamIndex": 0,
                            "MinValue": "0.000",
                            "MaxValue": "1.000",
                            "DefaultValue": "0.500",
                            "Step": "0.031"
                        }
                    ],
                    "IsSupported": 1
                },
                {
                    "FilterId": 4,
                    "FilterName": "Color balance parameters",
                    "Properties": [
                        {
                            "ColorBalanceType": 1,
                            "MinValue": "-180.000",
                            "MaxValue": "180.000",
                            "DefaultValue": "0.000",
                            "Step": "1.000"
                        },
                        {
                            "ColorBalanceType": 2,
                            "MinValue": "0.000",
                            "MaxValue": "10.000",
                            "DefaultValue": "1.000",
                            "Step": "0.100"
                        },
                        {
                            "ColorBalanceType": 3,
                            "MinValue": "-100.000",
                            "MaxValue": "100.000",
                            "DefaultValue": "0.000",
                            "Step": "1.000"
                        },
                        {
                            "ColorBalanceType": 4,
                            "MinValue": "0.000",
                            "MaxValue": "10.000",
                            "DefaultValue": "1.000",
                            "Step": "0.100"
                        }
                    ],
                    "IsSupported": 1
                },
                {
                    "FilterId": 5,
                    "FilterName": "Skin Tone Enhancement",
                    "IsSupported": 0
                }
            ]
        }
    ],
    "Log": [
        {
            "Level": 48,
            "Category": 0,
            "Message": "Begin GetVaAdapterInfo"
        },
        {
            "Level": 40,
            "Category": 0,
            "Message": "Found 1 device entries"
        },
        {
            "Level": 56,
            "Category": 0,
            "Message": "Check device at index 0: /sys/bus/pci/devices/pci0000_00/class"
        },
        {
            "Level": 56,
            "Category": 0,
            "Message": "Adding adapter '/sys/bus/pci/devices/pci0000_00' - VendorId: 4660 DeviceId: 4369 - Subsystem: V: 6900, D: 4352"
        },
        {
            "Level": 56,
            "Category": 0,
            "Message": "GetDeviceName - Start"
        },
        {
            "Level": 56,
            "Category": 0,
            "Message": "find_record: no record found"
        },
        {
            "Level": 56,
            "Category": 0,
            "Message": "       adapter '/sys/bus/pci/devices/pci0000_00' - VendorName: (null)"
        },
        {
            "Level": 56,
            "Category": 0,
            "Message": "GetDeviceName - Start"
        },
        {
            "Level": 56,
            "Category": 0,
            "Message": "find_record: no record found"
        },
        {
            "Level": 56,
            "Category": 0,
            "Message": "       adapter '/sys/bus/pci/devices/pci0000_00' - DeviceName: (null)"
        },
        {
            "Level": 56,
            "Category": 0,
            "Message": "GetDeviceName - Start"
        },
        {
            "Level": 56,
            "Category": 0,
            "Message": "find_record: found: Red Hat, Inc."
        },
        {
            "Level": 56,
            "Category": 0,
            "Message": "       adapter '/sys/bus/pci/devices/pci0000_00' - Subsystem VendorName: Red Hat, Inc."
        },
        {
            "Level": 56,
            "Category": 0,
            "Message": "GetDeviceName - Start"
        },
        {
            "Level": 56,
            "Category": 0,
            "Message": "find_record: no record found"
        },
        {
            "Level": 56,
            "Category": 0,
            "Message": "find_record: no record found"
        },
        {
            "Level": 56,
            "Category": 0,
            "Message": "       adapter '/sys/bus/pci/devices/pci0000_00' - Subsystem DeviceName: (null)"
        },
        {
            "Level": 48,
            "Category": 0,
            "Message": "Begin get_nodes"
        },
        {
            "Level": 48,
            "Category": 0,
            "Message": "Found 2 drm entries"
        },
        {
            "Level": 56,
            "Category": 0,
            "Message": "Found drm node '/dev/dri/card0'"
        },
        {
            "Level": 56,
            "Category": 0,
            "Message": "Found drm node '/dev/dri/render0'"
        },
        {
            "Level": 48,
            "Category": 0,
            "Message": "End GetVaAdapterInfo"
        },
        {
            "Level": 40,
            "Category": 0,
            "Message": "/dev/dri/render0: VA-API version: 1.13 (libva 1.12.0)"
        },
        {
            "Level": 40,
            "Category": 0,
            "Message": "/dev/dri/render0: Driver version: Intel i965 driver for Intel(R) Haswell Desktop - 2.4.1"
        }
    ]
}

 

root@emby:/usr/local/lib/emby-server/bin # su -m emby -c "./ffdetect -hide_banner -show_program_version -loglevel 99 -show_error -show_log 99 vaencdec -print_format json"
root@emby:/usr/local/lib/emby-server/bin # kldstat
Id Refs Address                Size Name
 1   90 0xffffffff80200000  25b08c8 kernel
 2    1 0xffffffff827b1000   2253c0 if_qlxgbe.ko
 3    1 0xffffffff829d7000   65ab48 openzfs.ko
 4    1 0xffffffff83033000    332c8 if_bnxt.ko
 5    1 0xffffffff83067000    19e88 if_atlantic.ko
 6    1 0xffffffff83081000    11c70 ipmi.ko
 7    2 0xffffffff83093000     2ef0 smbus.ko
 8    1 0xffffffff83096000   100fb0 ispfw.ko
 9    1 0xffffffff83611000   537420 vmm.ko
10    1 0xffffffff83b49000      afc nmdm.ko
11    1 0xffffffff83b4a000      2ea dtraceall.ko
12    9 0xffffffff83b4b000     75a8 opensolaris.ko
13    9 0xffffffff83b53000    3be70 dtrace.ko
14    1 0xffffffff83b8f000      5f8 dtmalloc.ko
15    1 0xffffffff83b90000     18c0 dtnfscl.ko
16    1 0xffffffff83b92000     1fa1 fbt.ko
17    1 0xffffffff83b94000    547c0 fasttrap.ko
18    1 0xffffffff83be9000      b98 sdt.ko
19    1 0xffffffff83bea000     70f4 systrace.ko
20    1 0xffffffff83bf2000     707c systrace_freebsd32.ko
21    1 0xffffffff83bfa000      f8c profile.ko
22    1 0xffffffff83bfb000     4718 geom_multipath.ko
23    1 0xffffffff83c00000   12bf6c i915kms.ko
24    1 0xffffffff83d2c000    75e10 drm.ko
25    3 0xffffffff83da2000    13f30 linuxkpi_gplv2.ko
26    2 0xffffffff83db6000      6d0 debugfs.ko
27    1 0xffffffff83db7000      acf mac_ntpd.ko
root@emby:/usr/local/lib/emby-server/bin # vainfo
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.13.0
libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_13
libva error: /usr/local/lib/dri/iHD_drv_video.so init failed
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_12
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.13 (libva 2.13.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Desktop - 2.4.1
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
      VAProfileVP9Profile0            : VAEntrypointVLD
root@emby:/usr/local/lib/emby-server/bin # ls -l /dev/dri
total 0
lrwxr-xr-x  1 root  wheel   8 Dec 21 18:04 card0 -> ../drm/0
lrwxr-xr-x  1 root  wheel   5 Dec 21 18:04 render0 -> card0
lrwxr-xr-x  1 root  wheel  10 Dec 21 18:04 renderD128 -> ../drm/128

Any suggestions?

Posted

Could you post the hw detection log created by Emby server?

bbartlomiej
Posted (edited)

Yes, see attached. It seams to begin with the same information as the output of my ffdetect command in previous post. It's a clean log taken just now after cleaning logs and restarting emby-server.

This is stable package in a jail under TrueNAS. All the workarounds from this thread applied: devfs passthrough, symling from render0 to card0, modules loaded and visible inside jail (as is /dev/dri/* stuff).

image.png.1815d567d0f1655af56525f8bde59eaa.png

hardware_detection-63776452224.txt

Edited by bbartlomiej
Posted

Thanks.

The detection looks OK. We need to find out why the detected hwaccels aren't used.

Could you please also post the server log?
Please follow these instructions:

  • Stop the server
  • locate the program data folder
  • there's a sub-folder cache
  • in the cache folder, delete the ffmpeg folder
  • Start the server
  • Wait 30s
  • Post the server log

Thanks

Posted

@bbartlomiej - thanks for the logs.

I was able to identify the cause of the error. It will be fixed in the next beta!

Thanks again,
sw

bbartlomiej
Posted

@softworkz wow thatnks! Just FYI, with current beta 4.7.0.18 the transcoding doesn't work at all for me - even software. Simply the video doesn't start at all. I tried that last week with LG TV emby client (without premiere back then). That was the main reason I rolled back to stable.

Posted

AFAIK, there's a known problem on FreeBSD which is also why there's no .19 yet.

@Luke right?

bbartlomiej
Posted
On 31/12/2021 at 22:26, softworkz said:

Beta .19 is available for FreeBSD 13 now: https://emby.media/freebsd-server.html
(this beta doesn't include the mentioned fix, though)

Cool, is the fix planned for .20 then?

Posted
7 hours ago, bbartlomiej said:

Cool, is the fix planned for .20 then?

Yup, it's already committed for .20!

Posted

already waiting for the fix, im ussing truenas 12 but no hardware transcoding, my hardware is detected but not shown.

Posted

I gave up on porting Emby to TrueNAS Core v12 due to all the limitations a while ago. I will revisit when all these 'issues' are resolved and Hardware Acceleration is working OOB. It would be a great advantage since it would require one less computer.

Posted

For those who run the beta builds, how does 4.7.0.20 compare?

bbartlomiej
Posted
1 hour ago, Luke said:

For those who run the beta builds, how does 4.7.0.20 compare?

As you promised indeed it's fixed. I can see the devices and I managed to do hw transcoding on one f my movies. I will do more testing as it seems it fails after few tries. Stay tuned.

  • Thanks 1
Posted
Just now, bbartlomiej said:

As you promised indeed it's fixed. I can see the devices and I managed to do hw transcoding on one f my movies. I will do more testing as it seems it fails after few tries. Stay tuned.

Thanks for the feedback !

Posted

@ all - please let us know whether it's working for you now!

Thanks.

  • 2 months later...
Posted

tried to install emby 4.7.0.32 from port. it seems still not able to transcode media by default.

the sys.xz is still need? I've not tried yet.

Posted
On 3/26/2022 at 9:26 AM, emnooo said:

The sys.xz is still need? I've not tried yet.

Hi, what exactly do you mean?

bbartlomiej
Posted

As far as I know, you still need to unpac the sys.xz archive you can find in this thread to fool ffdetect to find your GPU.

On another note: Is anybody successfully using Nvidia GPUs with Emby and FreeBSD to hardware transcode? And on top of that - would the steps be similar to run it in a jail?

Just bought a Quadro P400 to help with transcoding.

  • Agree 1
Posted
On 4/2/2022 at 4:11 PM, bbartlomiej said:

As far as I know, you still need to unpac the sys.xz archive you can find in this thread to fool ffdetect to find your GPU.

OK that is most likely still the same.

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...