Set amount of Instance at the same time
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 37k
- Forks
- 3.5k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 22
Description
I would like to have a feature to set in .config/mpv/mpv.conf
How much instance of MPV can be open at the same time.
Something like:
set instance limit=5
And this should close the first instance if Instance 6 would be open.
why?
I'm using InputLeap/barrier to control my second System to open and watch videos over MPV.
Sometimes if there is a bad connection
I get, instead of one instance, more than 50 session open and that leads to that System slow down and crashing.
An alternative is to have only one instance open, are limiting the amount of RAM MPV can get.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing how settings from .config/mpv/mpv.conf are parsed and how MPV instances or sessions are tracked. Determine the intended behavior for a configured limit, including which instance is closed when the limit is exceeded, then identify tests covering configuration and instance startup. Done means the limit works reliably and the excess instance is closed without destabilizing MPV.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100