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

I cannot choice a corner precisely

Open kadogo opened this issue 7 years ago • 5 comments

Hello,

If I try to choose a corner precisely, when I move my mouse I see that it take the point far from where I click. If it's normal, it would be nice to know where we can click precisely I think.

Cheers.

kadogo avatar Feb 05 '17 21:02 kadogo

How far away is the chosen point? Could you possibly upload a screenshot of this behavior, plus mpv log?

If the difference is only a few pixels, and the log contains a message like "[crop] Adjusting crop origin to .../... for pixel format alignment.", it's likely that this is caused by mpv's cropping mechanism, not this script.

aidanholm avatar Feb 14 '17 16:02 aidanholm

Hello sorry for the time. screenshot at 21-49-32

I try to click next the blank line. I try with another script and work well.

I don't see any informations in mpv.

For me it's ok if I use the next script. https://github.com/occivink/mpv-scripts/blob/master/crop.lua

kadogo avatar Feb 19 '17 20:02 kadogo

Ok, that looks like my bug; thanks for the report, and the link to the working script. Does this issue happen all the time, or only with some video files? It's probably a bug in the video space <-> screen space coordinate conversion stuff.

aidanholm avatar Feb 25 '17 04:02 aidanholm

I tried it only on 2 videos. The two come from different DVD and are make with makemkv if it can help.

kadogo avatar Feb 25 '17 10:02 kadogo

Could also be something related to ffmpeg.

I recently watched a video that initially worked, but during playing the cropping was reset, and I got this error on the console:

[ffmpeg] filter: Invalid too big or non positive size for width '1278' or height '636' [ffmpeg] filter: Failed to configure input pad on filter [lavfi] failed to configure the filter graph Disabling filter easycrop because it has failed.

Markus-N avatar Sep 01 '23 09:09 Markus-N