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

--sub options don't work with auto-profiles.lua #5

Open
Columbo199X opened this issue Jul 8, 2020 · 2 comments
Open

--sub options don't work with auto-profiles.lua #5

Columbo199X opened this issue Jul 8, 2020 · 2 comments

Comments

@Columbo199X
Copy link

I have a custom style set in an .ass file to override subtitle styling by using the following option.
sub-ass-styles=C:\Program Files\mpv\styles\640x480.ass
This file needs to be set to the same resolution as the video otherwise the subtitles scale wrong.

Currently I have two files with two of the most common resolutions. Manually changing the config to load the file works fine but I wanted to automate this using the auto-profiles.lua.
[640x480]
profile-desc=cond:(p["video-params/w"]==640 and p["video-params/h"]==480)
sub-ass-styles=C:\Program Files\mpv\styles\640x480.ass
osd-playing-msg="640x480"

The script works as intended by recognizing the set resolution. But somehow none of the --sub options seems to work when using auto-profiles.

@wiiaboo
Copy link
Owner

wiiaboo commented Jul 8, 2020 via email

@Columbo199X
Copy link
Author

Can you open an issue about this in mpv itself?

I will do that. Thanks for the quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants