Skip to content

Instantly share code, notes, and snippets.

@tsl0922
Created August 12, 2026 03:08
Show Gist options
  • Select an option

  • Save tsl0922/d1aabd1152fe1a058f2919af6eb8e9dc to your computer and use it in GitHub Desktop.

Select an option

Save tsl0922/d1aabd1152fe1a058f2919af6eb8e9dc to your computer and use it in GitHub Desktop.
mpv-menu-plugin's input.conf example translated to mpv's new menu.conf format
Open
Files... script-message-to dialog open
Folder... script-message-to dialog open-folder
Add To Playlist... script-message-to dialog open append
Bluray ISO... script-message-to dialog open bd-iso
DVD ISO... script-message-to dialog open dvd-iso
Clipboard script-message-to dialog open-clipboard
Play cycle pause hidden=not idle_active and not pause disabled=idle_active
Pause cycle pause hidden=idle_active or pause
Stop stop disabled=idle_active
Navigate
Next File playlist-next
Previous File playlist-prev
Next Chapter add chapter 1
Previous Chapter add chapter -1
Jump Next Frame frame-step
Jump Previous Frame frame-back-step
Jump 5 sec forward seek 5
Jump 5 sec backward seek -5
Jump 30 sec forward seek 30
Jump 30 sec backward seek -30
Jump 5 min forward seek 300
Jump 5 min backward seek -300
Chapters $chapters
Tracks $tracks
Editions $editions
Playlist $playlist
Video
Tracks $video-tracks
Add Tracks... script-message-to dialog open add-video disabled=idle_active
Decrease Contrast add contrast -1
Increase Contrast add contrast 1
Decrease Brightness add brightness -1
Increase Brightness add brightness 1
Decrease Gamma add gamma -1
Increase Gamma add gamma 1
Decrease Saturation add saturation -1
Increase Saturation add saturation 1
Take Screenshot async screenshot disabled=not tonumber(vid)
Take Screenshot (without subtitles) async screenshot video disabled=not tonumber(vid)
Aspect Ratio
16:9 set video-aspect-override 16:9
4:3 set video-aspect-override 4:3
2.35:1 set video-aspect-override 2.35:1
Reset set video-aspect-override -1
Rotate Video cycle-values video-rotate 90 180 270 0
Toggle Deband cycle deband checked=deband
Toggle Deinterlace cycle deinterlace checked=deinterlace
Toggle Auto ICC Profile cycle icc-profile-auto checked=icc_profile_auto
Audio
Tracks $audio-tracks
Add Tracks... script-message-to dialog open add-audio disabled=idle_active
Delay +0.1 add audio-delay 0.1
Delay -0.1 add audio-delay -0.1
Devices $audio-devices
Subtitle
Main Subtitle $sub-tracks
Main Subtitle Options
Visibility cycle sub-visibility checked=sub_visibility
Delay -0.1 add sub-delay -0.1
Delay +0.1 add sub-delay 0.1
Move Up add sub-pos -1
Move Down add sub-pos +1
Secondary Subtitle $secondary-sub-tracks
Secondary Subtitle Options
Visibility cycle secondary-sub-visibility checked=secondary_sub_visibility
Delay -0.1 add secondary-sub-delay -0.1
Delay +0.1 add secondary-sub-delay 0.1
Move Up add secondary-sub-pos -1
Move Down add secondary-sub-pos +1
Add Tracks... script-message-to dialog open add-sub disabled=idle_active
Decrease Subtitle Font Size add sub-scale -0.1
Increase Subtitle Font Size add sub-scale 0.1
Pan & Scan
Increase Size add video-zoom 0.1
Decrease Size add video-zoom -0.1
Move Left add video-pan-x -0.01
Move Right add video-pan-x 0.01
Move Up add video-pan-y -0.01
Move Down add video-pan-y 0.01
Decrease Height add panscan -0.1
Increase Height add panscan 0.1
Reset set video-zoom 0; set video-pan-x 0; set video-pan-y 0
Speed
-10% multiply speed 1/1.1
+10% multiply speed 1.1
Half multiply speed 0.5
Double multiply speed 2.0
0.5x set speed 0.5
0.75x set speed 0.75
1.0x set speed 1.0
1.25x set speed 1.25
1.5x set speed 1.5
2.0x set speed 2.0
Reset set speed 1
Volume
Up add volume 2
Down add volume -2
Mute cycle mute checked=mute
View
Zoom
Enlarge add window-scale 0.1
Shrink add window-scale -0.1
50% set window-scale 0.5
100% set window-scale 1.0
200% set window-scale 2.0
300% set window-scale 3.0
Toggle Statistics script-binding stats/display-stats-toggle
Toggle Time OSD no-osd cycle-values osd-level 3 1
Toggle OSC Visibility script-binding osc/visibility
Show Progress show-progress
Show Console script-binding console/enable
Window
Fullscreen cycle fullscreen checked=fullscreen
Take Screenshot screenshot window disabled=not tonumber(vid)
Export Screenshot File script-message-to dialog save screenshot disabled=not tonumber(vid)
Toggle Border cycle border checked=border
Toggle On Top cycle ontop checked=ontop
Tools
Copy File Path script-message-to dialog set-clipboard ${path}
Copy Metadata script-message-to dialog set-clipboard ${metadata}
Shuffle Playlist playlist-shuffle
Export Playlist script-message-to dialog save playlist
Set/clear A-B loop points ab-loop
Toggle infinite file looping cycle-values loop-file inf no
Toggle Hardware Decoding cycle-values hwdec auto no
Profiles $profiles
Exit Watch Later quit-watch-later
Exit quit
打开
文件... script-message-to dialog open
文件夹... script-message-to dialog open-folder
添加到播放列表... script-message-to dialog open append
蓝光 ISO... script-message-to dialog open bd-iso
DVD ISO... script-message-to dialog open dvd-iso
剪贴板 script-message-to dialog open-clipboard
播放 cycle pause hidden=not idle_active and not pause disabled=idle_active
暂停 cycle pause hidden=idle_active or pause
停止 stop disabled=idle_active
导航
下个文件 playlist-next
上个文件 playlist-prev
下一章节 add chapter 1
上一章节 add chapter -1
下一帧 frame-step
上一帧 frame-back-step
前进 5 秒 seek 5
后退 5 秒 seek -5
前进 30 秒 seek 30
后退 30 秒 seek -30
前进 5 分钟 seek 300
后退 5 分钟 seek -300
轨道 $tracks
章节 $chapters
版本 $editions
播放列表 $playlist
视频
切换轨道 $video-tracks
加载文件... script-message-to dialog open add-video disabled=idle_active
调色
对比度 -1 add contrast -1
对比度 +1 add contrast 1
亮度 -1 add brightness -1
亮度 +1 add brightness 1
伽马 -1 add gamma -1
伽马 +1 add gamma 1
饱和度 -1 add saturation -1
饱和度 +1 add saturation 1
色调 -1 add hue -1
色调 +1 add hue 1
重置 set contrast 0; set brightness 0; set gamma 0; set saturation 0; set hue 0
自动 ICC 配置 cycle icc-profile-auto checked=icc_profile_auto
旋转 cycle-values video-rotate 90 180 270 0
缩放
缩小 -1% add video-zoom -0.1
放大 +1% add video-zoom 0.1
帧位
左移 add video-pan-x -0.01
右移 add video-pan-x 0.01
上移 add video-pan-y -0.01
下移 add video-pan-y 0.01
重置 set video-zoom 0; set video-pan-x 0; set video-pan-y 0
比例
16:9 set video-aspect-override 16:9
4:3 set video-aspect-override 4:3
2.35:1 set video-aspect-override 2.35:1
自动 set video-aspect-override -1
去黑边 - add panscan -0.1
去黑边 + add panscan 0.1
去色带 cycle deband checked=deband
反交错 cycle deinterlace checked=deinterlace
截屏 async screenshot disabled=not tonumber(vid)
截屏(不包含字幕) async screenshot video disabled=not tonumber(vid)
音频
切换轨道 $audio-tracks
加载文件... script-message-to dialog open add-audio disabled=idle_active
输出设备 $audio-devices
延迟 +0.1 add audio-delay 0.1
延迟 -0.1 add audio-delay -0.1
字幕
主字幕 $sub-tracks
主字幕选项
可见性 cycle sub-visibility checked=sub_visibility
延迟 -0.1 add sub-delay -0.1
延迟 +0.1 add sub-delay 0.1
上移 add sub-pos -1
下移 add sub-pos +1
次字幕 $secondary-sub-tracks
次字幕选项
可见性 cycle secondary-sub-visibility checked=secondary_sub_visibility
延迟 -0.1 add secondary-sub-delay -0.1
延迟 +0.1 add secondary-sub-delay 0.1
上移 add secondary-sub-pos -1
下移 add secondary-sub-pos +1
加载文件... script-message-to dialog open add-sub disabled=idle_active
减少字体大小 add sub-scale -0.1
增加字体大小 add sub-scale 0.1
音量
增加 add volume 2
降低 add volume -2
静音 cycle mute checked=mute
速度
10% multiply speed 1/1.1
+10% multiply speed 1.1
减半 multiply speed 0.5
翻倍 multiply speed 2.0
0.5 倍 set speed 0.5
0.75 倍 set speed 0.75
1.0 倍 set speed 1.0
1.25 倍 set speed 1.25
1.5 倍 set speed 1.5
2.0 倍 set speed 2.0
重置 set speed 1
查看
缩放
放大 add window-scale 0.1
缩小 add window-scale -0.1
50 % set window-scale 0.5
100 % set window-scale 1.0
200 % set window-scale 2.0
300 % set window-scale 3.0
切换 OSC 可见性 script-binding osc/visibility
显示 OSD 时间轴 no-osd cycle-values osd-level 3 1
显示进度 show-progress
显示统计信息 script-binding stats/display-stats-toggle
显示控制台 script-binding console/enable
显示调试窗口 script-message-to debug show
窗口
全屏 cycle fullscreen checked=fullscreen
截屏 screenshot window disabled=not tonumber(vid)
截屏(导出文件) script-message-to dialog save screenshot disabled=not tonumber(vid)
边框 cycle border checked=border
置顶 cycle ontop checked=ontop
工具
复制文件路径 script-message-to dialog set-clipboard ${path}
复制视频元数据 script-message-to dialog set-clipboard ${metadata}
打乱播放列表 playlist-shuffle
导出播放列表 script-message-to dialog save playlist
设置/清除 A-B 循环点 ab-loop
切换循环播放 cycle-values loop-file inf no
切换硬件解码 cycle-values hwdec auto no
配置文件 $profiles
退出(稍后观看) quit-watch-later
退出 quit
@candrapersada

candrapersada commented Aug 12, 2026

Copy link
Copy Markdown

Is there support for "open-clipboard-to-playlist"?

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