this post was submitted on 18 Mar 2026
6 points (87.5% liked)

Linux

16754 readers
88 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 2 years ago
MODERATORS
 

I have a music script I'm working on that uses VLC as its backend for playing music in the background. However, I was looking around the MPV CLI arguments, and there's quite a few things there that would work for my script.

However, I have a few issues with MPV before implementing this addition:

  1. I don't want a window to appear whenever I launch MPV.
  2. I want MPV to remember certain properties, like volume.
  3. I don't want the CLI info displaying in the terminal. This would cause issues as now MPV will close when the terminal closes. I need this to run in the background, like VLC.

I've kinda managed to solve 1. by using --no-vid, but I haven't figured out 2. or 3. yet. Does anyone know any tips, tricks, arguments, etc. to get the desired experience I want with MPV?

It's a Python program, so I am using subprocess currently.

you are viewing a single comment's thread
view the rest of the comments
[–] AstroLightz@lemmy.world -1 points 6 days ago

I'm targeting a Linux release

Your 3, I'm not sure to understand what you want to do.

I don't want the active MPV file info in the terminal as if I CTRL+C, CTRL+D, or close the terminal, MPV will close too. So I want it to run as a background process (like how you can minimize VLC to the tray)

I don't know if using something like nohup mpv <some file> & would work. I guess I could use pkill mpv to close it then.

I saw mpv has a --quiet option. What does that do?