1 (edited by liweichen6 13-02-2020 02:07:23)

Topic: mpv save-position-on-quit

Right now save-position-on-quit can't be used with SVP cause it also saves vf's states, so I was trying to find some workaround.
In mpv's source file command.c, function mp_write_watch_later_conf saves position as well as backup_properties.
If we comment out the "vf", will both SVP and save position work?
If so can we do this in SVP's mpv build? Thanks.



static const char *const backup_properties[] = {
    "osd-level",
    //"loop",
    "speed",
    "options/edition",
    "pause",
    "volume",
    "mute",
    "audio-delay",
    //"balance",
    "fullscreen",
    "ontop",
    "border",
    "gamma",
    "brightness",
    "contrast",
    "saturation",
    "hue",
    "options/deinterlace",
    "vf",
    "af",
    "panscan",
    "options/aid",
    "options/vid",
    "options/sid",
    "sub-delay",
    "sub-speed",
    "sub-pos",
    "sub-visibility",
    "sub-scale",
    "sub-use-margins",
    "sub-ass-force-margins",
    "sub-ass-vsfilter-aspect-compat",
    "sub-style-override",
    "ab-loop-a",
    "ab-loop-b",
    "options/video-aspect-override",
    0
};

Re: mpv save-position-on-quit

In fact, it seems like SVP works correctly with save-position-on-quit=yes since ... I dunno, some time.
Or you do have any specific problem with it?

Re: mpv save-position-on-quit

Chainik wrote:

In fact, it seems like SVP works correctly with save-position-on-quit=yes since ... I dunno, some time.
Or you do have any specific problem with it?

Thanks, I didn't know about that.
The default config specifies "=no" so I thought it wasn't working.
After more testing it seems that, with "=yes" the temp py script won't be deleted anymore, so currently it's working fine.