Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Volume control while playing #816

Closed
rijotech opened this issue Jul 3, 2022 · 3 comments
Closed

Volume control while playing #816

rijotech opened this issue Jul 3, 2022 · 3 comments

Comments

@rijotech
Copy link

rijotech commented Jul 3, 2022

I'm trying to control the volume while playing a video using xdotool key minus and xdotool key plus but it doesn't seem to work and I'm wondering if this is possible via command line?

@rijotech rijotech changed the title Volune control while plating Volume control while plating Jul 3, 2022
@popcornmix
Copy link
Owner

omxplayer isn't an X app, so I wouldn't expect that to work.
Perhaps the DBUS control section of readme would be helpful.

@rijotech rijotech changed the title Volume control while plating Volume control while playing Jul 11, 2022
@rijotech
Copy link
Author

I can't still figure out the DBUS control but I found a possible solution here to control the volume via stdin. the only problem is I'm getting a permission denied after executing sudo echo -n "-" > /proc/$(pidof omxplayer.bin)/fd/0 -bash: /proc/$(pidof omxplayer.bin)/fd/0: Permission denied
I got this info from this site

@popcornmix
Copy link
Owner

sudo echo -n "-" > [file is almost certainly not what you want.
That runs echo as root but pipes the output as a normal user.

Try echo -n "-" | sudo tee [file] which will actually pipe the output as root.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants