Releases: TheAMM/mpv_crop_script
Releases · TheAMM/mpv_crop_script
v0.5.0 - Upgraded libs
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 withCtrl+Arrows
andCtrl+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.
- Added numerical comparisons (
- Updated default template to work better with still images (omit useless timestamp)
v0.4.1 - User-formats and cleanup
Features/Fixes:
- Properties: add
is_image
, fixfile_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
v0.4.0 - Cropping and config upgrades
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 usingcropdetect
(for black bars) - Automatically invert the crosshair/frame colors if video is bright (
auto_invert
, disabled by default)
v0.3.2
Features/fixes:
- Try to achieve a refresh rate of 60fps for the ASS rendering. This allows cropping images (which do not get
tick
events).
v0.3.1
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).
v0.3.0
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.
v0.2.0
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
Initial release
The first release! 🎉