Re: [PATCH] ui/cocoa: capture screencast with AVAssetWriter

2022-01-12 Thread Chen Zhang
Granted that this patch might not fit for main branch, I hope this snippet could help someone in need. Screen cast feature shipped with macOS does support screen recording, but only for whole screen or selected rectangle, not for a selected window like photo capture feature. And pixels are not

Re: [PATCH] ui/cocoa: capture screencast with AVAssetWriter

2022-01-11 Thread Peter Maydell
On Tue, 11 Jan 2022 at 07:09, Zhang Chen wrote: > > To record screencast, AVAssetWriter APIs were called for each > cocoa_update call. > > Commands for start/stop recording were added to View menu. This seems a bit of an odd feature -- why doesn't the OS just permit screen recording of any applic

[PATCH] ui/cocoa: capture screencast with AVAssetWriter

2022-01-10 Thread Zhang Chen
To record screencast, AVAssetWriter APIs were called for each cocoa_update call. Commands for start/stop recording were added to View menu. AVFoundation, CoreMedia and CoreVideo were added as linking dependencies. Signed-off-by: Zhang Chen --- meson.build| 6 +++ ui/cocoa.m | 132 +++