-
Notifications
You must be signed in to change notification settings - Fork 3
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
Support arbitrary mpv options #2
Comments
@shaief if you want to get your hands dirty this might be a nice issue to try :) |
Some unknowns regarding this, waiting for validation on my understanding; this feature should take the TOML configuration from the library that streamlib loads (default or via path specified via command line argument) and take the mpv configuration per URL, so no global configuration supported yet. |
This isn't a global configuration at all. The idea here is that some streams only work given specific parameters, e.g. the Channel 13 stream returns We want to be able to support future use cases without explicitly defining them in advance. Does that make sense? @zoharyzgiaev |
This would be appreciated! being able to add |
@5c0tt-b0t in which cases is |
For instance, a big percentage of my Youtube use is music. The top link on Youtube (for most songs) is its music video, most (99%) of the time, I do not want to watch this, I just want to listen to the audio only. |
@5c0tt-b0t OK that definitely makes sense. This issue is for supporting arbitrary options, but if you'd like to go ahead and add support for something like an |
I apologise! I thought this was to add options to launch
I would like this functionality so I will take a look over at 'library', this may be the excuse I've needed to look at Rust, I've been learning Go, whilst its by no means slow... damn Rust is FAST! (2x faster) and very memory-efficient too!. |
@5c0tt-b0t there are no changes needed in Python, or in the library itself. Only changes needed are in |
Currently the only special mpv option supported is
http_headers
which is converted tompv
's--http-header-fields
argument.It might be nice to support arbitrary arguments using TOML nested tables with the following library specification:
Those parameters can then be immediately translated to
--key-name
args that are passed on to thempv
invocation.The text was updated successfully, but these errors were encountered: