17
submitted 19 hours ago by AstroLightz@lemmy.world to c/linux@lemmy.ml

I'm making a Python script to play music through VLC and I wanted to add a way to control audio playback of VLC, like pause/play, next/previous, etc.

I know I can change shuffle mode before launching VLC with the --random and --no-random arguments. However, is there a way to change playback settings through the Linux terminal while VLC is running?

you are viewing a single comment's thread
view the rest of the comments
[-] utopiah@lemmy.ml 1 points 3 hours ago* (last edited 3 hours ago)

I tinker with VLC using and... so far my "trick" is a bit dirty, namely I don't "control" it as much as I killall potential running instances then I start cvlc again with the right parameters. If you want continuity though you might not want that.

Note also that if you plan to do scripting check mpv as it's a bit easier to tinker with IMHO.

Python

Check https://pypi.org/project/python-vlc/ then for Python bindings, that should give you the affordances you need.

this post was submitted on 06 Mar 2026
17 points (100.0% liked)

Linux

63547 readers
238 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS