video-capture

Zooming while capturing video using AVCapture in iOS

China☆狼群 提交于 2019-11-30 20:32:16
问题 I am using AVCapture to capture video and save it. But I need to provide zooming option like pinch to zoom or through a zoom button. Also video should be saved in exactly in same manner in which it is being displayed, I mean when zoomed in, it should be saved zoomed. Any help, Link is appreciated. My code for setting up AVCapture session is: - (void)setupAVCapture{ session = [[AVCaptureSession alloc] init]; session.automaticallyConfiguresApplicationAudioSession=YES; [session

How to find object on video using OpenCV

自作多情 提交于 2019-11-30 19:34:36
To track object on video frame, first of all I extract image frames from video and save those images to a folder. Then I am supposed to process those images to find an object. Actually I do not know if this is a practical thing, because all the algorithm did this for one step. Is this correct? karlphillip Well, your approach will consume a lot of space on your disk depending on the size of the video and the size of the frames, plus you will spend a considerable amount of time reading frames from the disk. Have you tried to perform real-time video processing instead? If your algorithm is not

How to capture pygame screen?

谁说胖子不能爱 提交于 2019-11-30 18:14:09
How can I capture and save a sequence of images or a video of a pygame screen? Basically I want to share my game video on youtube. Also, want to make a tutorial. The game is rendered mainly in a loop: def main(): while True: GetInput() Move() Shift() Draw() With the Draw() function doing all the blit() and stuff before doing the pygame.display.flip() Use pygame.image.save on your screen surface: window = pygame.display.set_mode(...) ... pygame.image.save(window, "screenshot.jpeg") Note that this will slow down your program tremendously. If it is time-based, you may wish to fake the framerate

Using device name instead of ID in OpenCV method VideoCapture.open()

瘦欲@ 提交于 2019-11-30 18:11:07
问题 I have a lot of video devices in my /dev folder (e.g. video1 , video2 , ..., video9 ) and one /dev/video which is always pointing to the valid device (which, of course, can change). I want to open the /dev/video device with OpenCV using cv::Videocapture and realized that there are only two ways to open it: VideoCapture::VideoCapture(const string& filename) VideoCapture::VideoCapture(int device) The first one opens a file and the second one opens /dev/video[device] . Is there any way to do

Android App Presentation

倾然丶 夕夏残阳落幕 提交于 2019-11-30 14:17:14
问题 I wanted to make a video presentation of my android application. i know i can make the presentation by holding a camcorder in front of the screen and give walkthrough the application. But is there any other way this can be done, something on the lines of JingProject for windows wherein you can record your activities on your screen in a video. is there a tool that can help me achieve the same on my android device 回答1: Try this http://code.google.com/p/androidscreencast/ Update : I would like

blackmagic SDK in c#

倖福魔咒の 提交于 2019-11-30 13:07:51
i am attempting to capture 720p from one a blackmagic intensity pro cards using the newest SDK (june 2011) on windows7 64x and with C# + VS 2010 express. i have successfully compiled and run a program that captures frames at YUV however, capture stops after 56 frames (the callback function stops being called). i am wondering if i am missing something simple here? especially given that i am almost there - i get frames with the correct content at the correct size etc but only for a brief time. also some other information that may be relevant: if i unplug the camera capture does not stop i have

Reverse video in android

不羁岁月 提交于 2019-11-30 11:51:30
I have recorded a video from camera in my app and saved in device storage.Now I want to reverse the video such that it plays from backwards.i.e. if video is of 10 seconds then the last frame at 10th second will become first frame and it starts playing from there to 1st second first frame.I want to save the reversed video in a file.How should i proceed in that? Mick If you are prepared to use ffmpeg you can use this approach - it essentially breaks the video into frames and then builds it again in reverse order: https://stackoverflow.com/a/8137637/334402 There are several ways to use ffmpeg in

Android App Presentation

谁都会走 提交于 2019-11-30 10:34:38
I wanted to make a video presentation of my android application. i know i can make the presentation by holding a camcorder in front of the screen and give walkthrough the application. But is there any other way this can be done, something on the lines of JingProject for windows wherein you can record your activities on your screen in a video. is there a tool that can help me achieve the same on my android device Ravi Vyas Try this http://code.google.com/p/androidscreencast/ Update : I would like to add Droid@Screen | Credit/Source Question No 2844343 来源: https://stackoverflow.com/questions

OpenCV VideoWriter won't write anything, although cvWriteToAVI does

一个人想着一个人 提交于 2019-11-30 07:36:59
问题 I'm been trying to capture video from a cam and write it into an AVI file. I'm using Qt 4.8.2 with MSVC 2010 (x86) on Windows 7. I have 2 versions of the code: one using cv::Mat and the other using IplImage*. However, only the IplImage* version is working. Here's my code using cv::Mat: #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> using namespace cv; int main() { VideoCapture* capture2 = new VideoCapture( CV_CAP_DSHOW ); Size size2 = Size(640,480); int codec = CV

Video Recording using AVFoundation

≯℡__Kan透↙ 提交于 2019-11-30 07:13:48
I am trying to record video using AVFoundation. When I add video input only to the session, everything works fine but when I add an audio input to it, it stops recording the video.(Delegate method is called immediately after recording starts). Here is my code: -(void) recordVideo { self.session = [[AVCaptureSession alloc] init]; if([session canSetSessionPreset:AVCaptureSessionPresetMedium]) session.sessionPreset = AVCaptureSessionPresetMedium; CALayer *viewLayer = [self.cameraView layer]; AVCaptureVideoPreviewLayer *captureVideoPreviewLayer = [[AVCaptureVideoPreviewLayer alloc] initWithSession