zxhzxhz / mpv-chapters Goto Github PK
View Code? Open in Web Editor NEWdisplay chapter on osd and easily switch between chapters by clicking on title of chapter
License: MIT License
display chapter on osd and easily switch between chapters by clicking on title of chapter
License: MIT License
Is there a way to bind keys to go to the next and previous chapters ?
Using "mpv-chapters" = No issues.
Using "mpv-chapters" + "mpv_sponsorblock" = Mismatch chapters on "mpv-chapters".
"mpv_sponsorblock" = mpv script to skip sponsored segments of YouTube videos.
"mpv_sponsorblock" creates more chapters that interfere with "mpv-chapters".
Example of the issue:
This YouTube Video:
Selecting chapter "Weapon Drills" will result jump to chapter "RTX 2060".
Hello, Apologies in advance about my English.
I would like to thank you for the plugin, I'm enjoying it, but I'd like to request an improvement, this plugin apparently doesn't load a conf file to change the default font color, etc... I didn't read the mpv documentation but I figured out that there has to be a similar function to lua, so I added the following line of code and it worked.
mp.options.read_options(options,"mpv_chapters");
I would also like an option to change the position of the chapter list, so I did something similar I added a couple of variables to de "options" object:
var options = { font_size: 16, font_color: "00FFFF", border_size: 1.0, border_color: "000000", font_color_currentChapter: "C27F1B", resX:0, resY:0, }; ... function drawChapterList() { var resY = options.resY; var resX = options.resX; ... //This last one cause, it didn't feel good for me after change it... function pos2chapter(x, y, overallscale) { var vectical = (y-options.resY) / (options.font_size * overallscale);
I didn't test but I hope it could help with an improvement.
Hi, thanks for your plugin. Pressing TAB shows the chapter menu normally, but it doesn't register my mouse clicks.
I'm using Linux Mint 21.1 and mpv 0.34.1
Hi,
I just installed mpv-chapters
and I'm getting this error:
$ mpv rendered.mp4
convert_script: The 'tick' event is deprecated and will be removed.
cplayer: Resuming playback. This behavior can be disabled with --no-resume-playback.
cplayer: (+) Video --vid=1 (*) (h264 1280x720 23.976fps)
cplayer: (+) Audio --aid=1 (*) (aac 2ch 48000Hz)
display-tags: File tags:
display-tags: Title: rendition
cplayer: AO: [alsa] 48000Hz stereo 2ch float
mpv_chapters: TypeError: cannot create property 'data' on transient object
mpv_chapters: at /home/user/.config/mpv/scripts/mpv_chapters.js:103
mpv_chapters: at Array.prototype.forEach (native)
mpv_chapters: at drawChapterList (/home/user/.config/mpv/scripts/mpv_chapters.js:94)
mpv_chapters: at init (/home/user/.config/mpv/scripts/mpv_chapters.js:33)
mpv_chapters: at dispatch_event (@/defaults.js:52)
mpv_chapters: at mp_event_loop (@/defaults.js:750)
mpv_chapters: at run_script (native)
mpv_chapters: Could not load javascript /home/user/.config/mpv/scripts/mpv_chapters.js
cplayer: VO: [gpu] 1280x720 yuv420p
statusline: (Paused) AV: 00:00:01 / 03:04:00 (0%) A-V: 0.000
[+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------]
cplayer: Saving state.
cplayer:
cplayer: Exiting... (Quit)
I'm running Linux and mpv
is freshly compiled and it includes JavaScript support:
$ uname -a
Linux forethought 5.12.15-arch1-1 #1 SMP PREEMPT Wed, 07 Jul 2021 23:35:29 +0000 x86_64 GNU/Linux
$ mpv
cplayer: mpv 0.33.0-228-g1e90ec647c Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
cplayer: built on Fri Jul 16 23:06:10 EDT 2021
cplayer: FFmpeg library versions:
cplayer: libavutil 56.70.100
cplayer: libavcodec 58.134.100
cplayer: libavformat 58.76.100
cplayer: libswscale 5.9.100
cplayer: libavfilter 7.110.100
cplayer: libswresample 3.9.100
cplayer: FFmpeg version: n4.4
$ mpv -v | grep javascript
[cplayer] List of enabled features: 52arch alsa asm build-date caca cplayer cplugins debug-build drm dvbin egl egl-drm egl-helpers egl-x11 ffmpeg gbm gbm.h gl gl-wayland glibc-thread-name glob glob-posix gpl iconv jack javascript jpeg lcms2 libarchive libass libavdevice libbluray libdl libm libmpv-shared libplacebo librt linux-fstatfs linux-input-event-codes lua memfd_create optimize plain-gl posix posix-or-mingw pthreads pulse rubberband shaderc shaderc-shared stdatomic uchardet vaapi vaapi-drm vaapi-egl vaapi-vulkan vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vector vt.h vulkan wayland wayland-protocols x11 xv zimg zlib
When I press Tab
, I don't see chapters. Any idea what could be wrong? Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.