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

input.conf setting issue #651

Open
maru7777 opened this issue Jan 25, 2024 · 7 comments
Open

input.conf setting issue #651

maru7777 opened this issue Jan 25, 2024 · 7 comments

Comments

@maru7777
Copy link

Describe the bug
mpv.net v6.0.3.5 and latest mpv.net
i try to setLEFT to "seek 2" ,insdead of "seek 5",what i expect is in can go back 2 second before current, but when i reopen mpv/restart the OS, and then press LEFT again, i still get a 5 second shifting,not 2 second.
so the setting can't take effect

To Reproduce
when i reproduce, try the last beta version using the CLI option --config=no.i found now it forward/backford for 10 s,however my setting is 5 s. i can't restore my defautl settings

In case of an audio or video issue, try to reproduce the issue using mpv instead of mpv.net.
If it can be reproduced with mpv, use the mpv issue tracker.

Steps to reproduce the behavior:

  1. Go to 'tools'
  2. Click on 'custmoize shorcut'
  3. search "seek",then modify LEFT and RIGHT's content: seek 5 to seek 2 ,seek -5 to seek -2
  4. Save and exit then reopen to check if it has been modified. however...

Expected behavior
the setting should be changed but it does noe happen

Additional context
Add any other context about the problem here.
mpv.net v6.0.3.5 and latest mpv.net
22h2
2060

@stax76
Copy link
Collaborator

stax76 commented Jan 25, 2024

Which mpv.net version did you use? You should use the latest version, that is v7.1.0.0.

@zhouxinghong
Copy link

+1

@stax76
Copy link
Collaborator

stax76 commented Jan 27, 2024

The input editor has limitations that are difficult to overcome, it can be necessary to edit the input.conf file manually.

@maru7777
Copy link
Author

maru7777 commented Jan 28, 2024

The input editor has limitations that are difficult to overcome, it can be necessary to edit the input.conf file manually.

i tried edit either input.conf or mpv.conf manually ,it still don't work.
i used to using v6.0.3.5 ,which has this issue.in this version,after modify it,you can see your change in both input.conf file and UI setting,but the new settings don't take effect
and then i download the latest version,it still have same issuse:you even can't see any change in UI setting after i modified something,like changing "seek 5" to "seek 2",always "seek 5",no matter how i change it.
so i modify the .conf file on both v6.0.3.5 and the latest version ,but still failed
do you have this kind of issue
btw, my installation path is a normal previllege path ,which is C:/users/**/Appdata/local

@stax76
Copy link
Collaborator

stax76 commented Jan 29, 2024

You might have defined the same key twice or even more often. In that case, only the last definition will be active. Just avoid defining anything twice or more often, and you will be good.

@KaranKad
Copy link
Contributor

I can confirm this behavior, when I upgraded from version 6.0.4.0 to 7.1.1.0, I created my configs from scratch. For input config, I created it using input editor from context menu.
This is what my input.conf looks like

PGUP        playlist-prev                 # Navigate > Previous File
PGDWN       playlist-next                 # Navigate > Next File
Up          add chapter 1                 # Navigate > Next Chapter
Down        add chapter -1                # Navigate > Previous Chapter
Alt+Right   seek 30                       # Navigate > Jump 30 sec forward
Alt+Left    seek -30                      # Navigate > Jump 30 sec backward
Ctrl+KP6    add video-pan-x -0.01         # Pan & Scan > Move Left
Ctrl+KP4    add video-pan-x 0.01          # Pan & Scan > Move Right
Ctrl+KP2    add video-pan-y -0.01         # Pan & Scan > Move Up
Ctrl+KP8    add video-pan-y 0.01          # Pan & Scan > Move Down
S           async screenshot              # Video > Take Screenshot
Alt+s       async screenshot video        # Video > Take Screenshot without subtitles
s           cycle sub-visibility          # Subtitle > Toggle Visibility
p           script-binding stats/display-stats-toggle  # View > Toggle Statistics
t           show-progress                 # View > Show Progress
C           script-message-to mpvnet show-commands  # View > More > Show Commands
P           script-message-to mpvnet show-properties  # View > More > Show Properties
Right       seek 2                        # Navigate > Jump 2 sec forward
Left        seek -2                       # Navigate > Jump 2 sec backward
Ctrl+Right  seek 10                       # Navigate > Jump 10 sec forward
Ctrl+Left   seek -10                      # Navigate > Jump 10 sec backward

The only ones which do not work are.

Right       seek 2                        # Navigate > Jump 2 sec forward
Left        seek -2                       # Navigate > Jump 2 sec backward
Ctrl+Right  seek 10                       # Navigate > Jump 10 sec forward
Ctrl+Left   seek -10                      # Navigate > Jump 10 sec backward

This is how my input editor screen looks for respective settings.
image

However, if I use my old input config file from version 6.0.4.0 on version 7.1.1.0 it works fine but I get the old arrangement of context menu.

Old input config


# https://github.com/mpvnet-player/mpv.net/blob/master/docs/manual.md#input-and-context-menu

o          script-message-to mpvnet open-files #menu: Open > Open Files...
CTRL+v     script-message-to mpvnet open-clipboard #menu: Open > Open URL or file from clipboard
_          script-message-to mpvnet open-optical-media #menu: Open > Open DVD/Blu-ray Drive/Folder...
_          ignore                        #menu: Open > -
Alt+a      script-message-to mpvnet load-audio #menu: Open > Load external audio files...
Alt+s      script-message-to mpvnet load-sub #menu: Open > Load external subtitle files...
_          ignore                        #menu: Open > -
_          script-message-to mpvnet open-files append #menu: Open > Add files to playlist...
_          ignore                        #menu: Open > -
_          ignore                        #menu: Open > Recent
_          ignore                        #menu: -
Space      script-message-to mpvnet play-pause #menu: Play/Pause
_          stop                          #menu: Stop
_          ignore                        #menu: -
Enter      cycle fullscreen              #menu: Toggle Fullscreen
PGUP       script-message-to mpvnet playlist-add -1 #menu: Navigate > Previous File
PGDWN      script-message-to mpvnet playlist-add  1 #menu: Navigate > Next File
_          ignore                        #menu: Navigate > -
Home       script-message-to mpvnet playlist-first #menu: Navigate > First File
End        script-message-to mpvnet playlist-last #menu: Navigate > Last File
_          ignore                        #menu: Navigate > -
UP         add chapter  1                #menu: Navigate > Next Chapter
DOWN       add chapter -1                #menu: Navigate > Previous Chapter
_          ignore                        #menu: Navigate > -
.          frame-step                    #menu: Navigate > Jump Next Frame
,          frame-back-step               #menu: Navigate > Jump Previous Frame
_          ignore                        #menu: Navigate > -
Right      seek  2                       #menu: Navigate > Jump 2 sec forward
Left       seek -2                       #menu: Navigate > Jump 2 sec backward
_          ignore                        #menu: Navigate > -
CTRL+RIGHT seek  10                      #menu: Navigate > Jump 10 sec forward
CTRL+LEFT  seek -10                      #menu: Navigate > Jump 10 sec backward
_          ignore                        #menu: Navigate > -
ALT+RIGHT  seek  30                      #menu: Navigate > Jump 30 sec forward
ALT+LEFT   seek -30                      #menu: Navigate > Jump 30 sec backward
_          ignore                        #menu: Navigate > -
_          ignore                        #menu: Navigate > Titles
_          ignore                        #menu: Navigate > Chapters
Ctrl++     add video-zoom  0.1           #menu: Pan & Scan > Increase Size
Ctrl+-     add video-zoom -0.1           #menu: Pan & Scan > Decrease Size
_          ignore                        #menu: Pan & Scan > -
CTRL+KP6   add video-pan-x -0.01         #menu: Pan & Scan > Move Left
CTRL+KP4   add video-pan-x  0.01         #menu: Pan & Scan > Move Right
_          ignore                        #menu: Pan & Scan > -
CTRL+KP2   add video-pan-y -0.01         #menu: Pan & Scan > Move Up
CTRL+KP8   add video-pan-y  0.01         #menu: Pan & Scan > Move Down
_          ignore                        #menu: Pan & Scan > -
w          add panscan -0.1              #menu: Pan & Scan > Decrease Height
W          add panscan  0.1              #menu: Pan & Scan > Increase Height
_          ignore                        #menu: Pan & Scan > -
Ctrl+BS    set video-zoom 0; set video-pan-x 0; set video-pan-y 0 #menu: Pan & Scan > Reset
Ctrl+1     add contrast -1               #menu: Video > Decrease Contrast
Ctrl+2     add contrast  1               #menu: Video > Increase Contrast
_          ignore                        #menu: Video > -
Ctrl+3     add brightness -1             #menu: Video > Decrease Brightness
Ctrl+4     add brightness  1             #menu: Video > Increase Brightness
_          ignore                        #menu: Video > -
Ctrl+5     add gamma -1                  #menu: Video > Decrease Gamma
Ctrl+6     add gamma  1                  #menu: Video > Increase Gamma
_          ignore                        #menu: Video > -
Ctrl+7     add saturation -1             #menu: Video > Decrease Saturation
Ctrl+8     add saturation  1             #menu: Video > Increase Saturation
_          ignore                        #menu: Video > -
S          async screenshot              #menu: Video > Take Screenshot
d          cycle deinterlace             #menu: Video > Toggle Deinterlace
a          cycle-values video-aspect-override 16:9 4:3 2.35:1 -1 #menu: Video > Cycle Aspect Ratio
Ctrl+r     cycle-values video-rotate 90 180 270 0 #menu: Video > Rotate Video
CTRL+a     script-message-to mpvnet cycle-audio #menu: Audio > Cycle/Next
_          ignore                        #menu: Audio > -
Ctrl+d     add audio-delay  0.1          #menu: Audio > Delay +0.1
Ctrl+D     add audio-delay -0.1          #menu: Audio > Delay -0.1
CTRL+s     cycle sub                     #menu: Subtitle > Cycle/Next
s          cycle sub-visibility          #menu: Subtitle > Toggle Visibility
_          ignore                        #menu: Subtitle > -
z          add sub-delay -0.1            #menu: Subtitle > Delay -0.1
Z          add sub-delay  0.1            #menu: Subtitle > Delay +0.1
_          ignore                        #menu: Subtitle > -
r          add sub-pos -1                #menu: Subtitle > Move Up
R          add sub-pos +1                #menu: Subtitle > Move Down
_          ignore                        #menu: Subtitle > -
F          add sub-scale -0.1            #menu: Subtitle > Decrease Subtitle Font Size
G          add sub-scale  0.1            #menu: Subtitle > Increase Subtitle Font Size
_          ignore                        #menu: Track
+          add volume  2                 #menu: Volume > Up
-          add volume -2                 #menu: Volume > Down
0          add volume  2                 #menu: Volume > Up
9          add volume -2                 #menu: Volume > Down
_          ignore                        #menu: Volume > -
m          cycle mute                    #menu: Volume > Mute
[          multiply speed 1/1.1          #menu: Speed > -10%
]          multiply speed 1.1            #menu: Speed > +10%
_          ignore                        #menu: Speed > -
{          multiply speed 0.5            #menu: Speed > Half
}          multiply speed 2.0            #menu: Speed > Double
_          ignore                        #menu: Speed > -
BS         set speed 1                   #menu: Speed > Reset
Alt++      script-message-to mpvnet scale-window 1.2 #menu: View > Zoom > Enlarge
Alt+-      script-message-to mpvnet scale-window 0.8 #menu: View > Zoom > Shrink
_          ignore                        #menu: View > Zoom > -
Alt+0      script-message-to mpvnet window-scale 0.5 #menu: View > Zoom > 50 %
Alt+1      script-message-to mpvnet window-scale 1.0 #menu: View > Zoom > 100 %
Alt+2      script-message-to mpvnet window-scale 2.0 #menu: View > Zoom > 200 %
Alt+3      script-message-to mpvnet window-scale 3.0 #menu: View > Zoom > 300 %
F8         script-message-to mpvnet show-playlist #menu: View > Show Playlist
Ctrl+p     script-message-to mpvnet select-profile #menu: View > Show Profile Selection
Ctrl+P     script-message-to mpvnet show-profiles #menu: View > Show Profiles
Ctrl+7     script-message-to mpvnet show-audio-tracks #menu: View > Show Audio Tracks
Ctrl+8     script-message-to mpvnet show-subtitle-tracks #menu: View > Show Subtitle Tracks
Ctrl+c     script-message-to mpvnet show-chapters #menu: View > Show Chapters
b          cycle border                  #menu: View > Toggle Border
Ctrl+t     cycle ontop                   #menu: View > Toggle On Top
p          script-binding stats/display-stats-toggle #menu: View > Toggle Statistics
Del        script-binding osc/visibility #menu: View > Toggle OSC Visibility
i          script-message-to mpvnet show-info #menu: View > Show File/Stream Info
t          show-progress                 #menu: View > Show Progress
F9         script-message-to mpvnet show-media-info osd #menu: View > Show Tracks
I          script-message-to mpvnet show-media-info #menu: View > Show Media Info
Alt+r      script-message-to mpvnet show-recent #menu: View > Show Recent
`          script-binding console/enable #menu: View > Advanced > Show Console
_          script-message-to mpvnet show-audio-devices #menu: View > Advanced > Show Audio Devices
P          script-message-to mpvnet show-properties #menu: View > Advanced > Show Properties
C          script-message-to mpvnet show-commands #menu: View > Advanced > Show Commands
_          script-message-to mpvnet show-demuxers #menu: View > Advanced > Show Demuxers
_          script-message-to mpvnet show-decoders #menu: View > Advanced > Show Decoders
_          script-message-to mpvnet show-protocols #menu: View > Advanced > Show Protocols
_          script-message-to mpvnet show-keys #menu: View > Advanced > Show Keys
_          ignore                        #menu: Profile
c          script-message-to mpvnet show-conf-editor #menu: Settings > Show Config Editor
Ctrl+i     script-message-to mpvnet show-input-editor #menu: Settings > Show Input Editor
Ctrl+f     script-message-to mpvnet open-conf-folder #menu: Settings > Open Config Folder
_          script-message-to mpvnet reg-file-assoc video #menu: Settings > Setup > Register video file associations
_          script-message-to mpvnet reg-file-assoc audio #menu: Settings > Setup > Register audio file associations
_          script-message-to mpvnet reg-file-assoc image #menu: Settings > Setup > Register image file associations
_          script-message-to mpvnet reg-file-assoc unreg #menu: Settings > Setup > Unregister file associations
h          script-message-to mpvnet show-history #menu: Tools > Show History
l          ab-loop                       #menu: Tools > Set/clear A-B loop points
L          cycle-values loop-file inf no #menu: Tools > Toggle infinite file looping
_          playlist-shuffle              #menu: Tools > Shuffle Playlist
Ctrl+h     cycle-values hwdec auto no    #menu: Tools > Toggle Hardware Decoding
Q          quit-watch-later              #menu: Tools > Exit Watch Later
_          script-message-to mpvnet shell-execute https://mpv.io #menu: Help > Website mpv
_          script-message-to mpvnet shell-execute https://github.com/mpvnet-player/mpv.net #menu: Help > Website mpv.net
_          ignore                        #menu: Help > -
_          script-message-to mpvnet shell-execute https://mpv.io/manual/stable/ #menu: Help > Manual mpv
_          script-message-to mpvnet shell-execute https://github.com/mpvnet-player/mpv.net/blob/master/docs/manual.md #menu: Help > Manual mpv.net
_          ignore                        #menu: Help > -
_          script-message-to mpvnet show-about #menu: Help > About mpv.net
F1         script-message-to mpvnet show-command-palette #menu: Command Palette
_          ignore                        #menu: -
Esc        quit                          #menu: Exit
MBTN_Right script-message-to mpvnet show-menu
6          script-message-to mpvnet show-progress
KP6        script-message-to mpvnet show-progress
KP9        ab-loop
7          script-message-to mpvnet cycle-audio
Sharp      script-message-to mpvnet cycle-audio
Ctrl+F11   script-message-to mpvnet playlist-add -10
Ctrl+F12   script-message-to mpvnet playlist-add  10
Alt+q      script-message-to mpvnet quick-bookmark
8          cycle sub
j          cycle sub
q          quit
Power      quit
Play       cycle pause
Pause      cycle pause
PlayPause  cycle pause
MBTN_Mid   cycle pause
Stop       stop
Forward    seek  60
Rewind     seek -60
Wheel_Up   add volume  2
Wheel_Down add volume -2
Wheel_Left add volume -2
Wheel_Right add volume  2
Prev       playlist-prev
Next       playlist-next
MBTN_Forward playlist-next
MBTN_Back  playlist-prev
>          playlist-next
<          playlist-prev
MBTN_Left  ignore
f          cycle fullscreen
MBTN_Left_DBL cycle fullscreen
KP_Enter   cycle fullscreen
Shift+Right no-osd seek  1 exact
Shift+Left no-osd seek -1 exact
Shift+Up   no-osd seek  5 exact
Shift+Down no-osd seek -5 exact
Shift+BS   revert-seek      # undo the previous (or marked) seek
Shift+Ctrl+BS revert-seek mark # mark the position for revert-seek
Ctrl+Shift+Left no-osd sub-seek -1 # seek to the previous subtitle
Ctrl+Shift+Right no-osd sub-seek  1 # seek to the next subtitle
Ctrl+Wheel_Up no-osd seek  7
Ctrl+Wheel_Down no-osd seek -7

Above input config on input editor from version 7.1.1.0
image

@KaranKad
Copy link
Contributor

KaranKad commented Feb 12, 2024

For version 7.1.1.0 settings are duplicated in input editor

At top it has the default seek settings
image
At bottom it has edited seek settings
image

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

No branches or pull requests

4 participants