[Feature Request] Plex For Mac/Windows/Linux (libavfilter crop/cropdetect support in mpv)

Hello there, i recently saw that we got scripting support in Plex For Mac/Windows/Linux - which is awesome.

So first thing i did was add dynamic-crop.lua ( mpv-scripts/dynamic-crop.lua at master · Ashyni/mpv-scripts · GitHub ) into the folder, and restarted the app, and sure enough it actually loads.

Kinda…

Mar 19, 2023 19:25:42.410 [0x308fd7000] ERROR - [MPVEngine/mpv] cplayer: Option vf-pre: lavfi-cropdetect doesn't exist.
Mar 19, 2023 19:25:42.410 [0x308fd7000] ERROR - [MPVEngine/mpv] cplayer: Option vf-pre: lavfi-cropdetect doesn't exist.
Mar 19, 2023 19:25:42.410 [0x308fd7000] ERROR - [MPVEngine/mpv] dynamic_crop: Does vf=help as #1 line in mvp.conf return libavfilter list with crop/cropdetect in log?
Mar 19, 2023 19:25:42.410 [0x308fd7000] INFO - [MPVEngine/mpv] dynamic_crop: Meta Stats:
Mar 19, 2023 19:25:42.410 [0x308fd7000] INFO - [MPVEngine/mpv] dynamic_crop: Limit - min/max: 26/26 | counter: 0
Mar 19, 2023 19:25:42.410 [0x308fd7000] INFO - [MPVEngine/mpv] dynamic_crop: Trusted - unique: 1 | offset: X:0 Y:0
Mar 19, 2023 19:25:42.410 [0x308fd7000] INFO - [MPVEngine/mpv] dynamic_crop: \ w=1920:h=1080:x=0:y=0         | offX=  0 offY=  0 | applied=1 overall=0 last_seen=0
Mar 19, 2023 19:25:42.410 [0x308fd7000] INFO - [MPVEngine/mpv] dynamic_crop: Buffer - unique: 0 | total: 0 0sec | known_ratio: 0 0sec
Mar 19, 2023 19:25:42.410 [0x308fd7000] INFO - [MPVEngine/mpv] dynamic_crop: Cleanup...
Mar 19, 2023 19:25:42.410 [0x308fd7000] DEBUG - [MPVEngine/mpv] cplayer: Set property: geometry="" -> 1
Mar 19, 2023 19:25:42.410 [0x308fd7000] DEBUG - [MPVEngine/mpv] vo/gpu: Resize: 0x0
Mar 19, 2023 19:25:42.410 [0x308fd7000] INFO - [MPVEngine/mpv] dynamic_crop: Done.

It doesn’t seem to work correctly, because libavfilter doesn’t have crop/cropdetect enabled.

Any chance this could be solved, so i can get rid of the ugly black bars dynamically on my 32:9 monitor? :smiley:

Sorry, cropdetect is GPL which means we can never include it in a non-GPL application: FFmpeg/configure at cbcc817353a019da4332ad43deb7bbc4e695d02a · FFmpeg/FFmpeg · GitHub

Noooo

Well that sucks :frowning:
I was so happy that we got scripting support, so i could finally use dynamic-cropping, but without cropdetect that gets real hard :sweat_smile:

Thanks for checking up on it tho @gbooker02 :slight_smile: