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!
