video-capture

Any free C# libraries for video recording (of the screen) around?

十年热恋 提交于 2019-12-04 12:12:09
问题 I am looking for free C#(.net) libraries that allow me to record videos(plus sound) of the screen of my computer (basically, to do what camtasia does). Is there anything easy to use, around? Thanks 回答1: I came across this solution to your problem, which uses Windows Media Encoder 9 to record the desktop. It's a bit dated, but I think you might find it interesting or helpful: http://www.c-sharpcorner.com/UploadFile/satisharveti/EnhancedDesktopRecorder07222008041309AM/EnhancedDesktopRecorder

Relation between horizontal, vertical and diagonal Field-of-View

六眼飞鱼酱① 提交于 2019-12-04 11:33:11
问题 Is there a mathematical relation between those values? If I know hFOV and vFOV can I calculate the diagonal FOV without involving other values like focal lengths etc? My first thought was to use Pythagorean theorem but maybe it's wrong. 回答1: The physical quantities of interest are the sensor size and the focal length. The latter, in the pinhole camera model, is the the distance between the camera center and the image plane. Therefore, if you denote with f the focal length (in mm), W and H

Brew downgrade formula to previous version (opencv3/3.0.0) on mac el capitan

∥☆過路亽.° 提交于 2019-12-04 11:14:33
I am on mac and used brew to install opencv3. I was having opencv3/3.0.0 . Today, I updated it and got version 3.1.0_1. However, this update is breaking everything and when I try to use VideoCapture to read frames and use waitKey function it breaks by causing following: 2016-02-26 23:25:16.846 tracking[99869:1026824] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CaptureDelegate doFireTimer:]: unrecognized selector sent to instance 0x7fab5a601240' So, now I am trying to switch back to the following version, but I am not sure how. I used following: brew

Rotate VideoCapture in OpenCV on Android

被刻印的时光 ゝ 提交于 2019-12-04 08:33:20
问题 How to rotate the camera when using class VideoCapture on OpenCV? (Sample Face Detection on Android). I'm rotating the canvas with: if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) { Matrix matrix = new Matrix(); matrix.preTranslate( (canvas.getWidth() - bmp.getWidth()) / 2, (canvas.getHeight() - bmp.getHeight()) / 2); matrix.postRotate(270f, (canvas.getWidth()) / 2, (canvas.getHeight()) / 2); canvas.drawBitmap(bmp, matrix, null); } but image from

Video capture on Linux? [closed]

此生再无相见时 提交于 2019-12-04 06:29:24
We need to capture live video and display easily on Linux. We need a cheap card or USB device with a simple API. Anyone want to share some experience? Use the video4linux library. I've used it with a c++ program and was able to capture webcam frames within about an hour. (Very easy to use and setup) If you need to program, you're best off using GStreamer , a multimedia framework under Linux. Cheese, mentioned by jackbravo, is based on GStreamer, as is Flumotion , a streaming server I work on. Shannon Nelson As mentioned, Use dvgrab to capture from a Firewire interface from the camera, then use

OpenCV error: (-215) scn == 3 || scn == 4 in function ipp_cvtColor

馋奶兔 提交于 2019-12-04 06:12:16
I tried playing a video from a file, as given in the tutorials. My program was as follows: import numpy as np import cv2 cap = cv2.VideoCapture('output.avi') while(cap.isOpened()): ret, frame = cap.read() frame = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) cv2.imshow('outVideo',frame) if cv2.waitKey(1) & 0xFF == ord('q'): break cap.release() cv2.destroyAllWindows() But I got the following error: Traceback (most recent call last): File "playVideo.py", line 8, in <module> frame = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) cv2.error: /home/hp/opencv/modules/imgproc/src/color.cpp:7456: error: (-215) scn

How can I learn a DirectShow programming? [closed]

邮差的信 提交于 2019-12-04 05:41:34
I'm a .Net C# Developer. I want to develop the media programming about video/audio codec, capture media from source, etc. I'm going to use the DirectShow Lib, but I read it on MSDN, and I'm very confused, because I'm a beginner. Do you have the best tutorials or some article that can make beginner understand to program in the DirectShow architecture? If so, please share them. You will find these useful: http://www.codeproject.com/KB/directx/PrgmngDirectShowappsCS.aspx http://www.codeproject.com/KB/directx/directshowmediaplayer.aspx http://www.codeproject.com/KB/directx/directshownet.aspx http:

Video Recording with webcam on a webpage [closed]

核能气质少年 提交于 2019-12-04 05:33:59
I have a requirement of recording video via web cam, on my webpage. What are the available plugins for the same. My website is developed using Ruby on Rails framework Regards, Pankaj If an HTML5 solution could be suitable for you, you can take a look to WebRTC (currently supported in Chrome, Firefox and Opera). You can find a good tutorial here: http://www.html5rocks.com/en/tutorials/getusermedia/intro/ The first hit on searching "webcam plugin": http://www.xarg.org/project/jquery-webcam-plugin/ As it is using JavaScript it is easy to include in Rails. Many others appear in the results ...

Max duration for capture video on android

匆匆过客 提交于 2019-12-04 05:29:03
I have code for capturing a video clip on Android: Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); intent.putExtra("android.intent.extra.durationLimit", 30000); intent.putExtra("EXTRA_VIDEO_QUALITY", 0); startActivityForResult(intent, ActivityRequests.REQUEST_TAKE_VIDEO); This code works well on API 2.2, but the duration limit does not work on API 2.1 (Galaxy S). Is there some constant or parameter for setting this time, or is there a better approach than the one I am taking? I ask because I found another application that works on the Galaxy S (called Vibrant ) which can record

Intent to take video in android

做~自己de王妃 提交于 2019-12-04 04:57:32
I need to take video from my application using only front camera. I am using intent to perform this action. Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); intent.putExtra(MediaStore.EXTRA_OUTPUT, videoUri); intent.putExtra("android.intent.extra.durationLimit", 30); intent.putExtra("android.intent.extras.CAMERA_FACING", 1); //to open front facing camera startActivityForResult(intent, VIDEO_CAPTURE); When I run the application, I am able to take video using front camera. But suppose when I click my record video button and the camera view is opened. In that user go and change the