Open NightMachinery opened 4 years ago
Regarding alpha support in general, I don't know the OSX code; you can try the --alpha=yes option and see whether some random png appears transparent.
i think there was some code in the old cocoa backend (the corresponding commit from wm4) that made this possible? tbh i never tried it, also never had an example to test. i didn't implement this for the new cocoa-cb backend. though it could be done.
with a test file i could test it. also implementing this won't help with your use case since you would need a video with an alpha channel in the first place?
that should be rather obvious from the commit i linked, besides the NSView one.
True, it’s useful for videos with alpha channels only, while I need to adjust the opacity of the whole mpv gui for any file.
On Tue, Nov 12, 2019 at 10:05 PM der richter notifications@github.com wrote:
i think there was some code in the old cocoa backend https://github.com/mpv-player/mpv/blob/master/video/out/opengl/context_cocoa.c#L139-L140 (the corresponding commit https://github.com/mpv-player/mpv/commit/d2baaaa7df87eba9566fb935eeab5bd0af80fe1b from wm4) that made this possible? tbh i never tried it, also never had an example to test. i didn't implement this for the new cocoa-cb backend. though it could be done.
with a test file i could test it. also implementing this won't help with you use case since you would need a video with an alpha channel in the first place?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mpv-player/mpv/issues/7147?email_source=notifications&email_token=AIUL56V5NV4P4HWFQEYKD53QTLZNNA5CNFSM4JMDFGD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOED3LVSA#issuecomment-553040584, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIUL56XAFASYINWDQKITMULQTLZNNANCNFSM4JMDFGDQ .
Happy 2020, guys! Any progress on this?)
I have a usecase where I watch talks and exercise at the same time, and I like to put the exercise video on top of the talk, with some transparency applied. Unfortunately, system integrity protection and general Apple security practices mean that it is quite hard to get this behavior via a 3rd party window manager.