How to toggle subtitles with dbus-send?

*nix specific usage questions
eddsor
Blank Cone
Blank Cone
Posts: 12
Joined: 23 Jan 2022 20:20

How to toggle subtitles with dbus-send?

Postby eddsor » 28 Oct 2024 20:16

I am trying to toggle subtitles on and off with dbus-send. I can use dbus-send to pause, seek and set volume, but I cannot find anything about how to toggle subtitles.
I am using an IR-remote to control CVLC on a Raspberry Pi.
If dbus-send cannot be used, is there another way to toggle subtitles?
This was not a problem when I used OMXplayer.

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to toggle subtitles with dbus-send?

Postby Rémi Denis-Courmont » 29 Oct 2024 00:27

Check the MPRIS specification if you want to control VLC via the session bus.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

eddsor
Blank Cone
Blank Cone
Posts: 12
Joined: 23 Jan 2022 20:20

Re: How to toggle subtitles with dbus-send?

Postby eddsor » 30 Oct 2024 18:56

I do not find anything about toggling subtitles in MPRIS D-Bus Interface Specification. As I mentioned above, this is possible using OMXPlayer and dbus_send. When I migrated from OMXPlayer to VLC, I hoped that dbus_send could control the subtitles in this player too. I hope it will be fixed in the future.

I am using a RPI3+ wihhout X. Could there be another way to control the subtitles from command line?

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to toggle subtitles with dbus-send?

Postby Rémi Denis-Courmont » 31 Oct 2024 01:04

If you mean the VLC CLI, then there's "strack" IIRC. From the shell, probably no.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 5 guests