mpv-scripts icon indicating copy to clipboard operation
mpv-scripts copied to clipboard

Disable hardware decoding when using blur_edges

Open Nudin opened this issue 4 years ago • 3 comments

Hardware decoding will most often interfer with the filter, therefore disable it when enabling of blur_edges and restore the original value when disabling.

If you think it would be better to implement this feature as an opt-in/opt-out feature let me know.

Nudin avatar Sep 07 '20 22:09 Nudin

I think it would make sense to make this behavior configurable, and simply just warn and abort by default. If I remember correctly, filters can also be used with all the *-copy hardware decoders.

occivink avatar Sep 08 '20 15:09 occivink

If I remember correctly, filters can also be used with all the *-copy hardware decoders.

At least on my system it also doesn't work with the -copy versions.

I made it configurable and documented it in the config file. I mad it enable by default, since if it is set to false the script will likely not work for several users, without any benefit.

Nudin avatar Oct 07 '20 01:10 Nudin

This would be very nice to have for crop.lua as well.

shibotto avatar Aug 23 '21 14:08 shibotto