dyphire / mpv-scripts Goto Github PK
View Code? Open in Web Editor NEWuserscripts for mpv
License: MIT License
userscripts for mpv
License: MIT License
Hi, I want to install chapter-list.lua. as you mentioned it needs the scroll-list.lua.
I have the mpv-portable folder, I've created the
script-module and put the script in it, but nothing works.
Can you guide me step by step what to do?
Hi, I usually write down the chapter list in a text editor, as a <video>.<ext>.chp
file. Is it possible to manually refresh the chapter list while playing <video>
, reading from <video>.<ext>.chp
?
chapter-make-read.lua
into ~/.config/mpv/scripts/
chapter-make-read.lua
from ~/.config/mpv/scripts/
to ~/.config/mpv/scripts-off/
chapter-make-read.lua
back to ~/.config/mpv/scripts/
and move the video into a folder with no or only few sister files.video-filename.videoSuffix
the script looks for the existence of the sidecar file video-filename.videoSuffix.chp
Auto hide chapter list after x seconds of inactivity just like mpv's default chapter list.
chapter-list.conf to change font size, color, alignment, etc. Just like https://github.com/Eisa01/mpv-scripts/blob/master/script-opts/SimpleHistory.conf
mpv v0.35.1
https://www.youtube.com/watch?v=mtd6W4BEAbg
at 31 seconds, it is very clearly visible when I switch the video frames jump.
OR:
Show track numbering on the list, to make it more easy and intuitive to figure out what's the actual track ID.<TrackType> <TrackID>
when track has no name, just left it empty. I mean: I don't want to see tracks appearing like Audio 01
if the audio track has no name.I noticed that there is no comma between the language and the codec of the track, although other data is separated by a comma, my inner perfectionist is indignant.
is it still possible to add a path mapping to external files?
I wanted to ask if it is possible to change the colors of these elements? I didn't find the settings to change them
and what are these functions? [%cursor%/%total%]
does it look broken?
about fix-avsync.lua
the script works, but when you switch the track, the sound creaks, breaks for half a second, is it possible to fix it, for example, by silencing the track for 1 second between switching?
about open_dialog.lua
is it possible to make it so that by selecting an external track, it immediately becomes the default in the player?
that is, you closed the player and opened it, and your player opens without a sound track already, although in my opinion it should either remember the connected track through your script, or when launching, connect the last track before connecting with your script
but the script exposes just a video without sound
the video itself https://youtu.be/AkwSAhq8EPs
For mpv scripts, the most common tag is mpv-script
.
00:00:00.000 Largo (The sick man, near death)
00:05:24.000 Allegro molto agitato (The battle between life and death offers no respite to the man)
00:09:09.000 Meno mosso (The dying man's life passes before him)
00:17:09.000 Moderato (The sought-after transfiguration)
#Whether to enable automatic reading and loading external chapter files.Default: yes
autoload=yes
#Whether to enable the automatic export chapter file (when the chapter information is changed).default:no
autosave=no
#Whether to use external chapter information to cover the internal chapter information of the video.default:no
force_overwrite=no
#Specifies the extension of the external chapter file.
chapter_file_ext=.txt
#Select whether the external chapter file needs to match the extension of the source file.
basename_with_ext=no
#Specifies the subpath of the same directory as the playback file as the external chapter file path.
#Note: The external chapter file is read from the subdirectory first.
#If the file does not exist, it will next be read from the same directory as the playback file.
external_chapter_subpath=chapters
#Whether the chapter file is stored in the configuration global directory, the network file will always use the global directory.default:no
global_chapters=no
#Specify the path of the global directory of the chapter file.It can be the relative path or absolute path supported by MPV
global_chapters_dir=~~/chapters
#Whether to use the hash value to save the file name in the global directory.Default: no
## If you set to 'no', the chapter file will be named after the corresponding media documents, which may lead to conflict
## Using hash can prevent the same name, but in different directory media files to obtain the same chapter file
## But if you move the file to different directory, the hash value will be changed so that the chapter file cannot be loaded
hash=no
#ask for title or leave it empty
ask_for_title=yes
#placeholder when asking for title of a new chapter
placeholder_title=Chapter
#pause the playback when asking for chapter title
pause_on_input=yes
mpv Richard\ Strauss\ :\ Tod\ und\ Verklärung\ \(Mort\ et\ Transfiguration\)\ \(Mikko\ Franck\ ⧸\ OpRF\).00-25-43.2018-12-27.umfttWN5xYo.webm -v --log-file=./log
video.mp4 # Video file
video.chp # Chapter file, language neutral
video.mp4.chp # Chapter file, language neutral, video suffix included
video.chi.chp # Chinese chapter file, 3-letter code (ISO 639‑3),
video.en.chp # English chapter file, 2-letter code (ISO 639‑1)
video.spa.chp # Spanish chapter file, 3-letter code (ISO 639‑3)
video FR.chp # French chapter file, 2-letter code (ISO 639‑1) at the end of the file name without a dot
mpv
option --options-sub-auto--alang
(audio) , --vlang
(video), --slang
(subtitles), so you could introduce --clang
(chapters)--clang
is present it uses --slang
: If you can read the subtitles in that language, you can also read the chapters in that language.Thanks for the script.
It is easily and automatically imported.
I am just wondering how to manually import the chapter.chp file.
Can you guide me on this?
I have to repeat this twice for the most recently created chapter.
s script-message-to createchapter create_chapter; script-message-to chapter_make_read write_chapter
How to add a file title into the chapter file name, instead create_chapter.chp
?
I tried to paste some file paths I copied with Windows File Explorer context-menu, which comes in quotes, and the file fails to open; and yet more, this error makes the entire script to completely stop to work.
Additionally, it would be good if the script printed osd messages about its actions ("Opening file...", "Loading URL...", etc), errors, etc.
Hy, I was wondering how can we modufy uosc script such that everything is shown when we move the cursor to any place on screen. Currently only things in relevantbarea as cursor only are shown
The first chapter is missing.
And needed to write the chapter name that doesn't save as I chose a name.
May be filename chapters.txt
could be supported if it exist in the same folder as the video.
chapter-make-read.lua
by moving it into ~/.config/mpv/scripts/
EVM.m4v
(49m 28s, no chapters in metadata)EVM.m4v.chp
(UTF-8, created with TextEdit)Result: Chapter loading ✅ works from very minimal but unrealistic chapter file ❌ but fails with realistic chapter file.
[A-Za-z ]
only, no punctuation whatsoever[A-Za-z ]
(ASCII only!) and several punctuation characters such as ' " , . : … • & / ( )
.txt
extension was only added to be accepted as an attachment on GithubEVM.m4v.chp
to act as the sidecar file to EVM.m4v.chp
what do I need to add so that an audio signal occurs at the end of the export? to play an audio file on a specific path in the system?
"E:\soft\eac3to\success.wav"
At present the info stays on screen for 5 seconds. I would prefer if a toggle keybind can be added.
.chp
extension.chp
extension
.SRT
, see mpv
option --options-sub-auto.chp
as the sole extension for this reason too.vid.mp4
+ vid.mp4.chp
+ vid.avi
+ vid.avi.chp
all matching uniquelyvid.chp
would be a sidecar file to both vid.mp4
and vid.avi
Either by having same name as video/audio file or inside .mks
?
Is it possible or not?
Hi,
I just found your script collection and tried to use chapter-make-read.lua.
Creating chapters and writing the file works, but when I close and restart mpv, the chapters file isn't imported. I assume it's because I don't have 'mp.msg', 'mp.utils', and "mp.options" which are listed as "required" in your script (unless they're mpv builtins).
However, I could not found any info if they are mpv builtins and if not where to get them.
I think that for users who are not very experienced with lua scripts, it would be helpful to add a little bit of explanation in the README.
Thanks, Markus
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.