You are not logged in.

#1 2024-07-15 01:33:00

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,398

4K regression on TigerLake

I have a TigerLake series i5 Intel processor and video on both the panel display as well as the external HDMI.  Sometimes the video playback hangs on 1080p even.  I'm using the realtime kernel if that matters (needed for TV tuner/Kaffeine).  Sometimes during playback using mplayer,mpv, or even the mighty vlc, it chokes to death in the middle of the video and sometimes unbottlenecks and plays catch back up where it should be.  I even tried to use a docking station capable of 5K, but it chokes on that too.  Have to install displaylink package to get it the displays on it to work.  Arandr recognizes the displays, but won't let me use them without installing the displaylink package, but even then, the video playback is not what it should be.  Maybe the lappy is lacking hardware h265 support?  Intel spec sheet says something about vp9 and some others but I don't seem to see h265.

Architecture:                       x86_64
CPU op-mode(s):                     32-bit, 64-bit
Address sizes:                      39 bits physical, 48 bits virtual
Byte Order:                         Little Endian
CPU(s):                             8
On-line CPU(s) list:                0-7
Vendor ID:                          GenuineIntel
BIOS Vendor ID:                     Intel(R) Corporation
Model name:                         11th Gen Intel(R) Core(TM) i5-1145G7 @ 2.60GHz
BIOS Model name:                    11th Gen Intel(R) Core(TM) i5-1145G7 @ 2.60GHz   CPU @ 1.5GHz
BIOS CPU family:                    205
CPU family:                         6
Model:                              140
Thread(s) per core:                 2
Core(s) per socket:                 4
Socket(s):                          1
Stepping:                           1
CPU(s) scaling MHz:                 9%
CPU max MHz:                        4400.0000
CPU min MHz:                        400.0000
BogoMIPS:                           2995.20
Flags:                              fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l2 cdp_l2 ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves split_lock_detect user_shstk dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req vnmi avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg tme avx512_vpopcntdq rdpid movdiri movdir64b fsrm avx512_vp2intersect md_clear ibt flush_l1d arch_capabilities
Virtualization:                     VT-x
L1d cache:                          192 KiB (4 instances)
L1i cache:                          128 KiB (4 instances)
L2 cache:                           5 MiB (4 instances)
L3 cache:                           8 MiB (1 instance)
NUMA node(s):                       1
NUMA node0 CPU(s):                  0-7
Vulnerability Gather data sampling: Mitigation; Microcode
Vulnerability Itlb multihit:        Not affected
Vulnerability L1tf:                 Not affected
Vulnerability Mds:                  Not affected
Vulnerability Meltdown:             Not affected
Vulnerability Mmio stale data:      Not affected
Vulnerability Retbleed:             Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass:    Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:           Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:           Mitigation; Enhanced / Automatic IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS SW sequence
Vulnerability Srbds:                Not affected
Vulnerability Tsx async abort:      Not affected
name of display: :1
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel (0x8086)
    Device: Mesa Intel(R) Xe Graphics (TGL GT2) (0x9a49)
    Version: 24.1.3
    Accelerated: yes
    Video memory: 7862MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) Xe Graphics (TGL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 24.1.3-arch1.1
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.1.3-arch1.1
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 24.1.3-arch1.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Intel ARK:

https://ark.intel.com/content/www/us/en … h-ipu.html

Not using xf86-video-intel.  Is using iris mesa driver and va_gl. 
Looking at videos both 1080 and 4k version of videos report h264 in mpv.  1080p plays sometimes and othertimes lags.

Last edited by nomorewindows (2024-07-15 03:13:09)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#2 2024-07-15 04:04:08

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,398

Re: 4K regression on TigerLake

Using hwdec=auto and vo=gpu at least works for mpv.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#3 2024-07-15 07:08:12

seth
Member
Registered: 2012-09-03
Posts: 57,450

Re: 4K regression on TigerLake

name of display: :1
display: :0  screen: 0
loginctl session-status

For a basic oversight

vainfo
mpv /path/to/4kporn.mp4

https://wiki.archlinux.org/title/Hardwa … tion#Intel

The subject says "regression" - regressed by what? kernel switch, general update, your notebook fell into a pond…?

Offline

#4 2024-07-15 15:08:26

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,398

Re: 4K regression on TigerLake

seth wrote:
name of display: :1
display: :0  screen: 0
loginctl session-status

For a basic oversight

vainfo
mpv /path/to/4kporn.mp4

https://wiki.archlinux.org/title/Hardwa … tion#Intel

The subject says "regression" - regressed by what? kernel switch, general update, your notebook fell into a pond…?

Here's your vainfo

Trying display: wayland
Trying display: x11
vainfo: VA-API version: 1.21 (libva 2.22.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 24.2.5 ()
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
      VAProfileHEVCMain               :	VAEntrypointEncSliceLP
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointEncSlice
      VAProfileHEVCMain10             :	VAEntrypointEncSliceLP
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile1            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileVP9Profile3            :	VAEntrypointVLD
      VAProfileHEVCMain12             :	VAEntrypointVLD
      VAProfileHEVCMain12             :	VAEntrypointEncSlice
      VAProfileHEVCMain422_10         :	VAEntrypointVLD
      VAProfileHEVCMain422_10         :	VAEntrypointEncSlice
      VAProfileHEVCMain422_12         :	VAEntrypointVLD
      VAProfileHEVCMain422_12         :	VAEntrypointEncSlice
      VAProfileHEVCMain444            :	VAEntrypointVLD
      VAProfileHEVCMain444            :	VAEntrypointEncSliceLP
      VAProfileHEVCMain444_10         :	VAEntrypointVLD
      VAProfileHEVCMain444_10         :	VAEntrypointEncSliceLP
      VAProfileHEVCMain444_12         :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointEncSliceLP
      VAProfileHEVCSccMain10          :	VAEntrypointVLD
      VAProfileHEVCSccMain10          :	VAEntrypointEncSliceLP
      VAProfileHEVCSccMain444         :	VAEntrypointVLD
      VAProfileHEVCSccMain444         :	VAEntrypointEncSliceLP
      VAProfileAV1Profile0            :	VAEntrypointVLD
      VAProfileHEVCSccMain444_10      :	VAEntrypointVLD
      VAProfileHEVCSccMain444_10      :	VAEntrypointEncSliceLP

Come to think of it these same videos are h264 played on raspberry pi and it chokes on the 4k one.  But can probably understand why it does it on rpi.  This thing has enough power it shouldn't choke on 4k.

Apparently these iris xe have had a rough history even with the windows drivers. 

The regression is it plays part of the video just fine while other parts of it it has intermittent difficulty.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#5 2024-07-15 15:18:47

seth
Member
Registered: 2012-09-03
Posts: 57,450

Re: 4K regression on TigerLake

The regression is it plays part of the video just fine while other parts of it it has intermittent difficulty.

That's not a "regression" - the vainfo looks unsuspicious.
1. what's the mpv output?
2. the videos are from a local source that actually can at the relevant bitrate?
3. check intel_gpu_top for pressure on the IGP and top for CPU/RAM pressure
4. also the session status, this looks like you're maybe running on wayland and it'd probably be a good idea to test a non-composited environment (openbox)

Offline

#6 2024-07-15 15:44:24

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,398

Re: 4K regression on TigerLake

seth wrote:

The regression is it plays part of the video just fine while other parts of it it has intermittent difficulty.

That's not a "regression" - the vainfo looks unsuspicious.
1. what's the mpv output?
2. the videos are from a local source that actually can at the relevant bitrate?
3. check intel_gpu_top for pressure on the IGP and top for CPU/RAM pressure
4. also the session status, this looks like you're maybe running on wayland and it'd probably be a good idea to test a non-composited environment (openbox)

Awesome uses xcb so I don't think it is using wayland.

mpv without options

 (+) Video --vid=1 (*) (h264 3840x2160 30.021fps)
 (+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz)
AO: [pulse] 48000Hz stereo 2ch float
VO: [gpu] 3840x2160 yuv420p
Exiting... (End of file)

And of course it has the audio/video desync message.

mpv with hwdec=auto and vo=gpu

 (+) Video --vid=1 (*) (h264 3840x2160 30.021fps)
 (+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz)
AO: [pulse] 48000Hz stereo 2ch float
Using hardware decoding (vaapi).
VO: [gpu] 3840x2160 vaapi[nv12]
Exiting... (End of file)

intel_gpu_top showing around 40% on Render/3D and about 8% on video with hwdec and vo options with mpv.  Without mpv options, it shows 0% on video the entire time and gets up to 100% on Render/3D.

Last edited by nomorewindows (2024-07-15 15:46:39)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#7 2024-07-15 16:02:49

seth
Member
Registered: 2012-09-03
Posts: 57,450

Re: 4K regression on TigerLake

mpv only uses hwdec w/ the parameter and that's also not the default, there's absolutely no surprise here: https://wiki.archlinux.org/title/Mpv#Ha … celeration
vo=gpu is default and doesn't change between the runs

This runs fine?
What are your VLC settings, do you use vaapi there?

Offline

#8 2024-07-15 16:27:48

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,398

Re: 4K regression on TigerLake

seth wrote:

mpv only uses hwdec w/ the parameter and that's also not the default, there's absolutely no surprise here: https://wiki.archlinux.org/title/Mpv#Ha … celeration
vo=gpu is default and doesn't change between the runs

This runs fine?
What are your VLC settings, do you use vaapi there?

I figure vlc is the standby. 

I haven't changed any vlc settings, but it was choking on vlc.  Now it doesn't seem to be.  Maybe adding one of the intel-media-driver or something fixed that.  intel_gpu_top shows Render/3D for vlc to be less than what mpv was using and video is a little more balanced.  Vlc says it is using Intel iHD driver.

Still makes me wonder why it was choking on the displaylink, may have to try that again.  Suspect it'll work now maybe.

Last edited by nomorewindows (2024-07-15 16:42:17)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#9 2024-07-15 17:50:54

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,398

Re: 4K regression on TigerLake

There's also a line on mpv that says
Using hardware decoding (vaapi) when hwdev and vo are used, but didn't pick up in redirection.  Guess I need to use tee.

And then there's an error message about pw.loop.  I'm not sure what that is.  [loop.c:69 pw_loop_new() 0x] Can't make support.system handle: No such file or directory.

Last edited by nomorewindows (2024-07-15 17:54:07)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

Board footer

Powered by FluxBB