Skip to content

Help with Conditional Profile #5

@Iz-zzzzz

Description

@Iz-zzzzz

Hi there,

I'm facing an issue with the MPV UI lagging when playing low FPS videos with video-sync=audio. However, this issue doesn't occur when using video-sync=display-resample. I want to set video-sync=audio only when it's necessary (only when skipsilence is working).

Currently, I've adjusted my mpv.conf with a condition profile like this:

# If the UI feels sluggish/slow while playing video
# [Credit] https://github.com/tomasklaen/uosc
video-sync=display-resample

[auto-skipsilence-videosync]
profile-cond=get("user-data/skipsilence/working") # change from enabled to working
profile-restore=copy-equal
video-sync=audio

However, I'm not sure where to place the following lines in the Lua script:

mp.set_property_bool("user-data/skipsilence/working", false) --when skipslience is not working
mp.set_property_bool("user-data/skipsilence/working", true) --when skipslience is not working

Any guidance on where to put these would be greatly appreciated!

Thanks in advance!

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