video-capture

Capturing video out of an OpenGL window in Windows

孤者浪人 提交于 2019-11-30 06:58:25
问题 I am supposed to provide my users a really simple way of capturing video clips out of my OpenGL application's main window. I am thinking of adding buttons and/or keyboard shortcuts for starting and stopping the capture; when starting, I could ask for a filename and other options, if any. It has to run in Windows (XP/Vista), but I also wouldn't like to close the Linux door which I've so far been able to keep open. The application uses OpenGL fragment and shader programs, the effects due to

How to record a video in iOS

我只是一个虾纸丫 提交于 2019-11-30 05:33:06
Hi I would like to record a video in iPhone through Objective-C. Can someone provide me the sample code to write my own code. I have no idea how to do it. And i need it in hurry. Any little help will be appreciated greatly. Thanks in advance. Regards Sohaib Qazi AV Foundation Framework is the new way to record video and audio on iOS and Mac. http://developer.apple.com/library/ios/#documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/00_Introduction.html#//apple_ref/doc/uid/TP40010188 It gives you much more control over focus, lighting etc... You should typically use the highest-level

Run multiple AVCaptureSessions or add multiple inputs

社会主义新天地 提交于 2019-11-30 03:29:51
I want to display the stream of the front and the back facing camera of an iPad2 in two UIViews next to each other. To stream the image of one device I use the following code AVCaptureDeviceInput *captureInputFront = [AVCaptureDeviceInput deviceInputWithDevice:[AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo] error:nil]; AVCaptureSession *session = [[AVCaptureSession alloc] init]; session addInput:captureInputFront]; session setSessionPreset:AVCaptureSessionPresetMedium]; session startRunning]; AVCaptureVideoPreviewLayer *prevLayer = [AVCaptureVideoPreviewLayer layerWithSession

How to capture pygame screen?

牧云@^-^@ 提交于 2019-11-30 03:03: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() 回答1: Use pygame.image.save on your screen surface: window = pygame.display.set_mode(...) ... pygame.image.save(window, "screenshot.jpeg") Note

Storing photos and videos in Core Data?

那年仲夏 提交于 2019-11-30 02:32:00
I am developing an app that lets the user record videos and photos. Now I am wondering what is the best way to store them? The first idea is of course to save it in the user's photo library, just as if he had recorded the photo from the Camera app, and use a reference to the files. Now there's the problem that the user can access and delete files from the Photos application, which may be still needed by my app. I don't think that I can prevent the user from deleting photos, but how do I deal with the inconsistency my app will suffer from? The other way would be to take care of the storage

Simple alternatives to Red5 recorder and server for webcam video capture?

≯℡__Kan透↙ 提交于 2019-11-29 22:39:51
I'm looking for a flash script/library to capture video and audio from a webcam and then somehow get a saved flv to my encoding server. I'm not looking for something that will host the videos for me. I just need something simple to capture and then upload. I really want this to be open source and free. I've done a fair amount of searching and it seems that most of what i can find is either a full blown service with hosting, or the red 5 suite. I've been trying for a day to get something going on with Red5, but honestly I haven't done any flash or java development in over 6 years and this seems

Reverse video in android

最后都变了- 提交于 2019-11-29 17:30:03
问题 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? 回答1: If you are prepared to use ffmpeg you can use this approach - it essentially breaks the video into frames and then builds it

How to get the thumbnail of a recorded video - windows phone 8?

戏子无情 提交于 2019-11-29 17:17:33
I've used CaptureSource() to record a video like in this Topic How to record video in a camera app for Windows Phone , but I can't get the thumbnail of the recorded video. Here is the solution: [...] // Add eventhandlers for captureSource. captureSource.CaptureFailed += new EventHandler<ExceptionRoutedEventArgs>(OnCaptureFailed); captureSource.CaptureImageCompleted += captureSource_CaptureImageCompleted; [...] captureSource.Start(); captureSource.CaptureImageAsync(); [...] void captureSource_CaptureImageCompleted(object sender, CaptureImageCompletedEventArgs e) { using (IsolatedStorageFile

Custom Video Recording Screen

耗尽温柔 提交于 2019-11-29 15:49:54
问题 I am trying to implement an application which when starts starts video recording automatically with my custom video recording screen with my own button to stop the recording and with other buttons. What I have done is designed the layout with buttons till now but how to add video recording screen in the background..Please help.! 回答1: This is how I achieved it: public class MainActivity extends Activity implements SurfaceHolder.Callback { private MediaRecorder recorder; private SurfaceHolder

iPhone: AVCaptureSession capture output crashing (AVCaptureVideoDataOutput)

左心房为你撑大大i 提交于 2019-11-29 14:43:40
问题 I'm capturing video and converting it to a CGImage to do processing on it. It will work for a ~10 seconds, get memory warning and then crash (usually it says data formatters were temporarily unavailable). Can someone help me solve the problem? - (void) captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection { // CONVERT CMSAMPLEBUFFER INTO A CGIMAGE CVImageBufferRef imageBuffer =