Skip to content

Releases: TheAMM/mpv_crop_script

v0.5.0 - Upgraded libs

30 Sep 14:33
Compare
Choose a tag to compare

Features:

  • Updated the general script libraries, relevant changes below
  • ASSCropper:
    • Added crop testing (temporarily apply crop)
    • Allow nudging the crop box with Shift+Arrows and resizing it with Ctrl+Arrows and Ctrl+Shift+Arrows
  • PropertyExpander:
    • Added numerical comparisons (${foo<=0}, ${foo>=0}, ${foo<0}, ${foo>0}, ${foo==0}) and string comparisons (${foo^=start}, ${foo$=end}, ${foo~=contains}) to use in templates.
  • Updated default template to work better with still images (omit useless timestamp)

Compare script changes
Compare library changes

v0.4.1 - User-formats and cleanup

10 May 23:03
Compare
Choose a tag to compare

Features/Fixes:

  • Properties: add is_image, fix file_ext
  • Allow user to specify the encoder and output extension used. See /src/options.lua or mpv --idle --script-opts mpv_crop_script-example-config=example.conf for more info.
  • Moved reused modules and tools into their own repository

Compare all changes

v0.4.0 - Cropping and config upgrades

07 May 05:55
Compare
Choose a tag to compare

Features:

  • New fancy option parser, which can export an example config with comments:
    • mpv --idle --script-opts mpv_crop_script-example-config=example.conf
  • New options to display the crosshair (draw_mouse), change the guide type (guide_type) or adjust the overlay color (overlay_transparency, overlay_lightness, color_invert)
  • Autodetect crop by pressing d by using cropdetect (for black bars)
  • Automatically invert the crosshair/frame colors if video is bright (auto_invert, disabled by default)

Compare all changes

v0.3.2

20 Jan 13:48
Compare
Choose a tag to compare

Features/fixes:

  • Try to achieve a refresh rate of 60fps for the ASS rendering. This allows cropping images (which do not get tick events).

Compare all changes

v0.3.1

28 Nov 22:19
Compare
Choose a tag to compare

Features/fixes:

  • display_state.lua is now solid! It properly handles all sorts of things that may move, scale and otherwise adjust the visible screen: panscan, zoom, align, keepaspect, video-unscaled.
    Simply put, that crop box will show up where it's supposed to (although mirror/vf=crop are not accounted for, yet).

Compare all changes

v0.3.0

26 Nov 04:11
Compare
Choose a tag to compare

⚠️ This release changes the output_template format! ⚠️
You'll have to update your configuration, or filenames will likely break.

Features:

  • Property expansion for rather extensive filename templates!
  • The script can now automatically create required directories based on the output_template (for example, save screenshots to different directories based on date with ${&-:%Y}/${&-:%Y-%m/${filename} ${pos}.png
  • The script now toggles mpv's screenshot-png-compression to 0 for taking the screenshot, speeding up the saving considerably. The user's value is set back after the screenshot has been taken.

I recommend reading the README.md again starting from the Configuration section to see what's up.

Compare all changes

v0.2.0

13 Nov 23:55
Compare
Choose a tag to compare

image

Features:

  • We versioned now! Dates are boring.
  • Add a new crop guide - center-lines
  • Toggle the outline color between light and dark with z

Fixes:

  • Fix crop handles scaling with the video - they now stay the same size regardless of window size
  • Fix cropping out of bounds
  • Make sure crop has a positive width and height

Compare all changes

Initial release

13 Nov 02:13
Compare
Choose a tag to compare

The first release! 🎉