Releases: TinosNitso/mpv-scripts
mpv-scripts-v1.5.7
Example installation: In Windows after extraction to smplayer-portable
folder, enter --script=.
in its Advanced Preferences (mpv Options). Edit main.lua in a text editor to determine which scripts load, etc. See README for description, installation, app versions, script-commands & terminal commands.
Updates:
- Added script-message & function
show
to all scripts. - Added script-message & function
set
to all scripts. - Added script-message & function
exit
to all scripts. - Added
script-message print
to all scripts. - Added functions
callstring
,pprint
&pexpand_to_string
to all scripts. More rigorous codes. More elegant options. - Added
function is_filter_present
to aspeed, autocrop & automask. - Added nil script-bindings for all toggles.
- autocrop: Added
o.auto_aspect
,o.auto_delay_aspect
,o.start_aspect_on
,o.gsubs_passes
,o.gsubs
&o.framerate
. Crop & aspect toggles now separated. Randomizes aspect at 1Hz. The gsubs are for auto_aspect. Bugfix for negative detections (h<0). Removedo.apply_min_ratio
. Added script-message & functionapply_framerate
which interpolates to 50fps. Improvedmeta_osd
. Removedtimers.apply_scale
. 9 examples include RANDOM_POWER; RANDOM_WALKER; CYCLE_min_max; CYCLE_HDTV_TV; RANDOM_N_FULLSCREEN; UP_AND_ACROSS; ACROSS_AND_DOWN; UP_LEFT_RIGHT_DOWN; & LINEAR_DISTRIBUTION. - automask:
o.res_safety
lowered by 1. Addedeq=enable=0:...
&convolution=enable=0:...
too.filterchain
(mask can increase contrast). Removedtimers.apply_eq
. - autocomplex: Added
o.freqs_samplerate
& "GREEN_BLUE;" example. Setting 4200 Hz makes each baton worth 200Hz. - aspeed: Added
o.suppress_script_opts
. Added "RANDOM_SPEED;"o.speed
example. rotate
&zoompan
now opt-in (autocomplex & automask). These null-ops can reduce performance.
Errors
o.framerate
should benil
, especially in mpv-v0.39 (dodgy filter).o.auto_aspect
should be centered on${video-params/aspect}
, so that the median aspect is true. Thin videos are widened too much with the current formula.- The double/dual trumpets below are timed wrong. 🙁
o.limits
media-titles have many typos.- Subtitles are numbered wrong (
sub-create-cc-track
should beno
). - Auto-loop isn't looping properly, like on YouTube. Filters are needed.
- mpv-0.39 & FFmpeg-v7 are compatible if
o.framerate=nil
, but log errors. More error fishing is needed to clean up the logs. mpv-v0.34→0.39 & FFmpeg-v4→v7 are compatible. 🙂
SHA-256 E67835FBC10775C3EEC3111FBBF46E61B1B1BAD1B43C956A61DA9DE606FBAF0C
Now also available on BSV, here!
mpv-scripts-v1.5.6
Example installation: In Windows after extraction to smplayer-portable
folder, enter --script=.
in its Advanced Preferences (mpv Options). Edit main.lua in a text editor to determine which scripts load, etc. See README for description, installation, app versions, script-commands & terminal commands.
Updates:
- Added
o.android
,o.windows
,o.linux
&o.darwin
platform overrides to all scripts. Smartphones work better with different options, like binacles. - Added
o.toggle_command
to all scripts except main. Toggles can activate arbitrary command. Replaceso.osd_on_toggle
for automask & autocomplex. - Added
o.double_aid_timeout
to aspeed, autocrop & automask. Double-aid is similar to double-mute, due to Android (laggy trigger). A newplayback_restarted
timer blocks all double-tap timers from misfiring. - Added
o.double_sid_timeout
to all scripts except main. Best smartphone toggle mechanism.sub-create-cc-track
is artificially added. - Added
o.msg_level
to main & autocrop. - Added
o.script_opts
to main.lua, forosc-
settings. Also Improvedytdl_path
code. - Added
function gp
(Get Property) to all scripts. All script-opt types now well-defined. - Added
function cleanup()
to all scripts. - Added
function typecast
to all scripts. - Added
function event_handler
to all scripts except main. - Added remove_filter/s functions to aspeed, autocrop & automask.
- Added
function re_pause()
to autocrop/automask. - Added script-messages to all scripts, to control them via console/GUI. Every control comes with native type-casting, & an example.
- Improved
script-binding
names for all scripts but main. android-surface-area
W,H computation for automask, autocrop & autocomplex. Binacles are perfect circles on smartphone! Improved examples take portrait/landscape into account.- Graphs all reload on change in display-width/height (canvas size).
- Removed
\\,
from all graphs. More elegant codes. - All scripts now load even if file already loaded.
- autocrop.lua: Added
o.gsub
&function apply_limit
.o.limits
now searchesmedia-title
as well aspath
, subject too.gsub
(double-space=space, etc). Replacedo.pad_color
witho.pad_options
(x:y:color
). Improved JPEG reliability &o.meta_osd
. Removedfunction start_file
(seek
instead ofset start
). - automask.lua: Added
o.superperiods
to improve efficiency. Returnedo.fps
. Blue tinted lens (limited tint). New default: spinning pyramids. Added examplesSPINNING_SQUARES_DUAL
(opposing twirls) &HEAD_BANGING_MASK
(old default). Improved rotational padding. Bugfix for examples (I broke half of them in the last release). More examples which load fast. - aspeed.lua:
o.speed
now set every half-second in real-time, not film-time.--no-config
bugfix for standalone mpv. Removedo.clocks.no_locales
flag. Improved AbDays (more accurate, more lowercase). No-Armenian override for Android. Faster YouTube load by always loading path - then the controller blocks JPEG using ablock_path
switch. Enabledgraph
randomization @file-loaded. Improved feedback reliability by checkingsamplerate
. Resyncon_toggle
. Improved event-handling. - autocomplex.lua: Simpler default with no dual (increased
o.freqs_fps
). Bugfix foraid
off/on. It toggles off & on with only one aid-click. Bugfix for changingvo
(must insta-stop). - autocrop/automask: Bugfix for starting stutter.
insta_pause
removed fromstart-file
, so can pause during YouTube load.
SHA256: 1B3E9F69335B828272550925AFE8C9EE8C93C1BB14E4B267643F7E46311D98B8
mpv-scripts-v1.5.5
Example installation: In Windows after extraction to smplayer-portable
folder, enter --script=.
in its Advanced Preferences (mpv Options). Edit main.lua in a text editor to determine which scripts load, etc. See README for description, Installation, Safety Inspection, Terminal Commands & App versions.
Updates:
- main.lua/aspeed.lua: Added
o.options_android
, for Droid Sans Mono. All scripts working on Android except for aspeed.lua (no subprocesses & no Armenian).o.speed
works. But no YouTube. However autocomplex.lua is too slow on cheap smartphone. Automask isn't giving perfect circles without manual override. - Double-mute toggles valid on Android, using its audio-track selector button. Smartphone could also use better mechanism in future.
- aspeed.lua: Removed Irish. Longer & improved AbDays. Many lowercase for better symmetry. Improved child-feedback reliability. YouTube bugfix where it reloads, without JPEG ever loading (removed reload-blocking).
- autocrop.lua: Removed
o.msg_level
. - autocomplex.lua: Added
o.gsubs_passes
&o.gsubs
. Formulas now abbreviated. - autocomplex/automask: Added
(rand)
gsub for randomization @file-loaded. Enables unique positioning & mask on each load. Improved gsubs. Improved codes.
SHA256: 55CA5DE87982627AC1FF0CB8CA896FA37D343A686564C3FBDA2D643F23353E01
mpv-scripts-v1.5.4
Example installation: In Windows after extraction to smplayer-portable
folder, enter --script=.
in its Advanced Preferences (mpv Options). Edit main.lua in text editor to decide which scripts load, etc. See README for description, Installation, Safety Inspection, Terminal Commands & App versions.
Updates:
- aspeed.lua: Added
o.speed
,o.suppress_osd
&o.params
. Controller sets speed every half-second according to any formula containing any properties. Resolves issue #1. Improved script-opts, withaspeed-
prefix. Childrenkeep-open
due to a block on reloading. Also added feedback from first-child so that left channel doesn't cut out when seeking through long YouTube videos (line7=seeking). Now all players (the whole family) read from & can write to txtfile. Addedapply_astreamselect
function. Improved reliability & codes. - All options now well-defined & compulsory.
read_options
otherwise logs errors. - Renamed
o.dimensions
→o.video_out_params={par=1,w,h,pixelformat}
for autocrop.lua. automask similar.o.video_params
for autocomplex. But only autocrop (with padding) requires par (FFmpeg setsar). - autocrop & automask: Improved triggering (last release had lag). Improved track-change handling. All numbers needed @file-loaded - even if they're guesses.
- Added
o.osd_par_multiplier
to autocrop & automask, in case display-par is undetected. - automask.lua: Combined
o.n
&o.t
intoo.gsubs
(all gsubs in options). Addedo.gsubs_passes
since gsubs can depend on each other. Removedo.fps
& setsar=1.
SHA256: EEBD256584DD5EE38073F3AC2C0FE50E1664ED3ADF299FD4069E98E3B89A8E13
mpv-scripts-v1.5.3
Example installation: In Windows after extraction to smplayer-portable
folder, enter --script=.
in its Advanced Preferences (mpv Options). Edit main.lua in text editor to decide which scripts load, etc. See README for description, Installation, Safety Inspection, Terminal Commands & app versions.
Updates:
Bugfix for aspeed.lua excessive CPU usage, which ruined yesterday's release! Children must set vid no
not just set vo null
. Some improved codes.
SHA256: 5AEE80934573405364440A8A8CB74D2D86B39D68FC0211E2F170FE82E2B17C27
mpv-scripts-v1.5.2
Example installation: In Windows after extraction to smplayer-portable
folder, enter --script=.
in its Advanced Preferences (mpv Options).
See README for description, Installation, Safety Inspection, Terminal Commands & app versions. Edit main.lua in text editor to decide which scripts load, etc.
Updates:
- autocrop.lua: True aspect smooth-toggle now valid at all window sizes. (In MacOS mpv needs its own window.) When toggled off, maintains true aspect even as you resize or maximize SMPlayer/mpv! Replaced
o.msg_log
witho.msg_level
. Improved performance on MacOS (old FFmpeg). Smooth-pad even after seeking backwards! Replacedo.options_image
with justo.detect_min_ratio_image
. Improved JPEG timestamps (insta-loop). - automask.lua: Colors bugfix. Latest release failed at this. But now CPU consumption is higher! Also the mask fades in at @playback-restart.
o.mask_no_vid
bugfix, &convolution
can sharpen with variable percentage. - aspeed.lua: Proper AbDay centering using ' ' (LRM LRM). Removed
start_file()
. Added Chad, Sierra Leone & Gabon (26 clocks). property_handler
for all scripts. Improved codes.- main.lua: Proper expansion of
o.title
. Addedo.options_delay
. title waits for unpause if starting paused. - Image (PNG) transparency for autocomplex & automask.
- JPEG seek bugfix for autocrop & automask (reset STARTPTS). Rapid toggling when paused. Can toggle masks & padding as fast as touch typing!
- osd-font "COURIER NEW" MacOS compatible, unlike Consolas (proprietary)!
- autocomplex.lua: JPEG seeking bugfix. JPEG in playlist bugfix (next-track ON).
SHA256: 633322BDF216211D9D9036DEB19BC8A05F147540BB80D5042ACCF4464E3FDDC4
mpv-scripts-v1.5.1
See README for description, Installation, Safety Inspection, Terminal Commands & app versions. Edit main.lua in text editor to decide which scripts load, etc. Example installation: In Windows after extraction to smplayer-portable
folder, enter --script=.
in its Advanced Preferences (mpv Options).
Updates:
- aspeed: Centered all clock AbDays, using scaled fullwidth " ", which works on MacOS. Arabic code alignment using LRMs (Left to Right Marks) btwn AbDays. Removed
o.min_samples_time
(samples_time adjustment no longer used for MPV-v0.37+).o.extra_devices_index_list
now supports repetition. Rapid toggling bugfix. Improved AbDays: Mali is French, Irish length-4 & Spanish length-4. - autocrop: Pad filters last (after automask) using a delayed
vf append
command. Noinsta_unpause
when seeking paused. Also, force toggle to ignore TOLERANCE. - automask: Color bugfix (uv properly filtered using shuffleplanes). Combined
o.widths
&o.heights
intoo.scales
. Bugfix for reducedo.fps_mask
near end-file (trim_end interference could cause it to hang).
SHA256: 45696E94572B5AE440CA0F6368132996E7892BC328C227FE6A6A6484F586E939
mpv-scripts-v1.5.0
See README for description, Installation, Safety Inspection, Terminal Commands & app versions. Edit main.lua in text editor to decide which scripts load, etc. Example installation: In Windows after extraction to smplayer-portable
folder, enter --script=.
in its Advanced Preferences (mpv Options).
Updates:
- aspeed: Added 23 clock examples which cycle btwn each other, including French & Russian (vertical & horizontal tricolors). The abday of week is translated into Russian, Arabic, Armenian etc, depending on the colors. Combined
o.timeout
&o.timeout_pause
intoo.timeouts
. Addedo.options_subprocesses
(can load them with vid). Replacedo.clock
witho.clocks
, which includesduration
,offset
,no_locales
&DIRECTIVES_OVERRIDE
sub-options. Special " " for alignment. The OVERRIDE is a clear list of allos.date
format directives. Improved reliability: should close txtfile & start subprocesses paused. Named filter options. - automask has rapid smooth toggling. It uses a time-dependent equalizer with time-corrections. Also added a few more examples: PENTAGON_HOUSE, SQUARES_SPIN, TRIANGLE_SPIN & DIAMOND_EYES. Have added
o.fps_mask
to speed up load time for monacle & pentagon (only 2 frames are needed for on/off). Bugfix for FP (frames/period) being off-by-1 (must round, not take floor). - autocrop
start
(>0) &end
(<0) time limits implemented better. Addedo.keybinds_pad
for padding toggle,o.format
for transparent bars &o.pad_scale_flags
for bilinear down-scaling. Rapid pad-toggling now smooth, using pad_time corrections. Can now handle odd output dimensions, & smooth padding for raw JPEG. Replacedo.detector_image
,o.detect_limit_image
&o.detect_min_ratio_image
witho.options_image
. Combinedo.TOLERANCE
options, too. Pad-on or off state now preserved btwn tracks. Improved SMPlayer.app support (shared memory requires removing alpha). Padding nowvf append
so automask doesn't affect the black bars.o.meta_osd
now displays version info. - autocomplex: Combined
o.freqs_mode
,o.freqs_win_size
,o.freqs_win_func
&o.freqs_averaging
intoo.freqs_options
. Combinedo.volume_fade
&o.volume_dm
intoo.volume_options
. Combinedo.volume_highpass
&o.volume_dynaudnorm
intoo.volume_filterchain
. Combinedo.volume_width
&o.volume_height
intoo.volume_scale
options. Removedo.freqs_alpha
&o.gb
. Safe zoompan for shrunk primary. Improved codes & commentary. - loadstrings '1+1'→2 for all scripts, when needed. Improved codes.
- Added
o.toggle_expr
to autocrop & automask, for non-linear toggle transition. - Added
o.vf_command_t_delay
to autocrop & automask. A few frames aren't redrawn fast enough, so rapid smooth-toggling needs a .1s offset. osd-par
observations (&o.dimensions
override) for autocrop & automask, for displays with non-square pixels. autocrop also takes the source par into account. They also have terminal gaps for insta_unpause (bugfix for SMPlayer-v24.5).o.osd_on_toggle
&o.meta_osd
now gives LUA version. The same LUA code & version often breaks on MacOS.- main.lua replaced
o.sid
&o.clear_osd
witho.options_playback_start
. - clip function added to aspeed, autocrop & automask. Rapid toggling clips the remaining duration of prior toggle.
- SMPlayer-v24.5 .AppImage now supported. It uses FFmpeg-v4.2 - the oldest I've tested! New mpv is often built with old FFmpeg. It needs more rigorous codes, like extra bgra & gbrap formatting.
SHA256: AA99D6DE1717C1F07B1877FA40A83197C933EA76D32CBD12EF7449CA7E73DB84
mpv-scripts-v1.4.2
See README for description, Installation, Safety Inspection, Terminal Commands & app versions. Edit main.lua to decide which scripts load, etc. Example installation: In Windows after extraction to smplayer-portable
folder, enter --script=.
in its Advanced Preferences (mpv Options).
Updates:
- All scripts now support the newest mpv, versions 0.38.0 & 0.37.0. Rumble, Odyssey & RedTube also stream, like YouTube.
- autocrop & autocrop-smooth are now spacetime croppers! Support track list with start & end crop times, like sub-clips which remove credits. Added
o.pad_color
&o.crop_no_vid
. o.toggle_duration
added to autocrop, automask & autocrop-smooth. They now have smooth toggles using vf-command (sine wave progression)! autocrop has smooth padding. Addedo.mask_no_vid
.o.sid
added to main.lua for subtitle overrides.- Targeted vf-commands for autocrop, automask & aspeed. Backwards compatible. v0.38.0 needs even dimensions! autocrop & aspeed optimized by only performing commands or sets when needed.
- aspeed improved reliability & toggle. Observes samplerate (removed
o.samplerate
). Subprocesses start in--idle
mode (removedo.start
but trigger isn't perfect). Addedo.timeout_mute
. - autocomplex can now repeatedly change vid track. "Invalid timestamp" & "100 buffers queued" warnings resolved. Improved avgblur=planes setting. Added
o.filterchain
&o.dual_filterchain
options. However the toggle's slow. Better code alignment. - Removed
o.format
&o.io_write
& par from autocrop, automask & autocomplex. Removedselect
filter from automask & autocomplex. Removed all use of utilities except forsplit_path
.
SHA256: 58264DDCD5D2FB30103B9A317D6DE3D6DE3F5A5F8E9BC6CA6D51BB8D295ACEA9
mpv-scripts-v1.4
See README for description, Installation, Safety Inspection, Terminal Commands, app versions, etc. main.lua has more details. In Windows after extraction to SMPlayer folder, enter
--script=.
in its Advanced Preferences (mpv Options).
Updates:
- All scripts now work with
mpv.app
on MacOS-11. It uses an older LUA version, back when the%g
pattern didn't exist. - YouTube bugfix for VP9 profile 4 being incompatible with
lavfi-complex
. Example. autoloader.lua
is replaced bymain.lua
, in which case--script=.
(directory). title moved from aspeed to main.- automask now has perfect circles using
o.geq
(any formula).o.RES_SAFETY
bugfix now fully valid, with precision. Alsoo.format
option. - autocrop now has true aspect toggle. It returns double-black bars properly when you double-click mute.
- autocomplex more efficient code juggling 12.5, 25 & 30 fps. 30 fps for film & automask.
o.freqs_fps_image
,o.freqs_framerate
(like fade for freqs) &o.feet_lutrgb
options added. Somehow shuffling colors is more efficient than mixing them. There should be at least 3 fps values when doing abstract visuals: stream, animation, & hard-animation (like fractals). - aspeed improved response time (
o.auto_delay
), &o.mpv
(any path) options. echo to socket isn't allowed on Linux without installing a dependency, so I re-wrote it using only txtfile. Also improved reliability. - Many code improvements, like setsar=par, not 1.
SHA256 BDB410411CC9349CB13A66FD1EA4D7F07781E8A429F308B76400F90B943EE3CB