qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Chen Zhang
Subject: Re: [PATCH] ui/cocoa: capture screencast with AVAssetWriter
Date: Thu, 13 Jan 2022 10:29:50 +0800

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 sourced from qemu display frame buffer. This means the 
screencast would be scaled by contentsScale (for retina screen) and window 
titlebar would be included.



Best Regards

> 2022年1月11日 下午4:31,Peter Maydell <peter.maydell@linaro.org> 写道:
> 
> On Tue, 11 Jan 2022 at 07:09, Zhang Chen <tgfbeta@me.com> 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 application without the app
> having to have code for it specifically ?
> 
> -- PMM




reply via email to

[Prev in Thread] Current Thread [Next in Thread]