Skip to content

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

@Columbo199X

Description

@Columbo199X

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions