screen-capture

IOMobileFramebufferGetLayerDefaultSurface function failed on iOS 9

送分小仙女□ 提交于 2019-12-03 21:29:34
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 = IOServiceGetMatchingService(kIOMasterPortDefault, sm); } IOMobileFramebufferConnection connection = 0; IOSurfaceRef ptr = nil;

objective c renderInContext crash on background thread

非 Y 不嫁゛ 提交于 2019-12-03 16:41:01
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 = [UIApplication sharedApplication].statusBarOrientation; if ((orientation ==

Efficiently read the average color of the screen content rendered by XBMC

喜欢而已 提交于 2019-12-03 12:30:18
I want to get the average color of the screen content when running XBMC to change the color of a TV ambient light. XBMC is running on a small HTPC with OpenGL ES 2.0 hardware (Raspberry Pi) running a Debian-derived distribution. I guess I have to read from the screen frame buffer in which XBMC draws using OpenGL. (At least, I think and hope that XBMC renders everything using OpenGL.) Is it possible to read the OpenGL frame buffer representing the whole screen output? What am I going to need to access it? Do I also need an own render context to access the frame buffer of the screen? (I don't

Path to screenshots in Android

拥有回忆 提交于 2019-12-03 11:20:22
Is there a way to find out the path used by android to save screenshots? Can I get the path from a code? Android's API has no fixed path for screenshots but File pix = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); File screenshots = new File(pix, "Screenshots"); might work. That's what ICS uses as path. The "Screenshots" value is part of the private API. Here is link to the source code where the value is set. Since the class is loaded in our application context there is no option to access the field. I'd hardcode it as @zapi suggested. 来源: https://stackoverflow

I need to record a demo of our application. Can anyone recommend a good screen recorder? [closed]

谁说我不能喝 提交于 2019-12-03 05:06:12
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. I need to record a demo of our application. Can anyone recommend a good screen recorder? I have tried CamStudio, but it's throwing errors. Any other good free software I should try? try UVScreenCamera, i think it's normal Camtasia studio does a great job. In the case the app is cross-platform (java, web-based) you can ask a pal with a Mac to use Screenium, Snapz Pro or ScreenFlow. duffymo Static screen shots? Maybe Wink

Linux: Screen desktop video capture over network, and VNC framerate

可紊 提交于 2019-12-03 03:37:54
问题 Sorry for the wall of text - TL;DR: What is the framerate of VNC connection (in frames/sec) - or rather, who determines it: client or server? Any other suggestions for desktop screen capture - but "correctly timecoded"/ with unjittered framerate (with a stable period); and with possibility to obtain it as uncompressed (or lossless) image sequence? Briefly - I have a typical problem that I am faced with: I sometimes develop hardware, and want to record a video that shows both commands entered

API's for Android 4.4 screen recording?

谁说我不能喝 提交于 2019-12-03 01:53:41
One of the features of Android 4.4 (Kit Kat) is that it provides a way for developers to capture an MP4 video of the screen using adb shell screenrecord . Does Android 4.4 provide any new API's for applications to capture and encode video, or does it just provide the screenrecord utility/binary? I ask because I would like to do some screen capture work in an application I'm writing. Before anyone asks, yes, the application would have framebuffer access. However, the only Android-provided capturing/encoding API that I've seen ( MediaRecorder ) seems to be limited to recording video from the

Linux: Screen desktop video capture over network, and VNC framerate

徘徊边缘 提交于 2019-12-02 17:07:20
Sorry for the wall of text - TL;DR: What is the framerate of VNC connection (in frames/sec) - or rather, who determines it: client or server? Any other suggestions for desktop screen capture - but "correctly timecoded"/ with unjittered framerate (with a stable period); and with possibility to obtain it as uncompressed (or lossless) image sequence? Briefly - I have a typical problem that I am faced with: I sometimes develop hardware, and want to record a video that shows both commands entered on the PC ('desktop capture'), and responses of the hardware ('live video'). A chunk of an intro

Capture Windows screen with ffmpeg

醉酒当歌 提交于 2019-12-02 14:14:48
The ffmpeg is cross-platform and very powerful software to handle video/audio or to stream it. On Linux ffmpeg can capture X11 screen with a command below: ffmpeg -f x11grab -r 25 -s cif -i :0.0 out.mpeg But is it possible to grab Windows Desktop with ffmpeg? frustrated Use the built-in GDI screengrabber (no install needed) like this : ffmpeg -f gdigrab -framerate 10 -i desktop [output] This will capture ALL your displays as one big contiguous display. If you want to limit to a region, and show the area being grabbed: ffmpeg -f gdigrab -framerate ntsc -offset_x 10 -offset_y 20 -video_size

Not able to find Image in cache using npm react-native-view-shot

耗尽温柔 提交于 2019-12-02 04:47:44
问题 I am using npm react-native-view-shot to capture the view in the image and save locally on the device. When I try to take snap-shot using the following code I get path but not image at the location, below is code and output Path:- file:///data/user/0/com.caryn/cache/ReactNative-snapshot-image5936120548912611616.jpg captureRef(this.ref, this.state.value) .then(res => this.state.value.result !== "file" ? res : new Promise((success, failure) => // just a test to ensure res can be used in Image