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
showto all scripts. - Added script-message & function
setto all scripts. - Added script-message & function
exitto all scripts. - Added
script-message printto all scripts. - Added functions
callstring,pprint&pexpand_to_stringto all scripts. More rigorous codes. More elegant options. - Added
function is_filter_presentto 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_frameratewhich 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_safetylowered 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.speedexample. rotate&zoompannow opt-in (autocomplex & automask). These null-ops can reduce performance.
Errors
o.framerateshould benil, especially in mpv-v0.39 (dodgy filter).o.auto_aspectshould 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.limitsmedia-titles have many typos.- Subtitles are numbered wrong (
sub-create-cc-trackshould 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.darwinplatform overrides to all scripts. Smartphones work better with different options, like binacles. - Added
o.toggle_commandto all scripts except main. Toggles can activate arbitrary command. Replaceso.osd_on_togglefor automask & autocomplex. - Added
o.double_aid_timeoutto aspeed, autocrop & automask. Double-aid is similar to double-mute, due to Android (laggy trigger). A newplayback_restartedtimer blocks all double-tap timers from misfiring. - Added
o.double_sid_timeoutto all scripts except main. Best smartphone toggle mechanism.sub-create-cc-trackis artificially added. - Added
o.msg_levelto main & autocrop. - Added
o.script_optsto main.lua, forosc-settings. Also Improvedytdl_pathcode. - Added
function gp(Get Property) to all scripts. All script-opt types now well-defined. - Added
function cleanup()to all scripts. - Added
function typecastto all scripts. - Added
function event_handlerto 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-bindingnames for all scripts but main. android-surface-areaW,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.limitsnow searchesmedia-titleas well aspath, subject too.gsub(double-space=space, etc). Replacedo.pad_colorwitho.pad_options(x:y:color). Improved JPEG reliability &o.meta_osd. Removedfunction start_file(seekinstead ofset start). - automask.lua: Added
o.superperiodsto 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.speednow set every half-second in real-time, not film-time.--no-configbugfix for standalone mpv. Removedo.clocks.no_localesflag. 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_pathswitch. Enabledgraphrandomization @file-loaded. Improved feedback reliability by checkingsamplerate. Resyncon_toggle. Improved event-handling. - autocomplex.lua: Simpler default with no dual (increased
o.freqs_fps). Bugfix foraidoff/on. It toggles off & on with only one aid-click. Bugfix for changingvo(must insta-stop). - autocrop/automask: Bugfix for starting stutter.
insta_pauseremoved 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.speedworks. 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-opendue 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_astreamselectfunction. Improved reliability & codes. - All options now well-defined & compulsory.
read_optionsotherwise logs errors. - Renamed
o.dimensions→o.video_out_params={par=1,w,h,pixelformat}for autocrop.lua. automask similar.o.video_paramsfor 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_multiplierto autocrop & automask, in case display-par is undetected. - automask.lua: Combined
o.n&o.tintoo.gsubs(all gsubs in options). Addedo.gsubs_passessince 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_logwitho.msg_level. Improved performance on MacOS (old FFmpeg). Smooth-pad even after seeking backwards! Replacedo.options_imagewith 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_vidbugfix, &convolutioncan sharpen with variable percentage. - aspeed.lua: Proper AbDay centering using ' ' (LRM LRM). Removed
start_file(). Added Chad, Sierra Leone & Gabon (26 clocks). property_handlerfor 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_listnow 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 appendcommand. Noinsta_unpausewhen seeking paused. Also, force toggle to ignore TOLERANCE. - automask: Color bugfix (uv properly filtered using shuffleplanes). Combined
o.widths&o.heightsintoo.scales. Bugfix for reducedo.fps_masknear 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_pauseintoo.timeouts. Addedo.options_subprocesses(can load them with vid). Replacedo.clockwitho.clocks, which includesduration,offset,no_locales&DIRECTIVES_OVERRIDEsub-options. Special " " for alignment. The OVERRIDE is a clear list of allos.dateformat 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_maskto 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_padfor padding toggle,o.formatfor transparent bars &o.pad_scale_flagsfor 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_imagewitho.options_image. Combinedo.TOLERANCEoptions, too. Pad-on or off state now preserved btwn tracks. Improved SMPlayer.app support (shared memory requires removing alpha). Padding nowvf appendso automask doesn't affect the black bars.o.meta_osdnow displays version info. - autocomplex: Combined
o.freqs_mode,o.freqs_win_size,o.freqs_win_func&o.freqs_averagingintoo.freqs_options. Combinedo.volume_fade&o.volume_dmintoo.volume_options. Combinedo.volume_highpass&o.volume_dynaudnormintoo.volume_filterchain. Combinedo.volume_width&o.volume_heightintoo.volume_scaleoptions. 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_exprto autocrop & automask, for non-linear toggle transition. - Added
o.vf_command_t_delayto autocrop & automask. A few frames aren't redrawn fast enough, so rapid smooth-toggling needs a .1s offset. osd-parobservations (&o.dimensionsoverride) 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_osdnow gives LUA version. The same LUA code & version often breaks on MacOS.- main.lua replaced
o.sid&o.clear_osdwitho.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_durationadded 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.sidadded 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--idlemode (removedo.startbut 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_filterchainoptions. However the toggle's slow. Better code alignment. - Removed
o.format&o.io_write& par from autocrop, automask & autocomplex. Removedselectfilter 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.appon MacOS-11. It uses an older LUA version, back when the%gpattern didn't exist. - YouTube bugfix for VP9 profile 4 being incompatible with
lavfi-complex. Example. autoloader.luais 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_SAFETYbugfix now fully valid, with precision. Alsoo.formatoption. - 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_lutrgboptions 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







