You are not logged in.

#1 2022-03-17 15:19:03

uroter
Member
Registered: 2021-01-01
Posts: 12

[SOLVED] mpv keybindings don't work from terminal when using xargs

I have a command like this:

find -iname '*.flac' | xargs mpv --video=no

It pipes filenames into xargs into mpv. It used to work no problem, with keybindings working from terminal, but with update

[2022-03-14T10:07:00-0300] [ALPM] upgraded mpv (1:0.34.1-3 -> 1:0.34.1-4)

keybindings stopped working (tried several terminals). Keybindings still work from the video window though.

This only happens when using xargs as my workaround does work:

_IFS="$IFS" IFS="
"
mpv --video=no $(find -iname '*.flac')
IFS="$_IFS"

I don't think it's a xargs issue since package `findutils 4.9.0-1` was not updated when I noticed the issue.

I tried downgrading back to `mpv 1:0.34.1-3`, but keybindings still don't work, so maybe it's a dependency issue?

mpv dependencies:

alsa-lib 1.2.6.1-1
desktop-file-utils 0.26-2
ffmpeg 2:5.0-5
glibc 2.35-2
hicolor-icon-theme 0.17-2
jack2 1.9.20-4
lcms2 2.13.1-1
libarchive 3.6.0-1
libass 0.15.2-2
libbluray 1.3.0-2
libcdio 2.1.0-2
libcdio-paranoia 10.2+2.0.1-2
libdrm 2.4.110-1
libdvdnav 6.1.1-1
libdvdread 6.1.2-1
libglvnd 1.4.0-1
libjpeg-turbo 2.1.3-1
libplacebo 4.192.1-2
libpulse 15.0-4
libva 2.13.0-2
libvdpau 1.5-1
libx11 1.7.3.1-1
libxext 1.3.4-3
libxinerama 1.1.4-3
libxkbcommon 1.4.0-1
libxrandr 1.5.2-3
libxss 1.2.3-3
libxv 1.0.11-4
luajit 2.1.0.beta3.r391.g8b8304f1-1
mesa 21.3.7-2
mpv 1:0.34.1-4
mujs 1.2.0-2
rubberband 2.0.2-1
shaderc 2022.1-2
uchardet 0.0.7-1
vulkan-icd-loader 1.3.207-1
wayland 1.20.0-1
xdg-utils 1.1.3+19+g9816ebb-1
zlib 1:1.2.11-5

Is anyone else having this issue? Should I report a bug? If so, should it be upstream or to Arch because of packaging? Having read through the wiki entry I feel like it should be to Arch, and I haven't found a similar issue in upstream's bugtracker

Last edited by uroter (2023-03-26 06:13:48)

Offline

#2 2022-03-17 18:29:55

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] mpv keybindings don't work from terminal when using xargs

This seems like a use case for xargs's --open-tty?

Offline

#3 2022-03-17 19:42:53

uroter
Member
Registered: 2021-01-01
Posts: 12

Re: [SOLVED] mpv keybindings don't work from terminal when using xargs

Thanks for your response! Yes, this workaround works, but it requires root privileges for me for some reason, and therefore the audio sink is not the same as the non-root user by default

Offline

#4 2023-03-26 06:13:23

uroter
Member
Registered: 2021-01-01
Posts: 12

Re: [SOLVED] mpv keybindings don't work from terminal when using xargs

This was solved I don't know when exactly, mpv is now 1:0.35.1-3. Marking as solved

Offline

Board footer

Powered by FluxBB