Skip to content
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

Add options for mpv #6

Closed
fliegentoeter opened this issue Oct 13, 2018 · 1 comment
Closed

Add options for mpv #6

fliegentoeter opened this issue Oct 13, 2018 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@fliegentoeter
Copy link

fliegentoeter commented Oct 13, 2018

Is there a way to send some options for mpv when opening videos?
I would like to set some quality/cache options like:

 --ytdl-format=45/22/bestvideo[height<=720]+bestaudio/bestvideo[height<=720] \
 --ytdl-raw-options=geo-bypass=,ignore-errors=,continue= \
 --title="$TITLE" \
 --cache=auto \
 --cache-default=100000 \
 --autofit-larger=100%x100% \
 --autofit-smaller=100%x100% \
 --geometry=50%:50% \
 --demuxer-thread=yes \
 --demuxer-readahead-secs=60 \
 --cache-secs=60 \
 --cache-initial=1024
@grmat
Copy link
Owner

grmat commented Oct 14, 2018

Hi,
as play-with is deliberately doing nothing but handing the URL to the preferred program (in that case mpv), that's not possible. Technically, play-with doesn't call mpv itself, so it can't set additional options to the call. Firefox downloads the playlist file provided by play-with and then lets mpv open it. That's intentional as that doesn't require a native-messaging client, and the sole reason play-with exists. There are other addons that rely on native-messaging and can fulfil your needs.

The way I use it is to add a new profile in the mpv config, set the desired options there and select it as the new default profile, so its options will be used when mpv gets called by Firefox (or anything else without additional arguments). When opening mpv from a terminal, I can still select another profile. Further convenience possibilities are using shell aliases or creating an additional .desktop entry containing the desired profile.

closing, as duplicate of #4

@grmat grmat added the duplicate This issue or pull request already exists label Oct 14, 2018
@grmat grmat closed this as completed Oct 14, 2018
@grmat grmat pinned this issue Feb 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants