[GH-ISSUE #2333] Weird issue with mpv and mpsyt #1556

Closed
opened 2026-05-05 08:13:00 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @chiraag-nataraj on GitHub (Jan 10, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2333

So I realized that mpv, by default, does not control pulseaudio levels but instead controls its own internal volume level and I rebound 9 and 0 to control ao-volume to fix this (in ~/.config/mpv/input.conf). When I run mpv directly with my profile, everything works really well. So far so good. I do an ln -s /usr/local/bin/firejail /usr/local/bin/mpv so it will be sandboxed by default.

Now, I start using mpsyt (mps-youtube) and create a profile for it. This one includes my mpv profile and whitelists a couple of additional things (namely, mpsyt complains a lot if I don't enable DBus and I additionally whitelist the config file and binary). Here is where things get interesting. If I keep the ignore nodbus, mpv reverts to its software mixing defaults for the keybindings. If I comment that line out, mpv controls the pulseaudio volume as I configured it but mpsyt is semi-broken.

Okay, fair enough. Not quite sure why, but let's play along. If that line is the issue, then firejail --ignore=nodbus /usr/bin/mpv <file> (or adding ignore nodbus to the profile file) should also revert to software mixing, right? Nope. That works just fine and mpv continues to control the pulseaudio volume.

Does anyone know why on earth this should be the case? I've included the relevant profiles here.

common.inc
mpsyt.profile
mpv.profile
mpv-relaxed.inc

Originally created by @chiraag-nataraj on GitHub (Jan 10, 2019). Original GitHub issue: https://github.com/netblue30/firejail/issues/2333 So I realized that `mpv`, by default, does not control pulseaudio levels but instead controls its own internal volume level and I rebound `9` and `0` to control `ao-volume` to fix this (in `~/.config/mpv/input.conf`). When I run `mpv` directly with my profile, everything works really well. So far so good. I do an `ln -s /usr/local/bin/firejail /usr/local/bin/mpv` so it will be sandboxed by default. Now, I start using `mpsyt` (`mps-youtube`) and create a profile for it. This one includes my `mpv` profile and whitelists a couple of additional things (namely, `mpsyt` complains a lot if I don't enable DBus and I additionally whitelist the config file and binary). Here is where things get interesting. If I keep the `ignore nodbus`, `mpv` reverts to its software mixing defaults for the keybindings. If I comment that line out, `mpv` controls the pulseaudio volume as I configured it but `mpsyt` is semi-broken. Okay, fair enough. Not quite sure why, but let's play along. If that line is the issue, then `firejail --ignore=nodbus /usr/bin/mpv <file>` (or adding `ignore nodbus` to the profile file) should _also_ revert to software mixing, right? _Nope_. That works just fine and `mpv` continues to control the pulseaudio volume. Does anyone know why on _earth_ this should be the case? I've included the relevant profiles here. [common.inc](https://github.com/netblue30/firejail/files/2745215/common.txt) [mpsyt.profile](https://github.com/netblue30/firejail/files/2745217/mpsyt.txt) [mpv.profile](https://github.com/netblue30/firejail/files/2745218/mpv.txt) [mpv-relaxed.inc](https://github.com/netblue30/firejail/files/2745219/mpv-relaxed.txt)
Author
Owner

@chiraag-nataraj commented on GitHub (Jan 10, 2019):

Never mind, this was an issue discussed here: https://github.com/mps-youtube/mps-youtube/wiki/Troubleshooting

<!-- gh-comment-id:453303217 --> @chiraag-nataraj commented on GitHub (Jan 10, 2019): Never mind, this was an issue discussed here: https://github.com/mps-youtube/mps-youtube/wiki/Troubleshooting
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1556
No description provided.