Problems with movie playback  [Solved]

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
django013
Posts: 185
Joined: Sat Feb 11, 2023 3:25 am

Problems with movie playback

#1 Post by django013 »

Hi,

I chose my media center to have enough performance to play all kinds of media.
Recently, I have been experiencing more and more often that after an update movie playback runs with sound dropouts and frozen images.

QSI of my mediacenter:

Code: Select all

System:
  Host: mediaCenter Kernel: 6.11.3-1-liquorix-amd64 arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: audit=0 intel_pstate=disable BOOT_IMAGE=/boot/vmlinuz-6.11.3-1-liquorix-amd64
    root=UUID=003acac1-d084-4483-ac36-6b4058472ade ro quiet splash
  Console: pty pts/5 DM: SDDM Distro: MX-23.4_KDE_x64 Libretto October 15  2023 base: Debian
    GNU/Linux 12 (bookworm)
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME A320M-K v: Rev X.0x serial: 230418731606960
    UEFI: American Megatrends v: 6062 date: 02/24/2023
Memory:
  RAM: total: 15.53 GiB used: 1.25 GiB (8.0%)
  Array-1: capacity: 128 GiB note: check slots: 2 EC: None max-module-size: 64 GiB note: est.
  Device-1: DIMM_A1 type: DDR4 detail: synchronous unbuffered (unregistered) size: 8 GiB
    speed: 2133 MT/s volts: curr: 1.2 min: 1.2 max: 1.2 width (bits): data: 64 total: 64
    manufacturer: Corsair part-no: CMK16GX4M2B3200C16 serial: N/A
  Device-2: DIMM_B1 type: DDR4 detail: synchronous unbuffered (unregistered) size: 8 GiB
    speed: 2133 MT/s volts: curr: 1.2 min: 1.2 max: 1.2 width (bits): data: 64 total: 64
    manufacturer: Corsair part-no: CMK16GX4M2B3200C16 serial: N/A
CPU:
  Info: model: AMD Ryzen 5 3600 socket: AM4 bits: 64 type: MT MCP arch: Zen 2 gen: 3 level: v3
    note: check built: 2020-22 process: TSMC n7 (7nm) family: 0x17 (23) model-id: 0x71 (113)
    stepping: 0 microcode: 0x8701030
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache: L1: 384 KiB
    desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB L3: 32 MiB desc: 2x16 MiB
  Speed (MHz): avg: 1059 high: 3621 min/max: 550/4208 boost: enabled base/boost: 3600/4200
    scaling: driver: amd-pstate-epp governor: performance volts: 1.1 V ext-clock: 100 MHz cores:
    1: 550 2: 550 3: 550 4: 3621 5: 550 6: 3593 7: 550 8: 550 9: 550 10: 550 11: 550 12: 550
    bogomips: 86233
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1 bmi2 bpext cat_l3
    cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy constant_tsc cpb cpuid cqm cqm_llc
    cqm_mbm_local cqm_mbm_total cqm_occup_llc cr8_legacy cx16 cx8 de decodeassists extapic
    extd_apicid f16c flushbyasid fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb ibs irperf
    lahf_lm lbrv lm mba mca mce misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc
    nopl npt nrip_save nx osvw overflow_recov pae pat pausefilter pclmulqdq pdpe1gb perfctr_core
    perfctr_llc perfctr_nb pfthreshold pge pni popcnt pse pse36 rapl rdpid rdpru rdrand rdseed
    rdt_a rdtscp rep_good sep sev sev_es sha_ni skinit smap smca smep ssbd sse sse2 sse4_1 sse4_2
    sse4a ssse3 stibp succor svm_lock syscall tce topoext tsc tsc_scale umip v_spec_ctrl
    v_vmsave_vmload vgif vmcb_clean vme vmmcall wbnoinvd wdt x2apic xgetbv1 xsave xsavec
    xsaveerptr xsaveopt xtopology
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed mitigation: untrained return thunk; SMT enabled with STIBP protection
  Type: spec_rstack_overflow mitigation: Safe RET
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; STIBP: always-on; RSB filling;
    PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA GP107GL [Quadro P400] driver: nvidia v: 535.183.06 non-free: 530.xx+
    status: current (as of 2023-03) arch: Pascal code: GP10x process: TSMC 16nm built: 2016-21 pcie:
    gen: 1 speed: 2.5 GT/s lanes: 16 link-max: gen: 3 speed: 8 GT/s bus-ID: 08:00.0
    chip-ID: 10de:1cb3 class-ID: 0300
  Display: server: X.org v: 1.21.1.7 with: Xwayland v: 22.1.9 compositor: kwin_x11 driver: X:
    loaded: nvidia gpu: nvidia tty: 118x29
  API: OpenGL Message: GL data unavailable in console for root.
Audio:
  Device-1: NVIDIA GP107GL High Definition Audio driver: snd_hda_intel v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 16 link-max: gen: 3 speed: 8 GT/s bus-ID: 08:00.1 chip-ID: 10de:0fb9
    class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie:
    gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 0a:00.4 chip-ID: 1022:1487 class-ID: 0403
  API: ALSA v: k6.11.3-1-liquorix-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: n/a (root, process) with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASUSTeK PRIME B450M-A
    driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 06:00.0
    chip-ID: 10ec:8168 class-ID: 0200
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: 08:bf:b8:6e:18:db
Logical:
  Message: No logical block device data found.
Drives:
  Local Storage: total: 959.47 GiB used: 11.24 GiB (1.2%)
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Crucial model: CT1000P3SSD8 size: 931.51 GiB
    block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD
    serial: 2318E6D0A44E rev: P9CR30A temp: 35.9 C scheme: GPT
  SMART: yes health: PASSED on: 66d 23h cycles: 540 read-units: 1,577,787 [807 GB]
    written-units: 2,901,217 [1.48 TB]
  ID-2: /dev/sda maj-min: 8:0 vendor: Kingston model: SS200S330G size: 27.96 GiB block-size:
    physical: 512 B logical: 512 B sata: 3.0 speed: 6.0 Gb/s type: SSD serial: 50026B723504C6F5
    rev: 05.1 temp: 25 C scheme: GPT
  SMART: yes state: enabled health: PASSED on: 108d 8h cycles: 609 read: 5 GiB written: 51 GiB
Partition:
  ID-1: / raw-size: 186.26 GiB size: 186.26 GiB (100.00%) used: 11.23 GiB (6.0%) fs: btrfs
    block-size: 4096 B dev: /dev/nvme0n1p3 maj-min: 259:3
  ID-2: /boot/efi raw-size: 95 MiB size: 93.5 MiB (98.44%) used: 12 MiB (12.9%) fs: vfat
    block-size: 512 B dev: /dev/nvme0n1p5 maj-min: 259:5
Swap:
  Alert: No swap data was found.
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 9 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-3:2 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s power: 100mA
    chip-ID: 05e3:0608 class-ID: 0900
  Device-1: 1-3.2:3 info: Holtek type: Keyboard,HID driver: hid-generic,usbhid interfaces: 2
    rev: 2.0 speed: 1.5 Mb/s power: 100mA chip-ID: 04d9:a088 class-ID: 0300
  Hub-3: 2-0:1 info: Super-speed hub ports: 3 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-4: 3-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-5: 4-0:1 info: Super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 32.9 C mobo: N/A gpu: nvidia temp: 34 C
  Fan Speeds (RPM): N/A
Repos:
  Packages: pm: dpkg pkgs: 2675 libs: 1451 tools: apt,apt-get,aptitude,nala pm: rpm pkgs: 0
    pm: flatpak pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list
    1: deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://ftp.halifax.rwth-aachen.de/mxlinux/packages/mx/repo/ bookworm main non-free
  Active apt repos in: /etc/apt/sources.list.d/signal-xenial.list
    1: deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main
Info:
  Processes: 320 Uptime: 6m wakeups: 1 Init: SysVinit v: 3.06 runlevel: 5 default: graphical
  tool: systemctl Compilers: gcc: 12.2.0 alt: 12 Shell: Sudo (sudo) v: 1.9.13p3 default: Bash
  v: 5.2.15 running-in: pty pts/5 (SSH) inxi: 3.3.26
Where is my error in thinking?

Has the software become so slow that my hardware is no longer sufficient, or do I have other problems?
With the playback problems, it is completely irrelevant whether the videos are delivered from my NAS, youtube or a streaming service.
It also doesn't matter which software I use to play the movies (vlc or kodi).
In the meantime, it runs without any problems until the problems return with a new update.
Yesterday I was able to play all kinds of movies without any problems and today the problems are back after the update. I didn't see any package during the update that was relevant for media playback.

If I play the same movie on my desktop computer, it runs without a problem. Always!

I don't understand it!
MC: ASUS PRIME A320M-K, AMD Ryzen 5 3600, NVIDIA Quadro P400
WS: ASRock X670E Steel Legend, AMD Ryzen 5 7600X, NVIDIA GTX 1660 SUPER

User avatar
Stevo
Developer
Posts: 14586
Joined: Fri Dec 15, 2006 7:07 pm

Re: Problems with movie playback

#2 Post by Stevo »

If you tell vlc or kodi to play the video from the command line, can you see any differences between when it's working fine versus when it has hiccups?
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

django013
Posts: 185
Joined: Sat Feb 11, 2023 3:25 am

Re: Problems with movie playback

#3 Post by django013 »

Hi Stevo,

thank you very much for your attention.
vlc does not grumble when hiccuping, but using ffplay shows some differences.
output of ffplay looks like:

Code: Select all

      _STATISTICS_WRITING_APP: mkvmerge v74.0.0 ('You Oughta Know') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 116.00 A-V: -0.028 fd=  51 aq= 3567KB vq=11800KB sq=    0B f=0/0  
on hiccuping numbers after "A-V" changes quickly but don't change at all at normal playback
MC: ASUS PRIME A320M-K, AMD Ryzen 5 3600, NVIDIA Quadro P400
WS: ASRock X670E Steel Legend, AMD Ryzen 5 7600X, NVIDIA GTX 1660 SUPER

User avatar
timkb4cq
Developer
Posts: 3584
Joined: Wed Jul 12, 2006 4:05 pm

Re: Problems with movie playback

#4 Post by timkb4cq »

Just spitballing here, but have you tried a different compositor? Wayland still has issues iin bookworm.

Code: Select all

Display: server: X.org v: 1.21.1.7 with: Xwayland v: 22.1.9 compositor: kwin_x11 driver: X:
    loaded: nvidia gpu: nvidia tty: 118x29
HP Pavillion TP01, AMD Ryzen 3 5300G (quad core), Crucial 500GB SSD, Toshiba 6TB 7200rpm
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB

django013
Posts: 185
Joined: Sat Feb 11, 2023 3:25 am

Re: Problems with movie playback

#5 Post by django013 »

I changed it but issues stil the same
MC: ASUS PRIME A320M-K, AMD Ryzen 5 3600, NVIDIA Quadro P400
WS: ASRock X670E Steel Legend, AMD Ryzen 5 7600X, NVIDIA GTX 1660 SUPER

User avatar
Stevo
Developer
Posts: 14586
Joined: Fri Dec 15, 2006 7:07 pm

Re: Problems with movie playback

#6 Post by Stevo »

Do you get the same hiccups right after a reboot, or with various other available players, such as mpv, smplayer, or dragonplayer. Testing with a Debian style kernel could also be relevant. And is it with every type of video file? ( I recommend mediainfo to get quick reports of the video encoding of the file)

Your hardware should be fast enough for years to come, no problems there.
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

django013
Posts: 185
Joined: Sat Feb 11, 2023 3:25 am

Re: Problems with movie playback

#7 Post by django013 »

Stevo wrote: Sun Dec 29, 2024 12:44 am Your hardware should be fast enough for years to come ...
Thank you, I had assumed the same.

But I've been having problems with video playback for about one year now.
Once it helped to use a different kernel, but then the multimedia libraries were updated and since then a kernel change has not helped anymore.
I remember when I was playing with ffplay that ffplay would throw away images if the sound couldn't be converted in time.
But the cost of sound-conversion is ridiculous for the movies I watch.
I also have passthrough audio enabled on Kodi and still get dropouts.
Stevo wrote: Sun Dec 29, 2024 12:44 am Do you get the same hiccups right after a reboot, or with various other available players, such as mpv, smplayer, or dragonplayer.
Yes, the hiccups start right after turning system on and happens with various players.
I tested kodi and vlc for local movies and firefox and brave-browser for streaming platforms.
Stevo wrote: Sun Dec 29, 2024 12:44 am And is it with every type of video file? ( I recommend mediainfo to get quick reports of the video encoding of the file)
OK, I'll look into this further

Perhaps my particular hardware-setup has something to do with the problem.
I use two different ports on the graphics card:
  • the beamer is connected to one
  • the AV amplifier to another.
In KDE, I have configured the screen of the amplifier as a copy of the screen of the projector.
MC: ASUS PRIME A320M-K, AMD Ryzen 5 3600, NVIDIA Quadro P400
WS: ASRock X670E Steel Legend, AMD Ryzen 5 7600X, NVIDIA GTX 1660 SUPER

User avatar
timkb4cq
Developer
Posts: 3584
Joined: Wed Jul 12, 2006 4:05 pm

Re: Problems with movie playback

#8 Post by timkb4cq »

I wonder if it has to do with the nvidia driver.
QSI wrote:Display: server: X.org v: 1.21.1.7 with: Xwayland v: 22.1.9 compositor: kwin_x11 driver: X:
loaded: nvidia gpu: nvidia tty: 118x29
API: OpenGL Message: GL data unavailable in console for root.
I've never seen an API line in QSI quite like that. It usually goes on to list the renderer and whether or not direct-rendering works, e.g.
MyQSI wrote:API: OpenGL v: 4.6 Mesa 22.3.6 renderer: AMD Radeon Graphics (renoir LLVM 15.0.6 DRM 3.49
6.1.0-28-amd64) direct-render: Yes
A lack of direct rendering would certainly cause hiccups,
Given the current issues we have been seeing with nvidia drivers & 6.11+ liquorix kernels, I would suggest trying a 6.9 or earlier kernel. Newer isn't always better.
HP Pavillion TP01, AMD Ryzen 3 5300G (quad core), Crucial 500GB SSD, Toshiba 6TB 7200rpm
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB

django013
Posts: 185
Joined: Sat Feb 11, 2023 3:25 am

Re: Problems with movie playback

#9 Post by django013 »

Hi,
timkb4cq wrote: Sat Dec 28, 2024 2:05 pm ... have you tried a different compositor? Wayland still has issues iin bookworm.
while searching for the qsi problem i discovered that no matter which compositor i choose the qsi report always says xwayland.

I changed compositor at KDE settings at workspace -> startoptions -> autostart - session
I can choose between X11 and Wayland, but changing the value does not change qsi-compositor output.

So where else could I change active compositor?
Stevo wrote: Sun Dec 29, 2024 12:44 am Testing with a Debian style kernel could also be relevant.
And is it with every type of video file?
Changing kernel makes no difference and I tried all kind of movie i have - there's no difference between audio- or video-formats
MC: ASUS PRIME A320M-K, AMD Ryzen 5 3600, NVIDIA Quadro P400
WS: ASRock X670E Steel Legend, AMD Ryzen 5 7600X, NVIDIA GTX 1660 SUPER

User avatar
davidy
Posts: 818
Joined: Sat Jul 03, 2021 1:59 pm

Re: Problems with movie playback

#10 Post by davidy »

Whenever I have vlc playback issues mpv works fine. But that's when vlc won't play it at all.
Sys76 LemurPro-mx-23.4, EliteMinis HM90-mx-21.3, Deskmini UM350-phoenixLite win10, Qnap 12tb nas, Protectli FW4C-opnsense(=゜ω゜)

zero privacy = zero security . All MX'd Up
UAP = up above people

Post Reply

Return to “MX Help”