System freezes while playing video

System freezes for around 1 minute while playing a video on Kaffeine or vlc media player
Output of the below command:
$ inxi --admin --verbosity=7 --filter --no-host --width

  Kernel: 5.10.68-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=06d7363a-23c3-4c3d-97e3-3bc65484e084 ro quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: KDE Plasma 5.22.5 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Laptop System: ASUSTeK product: VivoBook_ASUSLaptop X513IA_KM513IA 
  v: 1.0 serial: <filter> 
  Mobo: ASUSTeK model: X513IA v: 1.0 serial: <filter> 
  UEFI: American Megatrends v: X513IA.300 date: 06/05/2020 
Battery:
  ID-1: BAT0 charge: 6.0 Wh (16.6%) condition: 36.2/42.1 Wh (86.1%) 
  volts: 11.8 min: 11.8 model: ASUSTeK ASUS Battery type: Li-ion serial: N/A 
  status: Discharging cycles: 363 
Memory:
  RAM: total: 7.26 GiB used: 4.06 GiB (55.9%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: 8-Core model: AMD Ryzen 7 4700U with Radeon Graphics bits: 64 
  type: MCP arch: Zen 2 family: 17 (23) model-id: 60 (96) stepping: 1 
  microcode: 8600103 cache: L2: 4 MiB bogomips: 31952 
  Speed: 1397 MHz min/max: 1400/2000 MHz boost: enabled Core speeds (MHz): 
  1: 1397 2: 1397 3: 1397 4: 1397 5: 1397 6: 1397 7: 1400 8: 1397 
  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 ibrs 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 rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep sha_ni 
  skinit smap smca smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp succor 
  svm svm_lock syscall tce topoext tsc tsc_scale umip v_vmsave_vmload vgif 
  vmcb_clean vme vmmcall wbnoinvd wdt xgetbv1 xsave xsavec xsaveerptr xsaveopt 
  xsaves 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, IBRS_FW, 
  STIBP: disabled, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: AMD Renoir vendor: ASUSTeK driver: amdgpu v: kernel 
  bus-ID: 03:00.0 chip-ID: 1002:1636 class-ID: 0300 
  Device-2: IMC Networks USB2.0 HD UVC WebCam type: USB driver: uvcvideo 
  bus-ID: 3-3:3 chip-ID: 13d3:56a8 class-ID: 0e02 serial: <filter> 
  Display: x11 server: X.Org 1.20.13 compositor: kwin_x11 driver: 
  loaded: amdgpu,ati unloaded: modesetting alternate: fbdev,vesa 
  display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
  s-diag: 582mm (22.9") 
  Monitor-1: eDP res: 1920x1080 hz: 60 dpi: 142 size: 344x194mm (13.5x7.6") 
  diag: 395mm (15.5") 
  OpenGL: renderer: AMD RENOIR (DRM 3.40.0 5.10.68-1-MANJARO LLVM 12.0.1) 
  v: 4.6 Mesa 21.2.2 direct render: Yes 
Audio:
  Device-1: AMD driver: snd_hda_intel v: kernel bus-ID: 03:00.1 
  chip-ID: 1002:1637 class-ID: 0403 
  Device-2: AMD Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel 
  v: kernel bus-ID: 03:00.6 chip-ID: 1022:15e3 class-ID: 0403 
  Sound Server-1: ALSA v: k5.10.68-1-MANJARO running: yes 
  Sound Server-2: JACK v: 1.9.19 running: no 
  Sound Server-3: PulseAudio v: 15.0 running: yes 
  Sound Server-4: PipeWire v: 0.3.37 running: yes 
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel bus-ID: 01:00.0 
  chip-ID: 8086:2723 class-ID: 0280 
  IF: wlp1s0 state: up mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  WAN IP: <filter> 
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 3-2:2 
  chip-ID: 8087:0029 class-ID: e001 
  Report: rfkill ID: hci0 rfk-id: 6 state: up address: see --recommends 
Logical:
  Message: No logical block device data found. 
RAID:
  Message: No RAID data found. 
Drives:
  Local Storage: total: 1.14 TiB used: 85.07 GiB (7.3%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SK Hynix model: HFM256GDJTNG-8310A 
  size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 15.8 Gb/s 
  lanes: 2 type: SSD serial: <filter> rev: 80001C00 temp: 36.9 C scheme: GPT 
  ID-2: /dev/sda maj-min: 8:0 vendor: Western Digital model: WD10SPZX-80Z10T2 
  size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  type: HDD rpm: 5400 serial: <filter> rev: 1A04 scheme: GPT 
  Message: No optical or floppy data found. 
Partition:
  ID-1: / raw-size: 52.2 GiB size: 51.13 GiB (97.95%) used: 33.32 GiB (65.2%) 
  fs: ext4 dev: /dev/nvme0n1p5 maj-min: 259:5 label: N/A 
  uuid: 06d7363a-23c3-4c3d-97e3-3bc65484e084 
  ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%) 
  used: 66.8 MiB (26.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 
  label: SYSTEM uuid: DA44-C033 
  ID-3: /home raw-size: 34.8 GiB size: 34 GiB (97.71%) used: 22.34 GiB (65.7%) 
  fs: ext4 dev: /dev/nvme0n1p6 maj-min: 259:6 label: N/A 
  uuid: 941c21f5-3c1e-45ab-8989-ce9c68b0c218 
  ID-4: /run/timeshift/backup raw-size: 30 GiB size: 29.36 GiB (97.86%) 
  used: 29.34 GiB (99.9%) fs: ext4 dev: /dev/sda2 maj-min: 8:2 
  label: Manjaro-recovery uuid: ab4be4b9-eb3d-43ea-a32c-8763e70be217 
Swap:
  Alert: No swap data was found. 
Unmounted:
  ID-1: /dev/nvme0n1p2 maj-min: 259:2 size: 16 MiB fs: <superuser required> 
  label: N/A uuid: N/A 
  ID-2: /dev/nvme0n1p3 maj-min: 259:3 size: 150.18 GiB fs: ntfs label: OS 
  uuid: DC20475720473832 
  ID-3: /dev/nvme0n1p4 maj-min: 259:4 size: 1.03 GiB fs: ntfs label: RECOVERY 
  uuid: E6BAAD46BAAD13D9 
  ID-4: /dev/sda1 maj-min: 8:1 size: 901.51 GiB fs: ntfs label: New Volume 
  uuid: 800C3F790C3F6974 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 1-4:2 info: No brand USB OPTICAL MOUSE type: Mouse 
  driver: hid-generic,usbhid interfaces: 1 rev: 1.1 speed: 1.5 Mb/s 
  power: 100mA chip-ID: 2188:0ae1 class-ID: 0301 
  Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-3: 3-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 3-2:2 info: Intel AX200 Bluetooth type: Bluetooth driver: btusb 
  interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0029 
  class-ID: e001 
  Device-2: 3-3:3 info: IMC Networks USB2.0 HD UVC WebCam type: Video 
  driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA 
  chip-ID: 13d3:56a8 class-ID: 0e02 serial: <filter> 
  Hub-4: 4-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
Sensors:
  System Temperatures: cpu: 39.0 C mobo: N/A gpu: amdgpu temp: 38.0 C 
  Fan Speeds (RPM): cpu: 0 
Info:
  Processes: 270 Uptime: 1d 14h 9m wakeups: 35 Init: systemd v: 249 
  tool: systemctl Compilers: gcc: 11.1.0 Packages: pacman: 1391 lib: 390 
  flatpak: 0 Shell: Bash v: 5.1.8 running-in: konsole inxi: 3.3.06 

What is the output of:

vlc /path/to/videofile

:question:

Please find below output. (I was running kernel linux514 while this happened)

$ vlc Meeting\ in\ _General_-20211009_120813-Meeting\ Recording.mp4 
VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2)
[000055d8c43be620] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00007f9614005d00] gl gl: Initialized libplacebo v3.120.3 (API v120)
[00007f9624ef4540] avcodec decoder: Using Mesa Gallium driver 21.2.3 for AMD RENOIR (DRM 3.42.0, 5.14.10-1-MANJARO, LLVM 12.0.1) for hardware decoding
[00007f9620000c80] main input error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 1000 ms)
[00007f9620000c80] main input error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 1030 ms)
[00007f9624ef4540] main decoder error: Timestamp conversion failed for 154875001: no reference clock
[00007f9624ef4540] main decoder error: Could not convert timestamp 0 for FFmpeg
[00007f9620000c80] main input error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 1515 ms)
[00007f9620000c80] main input error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 2235 ms)
[00007f9620000c80] main input error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 3366 ms)
[00007f9620000c80] main input error: ES_OUT_SET_(GROUP_)PCR  is called too late (jitter of 12766 ms ignored)
[00007f9624ffb040] main decoder error: Timestamp conversion failed for 173376001: no reference clock
[00007f9624ffb040] main decoder error: Could not convert timestamp 0 for faad
[00007f9624ef4540] main decoder error: Timestamp conversion failed for 170375001: no reference clock
[00007f9624ffb040] main decoder error: Timestamp conversion failed for 173440001: no reference clock
[00007f9624ef4540] main decoder error: Could not get display date for timestamp 0
[00007f9624ffb040] main decoder error: Could not convert timestamp 0 for faad
[00007f9624ffb040] main decoder error: Timestamp conversion failed for 173504001: no reference clock
[00007f9624ffb040] main decoder error: Could not convert timestamp 0 for faad
[00007f9624ffb040] main decoder error: Timestamp conversion failed for 173568001: no reference clock
[00007f9624ef4540] main decoder error: Timestamp conversion failed for 170500001: no reference clock
[00007f9624ffb040] main decoder error: Could not convert timestamp 0 for faad
[00007f9624ef4540] main decoder error: Could not get display date for timestamp 0
[00007f9624ffb040] main decoder error: Timestamp conversion failed for 173632001: no reference clock
[00007f9624ffb040] main decoder error: Could not convert timestamp 0 for faad
[00007f9624ffb040] main decoder error: Timestamp conversion failed for 173696001: no reference clock
[00007f9624ffb040] main decoder error: Could not convert timestamp 0 for faad
[00007f9624ffb040] main decoder error: Timestamp conversion failed for 173760001: no reference clock
[00007f9624ffb040] main decoder error: Could not convert timestamp 0 for faad
[00007f9624ffb040] main decoder error: Timestamp conversion failed for 173824001: no reference clock
[00007f9624ffb040] main decoder error: Could not convert timestamp 0 for faad
[00007f9624ffb040] main decoder error: Timestamp conversion failed for 173888001: no reference clock
[00007f9624ffb040] main decoder error: Could not convert timestamp 0 for faad
[00007f9624ffb040] main decoder error: Timestamp conversion failed for 173952001: no reference clock
[00007f9624ffb040] main decoder error: Could not convert timestamp 0 for faad
[00007f9624ffb040] main decoder error: Timestamp conversion failed for 174016001: no reference clock
[00007f9624ffb040] main decoder error: Could not convert timestamp 0 for faad
[00007f9624ffb040] main decoder error: Timestamp conversion failed for 174080001: no reference clock
[00007f9624ffb040] main decoder error: Could not convert timestamp 0 for faad
[00007f9624ffb040] main decoder error: Timestamp conversion failed for 174144001: no reference clock
[00007f9624ffb040] main decoder error: Could not convert timestamp 0 for faad
[00007f9624ef4540] main decoder error: Timestamp conversion failed for 170500001: no reference clock
[00007f9624ef4540] main decoder error: Could not convert timestamp 0 for FFmpeg
[00007f9624ffb040] main decoder error: Timestamp conversion failed for 174208001: no reference clock
[00007f9624ffb040] main decoder error: Could not convert timestamp 0 for faad
[00007f9624ef4540] main decoder error: Timestamp conversion failed for 170625001: no reference clock
[00007f9624ef4540] main decoder error: Could not get display date for timestamp 0
[00007f9620000c80] main input error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 4766 ms)

Do you have that with all videos or just this video?

How about these:

https://sample-videos.com/

:thinking:

This problem usually occurs when the video size is greater than 100 MiB. My system also freezes while using vscode. Are these problems related by any chance?

Here are some large test videos made professionally by Samsung:

Do these pose any problems?

(We have to rule out problems inside your video files, before tackling VLC or your system)

:thinking:

You should create a swap file/partition.

The below solution seems to work.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.