video-capture

How to capture screen to be video using C# .Net?

做~自己de王妃 提交于 2019-11-27 06:16:51
Do you have some library to capture a screen to be a compressed video file or some solution that can do it? Your best option seems to be Windows Media Encoder. Here are some links: http://www.c-sharpcorner.com/UploadFile/armoghanasif/CaptureDesktopActivities11122005013755AM/CaptureDesktopActivities.aspx http://www.codeproject.com/KB/audio-video/CaptureScreenAsVideo.aspx http://mycomponent.blogspot.com/2009/04/capture-screen-activitiesvideo-using.html This code uses SharpAvi available on NuGet. Edit: Demonstrating just the core functionality. Head On to http://github.com/MathewSachin/Captura

How to convert a kCVPixelFormatType_420YpCbCr8BiPlanarFullRange buffer to UIImage in iOS

萝らか妹 提交于 2019-11-27 05:44:25
问题 I tried to answer this in the original thread however SO would not let me. Hopefully someone with more authority can merge this into the original question. OK here is a more complete answer. First, setup the capture: // Create capture session self.captureSession = [[AVCaptureSession alloc] init]; [self.captureSession setSessionPreset:AVCaptureSessionPresetPhoto]; // Setup capture input self.inputDevice = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo]; AVCaptureDeviceInput

How to get web cam images in C#?

本秂侑毒 提交于 2019-11-27 04:28:53
问题 I'm working on online video conferencing project in C# and .Net4.0. I want a library or code which I can use for collecting web camera images per second in different form. I try this by using the AVICAP32, in which we send Messages for different purpose like copy or edit frames.but in this we have to pass a reference of picturebox while creating handler as given below: mCapHwnd = capCreateCaptureWindowA("0", 268435456 | 1073741824, 0, 0, 640, 480,picturebox1.Handle.ToInt32(), 0); Using these

Screen Capture with OpenCV and Python-2.7

半世苍凉 提交于 2019-11-27 04:16:50
I'm using Python 2.7 and OpenCV 2.4.9 . I need to capture the current frame that is being shown to the user and load it as an cv:: Mat object in Python. Do you guys know a fast way to do it recursively? I need something like what's done in the example below, that captures Mat frames from a webcam recursively: import cv2 cap = cv2.VideoCapture(0) while(cap.isOpened()): ret, frame = cap.read() cv2.imshow('WindowName', frame) if cv2.waitKey(25) & 0xFF == ord('q'): cap.release() cv2.destroyAllWindows() break In the example it's used the VideoCapture class to work with the captured image from the

How to record video from background of application : Android

浪子不回头ぞ 提交于 2019-11-27 02:35:58
I am developing an application which will be able to record video from background of application by using Service . Problem description : In my application recording will be scheduled. If user want to record video from 1 PM to 3 PM, he will schedule the task and can exit from application. Application will automatically start recording at 1PM to 3PM. What I did yet : I googled about my query but didn't get solution. Many articles say that it is not possible. But in Google Play there are some applications (for eg MyCar Recorder ) which can record video from background of application. I got an

VideoCapture is not working in OpenCV 2.4.2

非 Y 不嫁゛ 提交于 2019-11-27 01:55:47
问题 I recently installed OpenCV 2.4.2 in Ubuntu 12.04. cap = VideoCapture(0) is working. but I can't grab frames from some video source. cap = VideoCapture("input.avi") img = cap.read() gives me a numpy with all zero elements. I have also installed ffmpeg 0.11, Latest snapshot of x264, v4l-0.8.8 (All are latest stable versions) cmake -D WITH_QT=ON -D WITH_FFMPEG=ON -D WITH_OPENGL=ON -D WITH_TBB=ON -D BUILD_EXAMPLES=OFF WITH_V4L=ON .. make sudo make install When I do cmake, I get this -- Detected

VideoCapture.open(0) won't recognize pi cam

你离开我真会死。 提交于 2019-11-27 01:50:27
问题 I have been working with my Raspberry Pi 2B for a while now. Testing the Pi cam using raspistill works great but trying to use OpenCV functions such as VideoCapture.open(); won't work. trying the same command with a USB camera works just fine. I tried different indexes as inputs but nothing works for the pi cam. What am I missing here? 回答1: sudo modprobe bcm2835-v4l2 will "enable" the camera for opencv automatically. make sure you have the camera enabled from the raspberry config, either gui

Swift - How to record video in MP4 format with UIImagePickerController?

守給你的承諾、 提交于 2019-11-27 01:23:44
问题 I am creating a app in which i need to record videos and upload it to a server. Now my project has a android version too. To support android version i have to record the videos in mp4 format. I followed this tutorial to set the UIImagePicker media type to movie format imagePicker.mediaTypes = [kUTTypeMovie as String] The UIImagePickerController is perfect for my requirement and the only thing that i need to change is its saving format to mp4. I tried kUTTypeMPEG4 in mediaTypes but it throws

What is the best method to capture images from a live video device for use by a Java-based application?

爱⌒轻易说出口 提交于 2019-11-27 00:03:29
I am looking into an image processing problem for semi-real time detection of certain scenarios. My goal is to have the live video arrive as Motion JPEG frames in my Java code somehow . I am familiar with the Java Media Framework and, sadly, I think we can consider that an effectively dead API. I am also familiar with Axis boxes and, while I really like their solution, I would appreciate any critical feedback on my specific points of interest. This is how I define "best" for the purpose of this discussion: Latency - if I'm controlling the camera using this video stream, I would like to keep my

Record Video of Screen using .NET technologies [closed]

喜你入骨 提交于 2019-11-26 23:51:17
Is there a way to record the screen, either desktop or window, using .NET technologies. My goal is something free. I like the idea of small, low cpu usage, and simple, but would consider other options if they created a better final product. In a nutshell, I know how to take a screenshot in C#, but how would I record the screen, or area of the screen, as a video? Thanks a lot for your ideas and time! There is no need for a third party DLL. This simple method captures the current screen image into a .NET Bitmap object. private Image CaptureScreen() { Rectangle screenSize = Screen.PrimaryScreen