mpv-player / mpv-player/mpv

Changing video pan always happens before playlist-next

Open
#7,293 9 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

core:option-param-conf
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

mpv version and platform

Mpv master on linux (Arch)

Reproduction steps

I am trying out mpv as an image viewer and would like to setup keybindings for reading comics. For example I want to have a key to go to the bottom of the current image then go to the top of the next image on the next press (and so on). I have this working, but the problem is that playlist-next always happens after changing video-pan-y (or other settings like video-zoom), which is disorienting.

Basic example with this in input.conf

ctrl+a no-osd add video-pan-y -0.1
ctrl+SPACE playlist-next; no-osd set video-pan-y 0

Open a directory with mpv that just contains images and pause playback. Press ctrl+a a few times and then press ctrl+SPACE.

Expected behavior

Mpv goes to the next image and then sets video-pan-y to 0.

Actual behavior

Mpv sets video-pan-y to 0 for the current image before going to the next image, causing flashing/flickering. This seems to be a lot more noticeable if I have a lot of scripts in the scripts directory (i.e. longer delay between pan and playlist-next), but it is still noticeable without any.

I tried various ways in a script of getting this to work without success (e.g. separate mp.command or mp.set_property_number calls). It would be nice if there was some way to switch to the next image in a playlist and then afterwards change a setting like video-pan-y with a single keybinding.

Log file

out.txt

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the input.conf reproduction using playlist-next, video-pan-y, and the image-viewing setup described in the issue. Compare the behavior with and without scripts in the scripts directory. Done means a single keybinding can advance to the next image before applying the subsequent pan reset, without the reported flicker.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.