ffplay (part of ffmpeg) doesn't work with MX23

Message
Author
thomasl

ffplay (part of ffmpeg) doesn't work with MX23

#1 Post by thomasl »

I've installed ffmpeg via MXPI. ffmpeg and ffprobe work as expected but ffplay has a problem:

Code: Select all

1 1~>ffplay IMGP0436.mkv 
ffplay version 5.1.3-1 Copyright (c) 2003-2022 the FFmpeg developers
  built with gcc 12 (Debian 12.2.0-14)
  configuration: --prefix=/usr --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-libjxl --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
Could not initialize SDL - No available video device
(Did you set the DISPLAY variable?)
1 1~>echo $DISPLAY 
:0.0
So at first I played around with $DISPLAY but no joy. Then I've googled and tried a couple of remedies, no success either. One of the things I tried was setting SDL_VIDEODRIVER to x11... this produced

Code: Select all

Could not initialize SDL - X11 not available
Another proggy that I've installed (scrcpy) terminates with the same error message. OTOH QMPlay2, mpv and shotcut all work so this is not a massive problem but something seems amiss.

Code: Select all

Snapshot created on: 20230730_1506
System:
  Kernel: 6.1.0-10-amd64 [6.1.37-1] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0 parameters: quiet
    loglevel=0 checkfs hostname=cholatse bdir=MX23 from=hd persist=root!,home!
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel wm: xfwm v: 4.18.0 vt: 7
    dm: LightDM v: 1.26.0 Distro: MX-23_x64 Libretto July 30  2023 base: Debian GNU/Linux 12
    (bookworm)
Machine:
  Type: Laptop System: HP product: HP Pavilion Laptop 15-cw1xxx v: N/A serial: <superuser required>
    Chassis: type: 10 serial: <superuser required>
  Mobo: HP model: 8615 v: 46.30 serial: <superuser required> UEFI-[Legacy]: AMI v: F.48
    date: 04/08/2022
Battery:
  ID-1: BAT0 charge: 38.1 Wh (100.0%) condition: 38.1/38.1 Wh (100.0%) volts: 13.0 min: 11.6
    model: Hewlett-Packard Primary type: Li-ion serial: N/A status: full cycles: 342
CPU:
  Info: model: AMD Ryzen 3 3300U with Radeon Vega Mobile Gfx bits: 64 type: MCP arch: Zen/Zen+
    note: check gen: 1 level: v3 note: check built: 2019 process: GF 12nm family: 0x17 (23)
    model-id: 0x18 (24) stepping: 1 microcode: 0x8108102
  Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 384 KiB desc: d-4x32 KiB; i-4x64 KiB
    L2: 2 MiB desc: 4x512 KiB L3: 4 MiB desc: 1x4 MiB
  Speed (MHz): avg: 1921 high: 3493 min/max: 1400/2100 boost: enabled scaling:
    driver: acpi-cpufreq governor: ondemand cores: 1: 3493 2: 1397 3: 1397 4: 1397 bogomips: 16768
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  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: retbleed mitigation: untrained return thunk; SMT disabled
  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: disabled, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Picasso/Raven 2 [Radeon Vega Series / Radeon Mobile Series] vendor: Hewlett-Packard
    Pavilion Laptop 15-cw1xxx driver: amdgpu v: kernel arch: GCN-5 code: Vega process: GF 14nm
    built: 2017-20 pcie: gen: 3 speed: 8 GT/s lanes: 16 ports: active: HDMI-A-1 off: eDP-1
    empty: none bus-ID: 04:00.0 chip-ID: 1002:15d8 class-ID: 0300 temp: 52.0 C
  Device-2: Quanta HP Wide Vision HD Camera type: USB driver: uvcvideo bus-ID: 3-1.2:4
    chip-ID: 0408:5300 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.18.0 driver: X: loaded: amdgpu
    unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x286mm (20.00x11.26") s-diag: 583mm (22.95")
  Monitor-1: HDMI-A-1 mapped: HDMI-A-0 pos: primary model: Acer K242HL serial: <filter>
    built: 2015 res: 1920x1080 hz: 60 dpi: 92 gamma: 1.2 size: 531x299mm (20.91x11.77")
    diag: 609mm (24") ratio: 16:9 modes: max: 1920x1080 min: 720x400
  Monitor-2: eDP-1 mapped: eDP note: disabled model: AU Optronics 0x21ed built: 2019
    res: 1920x1080 dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5") ratio: 16:9
    modes: max: 1920x1080 min: 640x480
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: AMD Radeon Vega 6 Graphics (raven LLVM 15.0.6 DRM
    3.49 6.1.0-10-amd64) direct-render: Yes
Audio:
  Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio vendor: Hewlett-Packard Pavilion Laptop
    15-cw1xxx driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 04:00.1
    chip-ID: 1002:15de class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: snd_pci_acp3x v: kernel
    alternate: snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 04:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h/19h HD Audio vendor: Hewlett-Packard Pavilion Laptop 15-cw1xxx
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 04:00.6
    chip-ID: 1022:15e3 class-ID: 0403
  API: ALSA v: k6.1.0-10-amd64 status: kernel-api tools: alsamixer,amixer
Network:
  Device-1: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter vendor: Hewlett-Packard
    driver: rtw_8821ce v: N/A modules: rtw88_8821ce pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: f000
    bus-ID: 02:00.0 chip-ID: 10ec:c821 class-ID: 0280
  IF: wlan0 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Hewlett-Packard
    Pavilion Laptop 15-cw1xxx driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    port: e000 bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: eth0 state: down mac: <filter>
  IF-ID-1: vboxnet0 state: down mac: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth 4.2 Adapter type: USB driver: btusb v: 0.8 bus-ID: 1-4:4
    chip-ID: 0bda:b00a class-ID: e001 serial: <filter>
  Report: hciconfig ID: hci0 rfk-id: 1 state: down bt-service: N/A rfk-block: hardware: no
    software: no address: <filter>
  Info: acl-mtu: 1021:8 sco-mtu: 255:12 link-policy: rswitch hold sniff park
    link-mode: peripheral accept
Drives:
  Local Storage: total: 931.51 GiB used: 416.11 GiB (44.7%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Crucial model: CT1000P2SSD8 size: 931.51 GiB
    block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: P2CR031 temp: 27.9 C scheme: MBR
Partition:
  Message: No partition data found.
Swap:
  Kernel: swappiness: 4 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 1024 MiB used: 2.5 MiB (0.2%) priority: -2
    file: /root/Live-usb-storage/swapfile2
Sensors:
  System Temperatures: cpu: 52.5 C mobo: N/A gpu: amdgpu temp: 52.0 C
  Fan Speeds (RPM): N/A
Repos:
  Packages: pm: dpkg pkgs: 1862 libs: 940 tools: apt,apt-get,aptitude,synaptic 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/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://mxrepo.com/mx/repo/ bookworm main non-free
  Active apt repos in: /etc/apt/sources.list.d/vivaldi.list
    1: deb [arch=amd64] https://repo.vivaldi.com/stable/deb/ stable main
Info:
  Processes: 244 Uptime: 1h 11m wakeups: 3 Memory: 13.56 GiB used: 4.73 GiB (34.9%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12 Client: shell wrapper
  v: 5.2.15-release inxi: 3.3.26
Boot Mode: BIOS (legacy, CSM, MBR)

User avatar
siamhie
Global Moderator
Posts: 3826
Joined: Fri Aug 20, 2021 5:45 pm

Re: ffplay (part of ffmpeg) doesn't work with MX23

#2 Post by siamhie »

Possible the way the video was encoded? I'm able play mkv files.

ffplay.jpg
You do not have the required permissions to view the files attached to this post.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

thomasl

Re: ffplay (part of ffmpeg) doesn't work with MX23

#3 Post by thomasl »

I think it's got nothing to do with the .mkv format as .mp4 or .webm videos produce the same error message. It seems that SDL just has no access to video device.

thomasl

Re: ffplay (part of ffmpeg) doesn't work with MX23

#4 Post by thomasl »

I finally found the problem... I had two copies of the libSDL2* libraries installed and ffplay loaded the wrong one (ie not the MX23 version). If I rename the offending files, it works. The problem is of course that the other app now can't find its version :p which may or may not be a problem (so far it's fine). Perhaps I will have to resort to using LD_LIBRARY_PATH.

Anyway, solved.

EDIT: Had the same problem with scrcpy... this now also works./EDIT

Post Reply

Return to “Software / Configuration”