screen-capture

ScreenCapture via MediaProjection without user intervention in Kiosk apps - Android

北城余情 提交于 2019-12-06 03:26:53
I work for a digital signage company which has Android devices running in kiosk mode. Lately, we wanted to add screen capture for debugging. The easiest way to do that was to use getWindow().getDecorView().getRootView().getDrawingCache() to create bitmap and to send it over the network, but this will not capture videos as it's been rendered in surface view. MediaProjection's createVirtualDisplay seems promising, but the explicit permission needed to use this feature is not acceptable. Even requesting user permission for the first time and persisting the result for further use is not acceptable

How to capture desktop screen of computer host where it's running on using node.js

旧时模样 提交于 2019-12-05 21:44:35
问题 Is there such a way to capture desktop with node.js not a browser tab? I have searched a lot but I didn't find any. What I want is to use node.js to build desktop application. 回答1: You can use http://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback and https://en.wikipedia.org/wiki/Scrot to make screenshot of screen of current user running nodejs application. Something like this (it is complete expressJS example): var express = require('express'),

How to record a specific window using ffmpeg?

会有一股神秘感。 提交于 2019-12-05 12:09:45
问题 I use ffmpeg to record a window using this code: ffmpeg.exe -f dshow -y -i video="screen-capture-recorder":audio="virtual-audio-capturer":audio="Microphone (USB Audio Device)" -framerate 15 -vcodec libx264 -crf 0 -preset ultrafast -acodec pcm_s16le -vf crop=Width:Height:Left:Top output.flv But the problem is i might move the window, this leads to recording an area without the window i want. How can i capture a specific window that I am able to move it? Edit: I also used gdigrab to capture my

How to capture window contents of a Windows Store App in C#

北城余情 提交于 2019-12-05 09:00:12
问题 I have a bit of code to capture windows desktop app contents and save to a Bitmap object in .NET. It uses User32.dll and Gdi32.dll (BitBlt) and works just fine. However, the code produces all-black bitmaps when I give the code a handle to a window that holds a Windows Store app. I'm not sure if this is a security feature or what. I cannot use the ScreenCapture api as the contents of the window, after being resized, are almost always taller/larger than the screen. Has anyone had any luck

IOMobileFramebufferGetLayerDefaultSurface function failed on iOS 9

∥☆過路亽.° 提交于 2019-12-05 06:18:45
问题 I created a app to capture screenshot in background. It works well on iOS 7.x & 8.x, but failed to execute on iOS 9 beta. Here's my code: CFMutableDictionaryRef sm = IOServiceMatching("AppleH1CLCD"); io_service_t ioService = IOServiceGetMatchingService(kIOMasterPortDefault, sm); if (!ioService) { sm = IOServiceMatching("AppleM2CLCD"); ioService = IOServiceGetMatchingService(kIOMasterPortDefault, sm); } if (!ioService) { sm = IOServiceMatching("AppleCLCD"); ioService =

objective c renderInContext crash on background thread

与世无争的帅哥 提交于 2019-12-05 01:40:37
问题 I have an app in which the screen continuously is capturing in background thread. Here is the code - (UIImage *) captureScreen { UIWindow *keyWindow = [[UIApplication sharedApplication] keyWindow]; CGRect rect = [keyWindow bounds]; UIGraphicsBeginImageContext(rect.size); CGContextRef context = UIGraphicsGetCurrentContext(); [[keyWindow layer] renderInContext:context]; UIImage *img = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); UIDeviceOrientation orientation =

How to capture part of a screen

孤街醉人 提交于 2019-12-04 22:08:53
问题 I am using the win32 PrintWindow function to capture a screen to a BitMap object. If I only want to capture a region of the window, how can I crop the image in memory? Here is the code I'm using to capture the entire window: [System.Runtime.InteropServices.DllImport(strUSER32DLL, CharSet = CharSet.Auto, SetLastError = true)] public static extern int PrintWindow(IntPtr hWnd, IntPtr hBltDC, uint iFlags); public enum enPrintWindowFlags : uint { /// <summary> /// /// </summary> PW_ALL =

C++ - How to screen-capture, except for some windows

旧街凉风 提交于 2019-12-04 21:31:21
问题 Situation : I have a software that performs screen sharing over the Internet, where one user acts as a presenter, and other users act as viewers/attendees. Besides the presentation windows, the presenter also has a set of NON-SHARING-WINDOWS that appear on the screen (a button bar for start sharing/stop sharing/etc., a Skype window etc.). The presenter can configure from the setup of the screen sharing software to make these NON-SHARING-WINDOWS invisible (i.e. they will not appear in the

take device snapshot programmatically in android

我与影子孤独终老i 提交于 2019-12-04 20:27:26
How can I take snapshot of device like this tablet has button in menu bar to take a snap shot of device screen? the device has android 4.1.1 this same functionality is wanted to implement in my application to capture the screen snapshot. note that: I don't want to use Layout.getDrawingCache(); I only want to access this method as the OS uses.or a solution like this I do not need to root device.so please do not provide root solutions just have a look on this https://code.google.com/p/android-screenshot-library/ i hope it usefull for you... 来源: https://stackoverflow.com/questions/19493688/take

DirectX Screen Capture - Desktop Duplication API - limited frame rate of AcquireNextFrame

南楼画角 提交于 2019-12-04 18:39:00
I'm trying to use Windows Desktop Duplication API to capture the screen and save the raw output to a video. I'm using AcquireNextFrame with a very high timeout value (999ms). This way I should get every new frame from windows as soon as it at has one, which naturally should be at 60fps anyway. I end up getting sequences where everything looks good (frame 6-11), and then sequences where things look bad (frame 12-14). If I check AccumulatedFrames lFrameInfo.AccumulatedFrames the value is often 2 or higher. From my understanding, this means windows is saying "hey hold up, I don't have a frame for