New Beelink U59 not transcoding

I submitted my logs for an issue I'm running into. This is a brand new ubuntu install. I ran the command line install and added my user to the /dev/dri group. Hardware is shown to me for transcoding but for some reason it will not play on any device that is attempting to transcode

3743d359-e38c-401d-be2d-ff8f690ec003

Seems like the CPU model or driver are limited in some way.

Intel(R) Celeron(R) N5095 @ 2.00GHz

Driver does not support any RC mode compatible with selected options (supported modes: CQP).

Ah, this is part of the Jasper Lake series.

You can enable the required options on the driver with Ubuntu 21.10 as follows:

echo "options i915 enable_guc=2" > /etc/modprobe.d/i915.conf
update-initramfs -u

Thanks Aman! I’ll give this a shot

No bueno.

I've now lost Hardware transcoding as an option. Its Software only. Tried installing latest pre-release and still nothing.

72629e57-1e19-488a-8865-3a63d0d05b72

Run a HWE test then resubmit.

2022/06/22 07:47:19.394019 [HWE] Trying nvenc: /home/mediau59/channels-dvr/2022.06.20.0235/ffmpeg-dl /home/mediau59/channels-dvr/2022.06.20.0235/ffmpeg-dl -hide_banner -nostats -loglevel warning -loglevel verbose -f lavfi -t 0.1 -i color=black:640x480 -f null -c:v h264_nvenc -profile:v high -level 42 -b:v 400k -maxrate:v 600k -y /dev/null
[Parsed_color_0 @ 0x3659380] size:640x480 rate:25/1 duration:-1.000000 sar:1/1
Input #0, lavfi, from 'color=black:640x480':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo, 1 reference frame (I420 / 0x30323449), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_nvenc))
Press [q] to stop, [?] for help
[graph 0 input from stream 0:0 @ 0x36a4100] w:640 h:480 pixfmt:yuv420p tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2
[h264_nvenc @ 0x3686340] Cannot load libcuda.so.1
[h264_nvenc @ 0x3686340] Nvenc unloaded
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!
2022/06/22 07:47:19.420560 [HWE] Failure: exit status 1
2022/06/22 07:47:19.420628 [HWE] Trying amf: /home/mediau59/channels-dvr/2022.06.20.0235/ffmpeg-dl /home/mediau59/channels-dvr/2022.06.20.0235/ffmpeg-dl -hide_banner -nostats -loglevel warning -loglevel verbose -f lavfi -t 0.1 -i color=black:640x480 -f null -c:v h264_amf -profile:v high -level 42 -b:v 400k -maxrate:v 600k -y /dev/null
[Parsed_color_0 @ 0x26ef380] size:640x480 rate:25/1 duration:-1.000000 sar:1/1
Input #0, lavfi, from 'color=black:640x480':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo, 1 reference frame (I420 / 0x30323449), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
Unknown encoder 'h264_amf'
2022/06/22 07:47:19.436330 [HWE] Failure: exit status 1
2022/06/22 07:47:19.436448 [HWE] Cannot access /dev/dri/renderD129: no such file or directory
2022/06/22 07:47:19.436927 [HWE] Trying vaapi@/dev/dri/renderD128: /home/mediau59/channels-dvr/2022.06.20.0235/ffmpeg /home/mediau59/channels-dvr/2022.06.20.0235/ffmpeg -hide_banner -nostats -loglevel warning -loglevel verbose -init_hw_device vaapi=intel:/dev/dri/renderD128 -f lavfi -t 0.1 -i color=black:640x480 -f null -y /dev/null
[AVHWDeviceContext @ 0x76ce3c0] libva: VA-API version 1.13.0
[AVHWDeviceContext @ 0x76ce3c0] libva: driver init failed
[AVHWDeviceContext @ 0x76ce3c0] libva: va_openDriver() returns 1
[AVHWDeviceContext @ 0x76ce3c0] libva: driver init failed
[AVHWDeviceContext @ 0x76ce3c0] libva: va_openDriver() returns 1
[AVHWDeviceContext @ 0x76ce3c0] Failed to initialise VAAPI connection: 1 (operation failed).
2022/06/22 07:47:19.585161 [HWE] Failure: signal: segmentation fault (core dumped)
2022/06/22 07:47:19.585211 [HWE] Cannot access /dev/renderD128: no such file or directory
2022/06/22 07:47:19.585241 [HWE] Trying vaapi@/dev/dri/card0: /home/mediau59/channels-dvr/2022.06.20.0235/ffmpeg /home/mediau59/channels-dvr/2022.06.20.0235/ffmpeg -hide_banner -nostats -loglevel warning -loglevel verbose -init_hw_device vaapi=intel:/dev/dri/card0 -f lavfi -t 0.1 -i color=black:640x480 -f null -y /dev/null
[AVHWDeviceContext @ 0x7be33c0] libva: VA-API version 1.13.0
[AVHWDeviceContext @ 0x7be33c0] libva: driver init failed
[AVHWDeviceContext @ 0x7be33c0] libva: va_openDriver() returns 1
[AVHWDeviceContext @ 0x7be33c0] Failed to initialise VAAPI connection: 1 (operation failed).
2022/06/22 07:47:19.709280 [HWE] Failure: signal: segmentation fault (core dumped)

I’ve read a little bit where I need to try different intel driver versions. Not sure if that’s what I need to try or not.

What's lsmod say?

Does dmesg show the Intel driver being loaded without errors?

Module Size Used by
tls 106496 0
rfcomm 81920 4
rpcsec_gss_krb5 36864 0
auth_rpcgss 139264 1 rpcsec_gss_krb5
nfsv4 831488 2
nfs 389120 4 nfsv4
lockd 110592 1 nfs
grace 16384 1 lockd
fscache 385024 1 nfs
netfs 45056 1 fscache
cmac 16384 3
algif_hash 16384 1
algif_skcipher 16384 1
af_alg 32768 6 algif_hash,algif_skcipher
snd_hda_codec_hdmi 73728 1
bnep 28672 2
sunrpc 573440 13 nfsv4,auth_rpcgss,lockd,rpcsec_gss_krb5,nfs
nls_iso8859_1 16384 1
snd_sof_pci_intel_icl 16384 0
snd_sof_intel_hda_common 98304 1 snd_sof_pci_intel_icl
soundwire_intel 40960 1 snd_sof_intel_hda_common
soundwire_generic_allocation 16384 1 soundwire_intel
x86_pkg_temp_thermal 20480 0
soundwire_cadence 36864 1 soundwire_intel
snd_sof_intel_hda 20480 1 snd_sof_intel_hda_common
intel_powerclamp 20480 0
snd_sof_pci 20480 2 snd_sof_pci_intel_icl,snd_sof_intel_hda_common
snd_sof_xtensa_dsp 16384 1 snd_sof_intel_hda_common
snd_sof 143360 2 snd_sof_pci,snd_sof_intel_hda_common
coretemp 24576 0
snd_soc_hdac_hda 24576 1 snd_sof_intel_hda_common
mei_hdcp 24576 0
kvm_intel 364544 0
snd_hda_ext_core 32768 3 snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd_usb_audio 344064 2
snd_soc_acpi_intel_match 61440 2 snd_sof_pci_intel_icl,snd_sof_intel_hda_common
snd_soc_acpi 16384 2 snd_soc_acpi_intel_match,snd_sof_intel_hda_common
soundwire_bus 94208 3 soundwire_intel,soundwire_generic_allocation,soundwire_cadence
ledtrig_audio 16384 1 snd_sof
intel_rapl_msr 20480 0
kvm 1003520 1 kvm_intel
iwlmvm 561152 0
snd_soc_core 331776 4 soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hda
snd_usbmidi_lib 45056 1 snd_usb_audio
snd_compress 24576 1 snd_soc_core
ac97_bus 16384 1 snd_soc_core
mac80211 1228800 1 iwlmvm
mc 65536 1 snd_usb_audio
crct10dif_pclmul 16384 1
snd_pcm_dmaengine 16384 1 snd_soc_core
snd_seq_midi 20480 0
ghash_clmulni_intel 16384 0
aesni_intel 376832 4
libarc4 16384 1 mac80211
snd_seq_midi_event 16384 1 snd_seq_midi
crypto_simd 16384 1 aesni_intel
cryptd 24576 3 crypto_simd,ghash_clmulni_intel
iwlwifi 446464 1 iwlmvm
snd_hda_intel 53248 1
snd_rawmidi 49152 2 snd_seq_midi,snd_usbmidi_lib
intel_cstate 20480 0
i915 3043328 8
snd_intel_dspcfg 28672 2 snd_hda_intel,snd_sof_intel_hda_common
snd_intel_sdw_acpi 20480 2 snd_sof_intel_hda_common,snd_intel_dspcfg
snd_hda_codec 155648 3 snd_hda_codec_hdmi,snd_hda_intel,snd_soc_hdac_hda
snd_hda_core 110592 7 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
wmi_bmof 16384 0
snd_hwdep 16384 2 snd_usb_audio,snd_hda_codec
efi_pstore 16384 0
snd_pcm 139264 11 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_compress,snd_soc_core,snd_hda_core,snd_pcm_dmaengine
ee1004 20480 0
snd_seq 73728 2 snd_seq_midi,snd_seq_midi_event
btusb 61440 0
cfg80211 958464 3 iwlmvm,iwlwifi,mac80211
snd_seq_device 16384 3 snd_seq,snd_seq_midi,snd_rawmidi
8250_dw 16384 0
ttm 86016 1 i915
mei_me 40960 1
snd_timer 40960 2 snd_seq,snd_pcm
btrtl 24576 1 btusb
input_leds 16384 0
mei 135168 3 mei_hdcp,mei_me
btbcm 24576 1 btusb
drm_kms_helper 307200 1 i915
btintel 40960 1 btusb
bluetooth 688128 33 btrtl,btintel,btbcm,bnep,btusb,rfcomm
snd 102400 19 snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_timer,snd_compress,snd_soc_core,snd_pcm,snd_rawmidi
processor_thermal_device_pci_legacy 16384 0
ecdh_generic 16384 2 bluetooth
cec 61440 2 drm_kms_helper,i915
processor_thermal_device 20480 1 processor_thermal_device_pci_legacy
ecc 36864 1 ecdh_generic
rc_core 65536 1 cec
soundcore 16384 1 snd
processor_thermal_rfim 24576 1 processor_thermal_device
i2c_algo_bit 16384 1 i915
processor_thermal_mbox 16384 2 processor_thermal_rfim,processor_thermal_device
processor_thermal_rapl 20480 1 processor_thermal_device
fb_sys_fops 16384 1 drm_kms_helper
syscopyarea 16384 1 drm_kms_helper
intel_rapl_common 36864 2 intel_rapl_msr,processor_thermal_rapl
sysfillrect 20480 1 drm_kms_helper
int340x_thermal_zone 20480 1 processor_thermal_device
intel_soc_dts_iosf 20480 1 processor_thermal_device_pci_legacy
sysimgblt 16384 1 drm_kms_helper
mac_hid 16384 0
acpi_pad 184320 0
acpi_tad 20480 0
sch_fq_codel 20480 2
ipmi_devintf 20480 0
ipmi_msghandler 122880 1 ipmi_devintf
msr 16384 0
parport_pc 49152 0
ppdev 24576 0
lp 28672 0
parport 65536 3 parport_pc,lp,ppdev
drm 606208 9 drm_kms_helper,i915,ttm
ip_tables 32768 0
x_tables 53248 1 ip_tables
autofs4 49152 2
hid_lg_g15 20480 0
hid_generic 16384 0
usbhid 65536 0
hid 147456 3 usbhid,hid_generic,hid_lg_g15
spi_pxa2xx_platform 32768 0
dw_dmac 16384 0
dw_dmac_core 36864 1 dw_dmac
i2c_i801 36864 0
i2c_smbus 20480 1 i2c_i801
r8169 98304 0
ahci 45056 2
crc32_pclmul 16384 0
realtek 32768 1
libahci 45056 1 ahci
intel_lpss_pci 24576 2
intel_lpss 16384 1 intel_lpss_pci
xhci_pci 24576 0
idma64 20480 0
xhci_pci_renesas 20480 1 xhci_pci
wmi 32768 1 wmi_bmof
video 53248 1 i915
pinctrl_jasperlake 24576 0

root@Beelink-Media:/inteldriver# dmesg | grep intel
[ 0.418748] intel_pstate: Intel P-state driver initializing
[ 0.418932] intel_pstate: HWP enabled
[ 0.433006] intel_pmc_core INT33A1:00: initialized
[ 1.010434] intel-lpss 0000:00:15.0: enabling device (0004 -> 0006)
[ 1.034642] intel-lpss 0000:00:15.1: enabling device (0004 -> 0006)
[ 1.066531] intel-lpss 0000:00:15.2: enabling device (0004 -> 0006)
[ 1.094517] intel-lpss 0000:00:15.3: enabling device (0004 -> 0006)
[ 1.126498] intel-lpss 0000:00:19.0: enabling device (0004 -> 0006)
[ 1.166508] intel-lpss 0000:00:19.1: enabling device (0004 -> 0006)
[ 1.206549] intel-lpss 0000:00:1e.0: enabling device (0000 -> 0002)
[ 1.226595] intel-lpss 0000:00:1e.3: enabling device (0004 -> 0006)
[ 4.071161] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[ 4.350768] intel_rapl_common: Found RAPL domain package
[ 4.350771] intel_rapl_common: Found RAPL domain core
[ 4.350772] intel_rapl_common: Found RAPL domain uncore
[ 4.464362] i915 0000:00:02.0: [drm:add_taint_for_CI [i915]] CI tainted:0x9 by intel_gt_set_wedged_on_init+0x33/0x40 [i915]
[ 4.790932] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])

I just upgraded my kernel to 5.16 and that brought back the hardware transcoding option. I'm going to test this to see how many transcodes I can get before it breaks :slight_smile:

This is with 3 transcodes going from Live TV channels down to 4MB. Does this look right?

1 Like

I will say that loading of TVE channels is almost instant on the Beelink. When running on my Synology it can take up to 5-7 seconds to load.