video-capture

Can use AVCaptureVideoDataOutput and AVCaptureMovieFileOutput at the same time?

断了今生、忘了曾经 提交于 2019-12-17 03:46:31
问题 I want to record video and grab frames at the same time with my code. I am using AVCaptureVideoDataOutput for grab frames and AVCaptureMovieFileOutput for video recording. But can't work and get the error code -12780 while working at the same time but individual. I searched this problem but get no answer. Did anyone have the same experience or explain? It's really bother me for a while time. thanks. 回答1: I can't answer the specific question put, but I've been successfully recording video and

2 usb cameras not working with opencv

北慕城南 提交于 2019-12-17 03:21:18
问题 I'm working on a project of computer vision and I need to use two cameras using opencv library. I tried this code but with two webcams from USB port it doesn't work while it works if I use one usb camera and the camera of my pc. CvCapture* capture[2]; capture[0] = cvCreateCameraCapture(0); capture[1] = cvCreateCameraCapture(1); if(!capture[0] && !capture[1]) printf("Webcam error\n"); I'm working on windows 7 on an acer aspire 5742g. Is it a problem of the bus of my computer? The cameras are 2

2 usb cameras not working with opencv

六月ゝ 毕业季﹏ 提交于 2019-12-17 03:20:39
问题 I'm working on a project of computer vision and I need to use two cameras using opencv library. I tried this code but with two webcams from USB port it doesn't work while it works if I use one usb camera and the camera of my pc. CvCapture* capture[2]; capture[0] = cvCreateCameraCapture(0); capture[1] = cvCreateCameraCapture(1); if(!capture[0] && !capture[1]) printf("Webcam error\n"); I'm working on windows 7 on an acer aspire 5742g. Is it a problem of the bus of my computer? The cameras are 2

how to detect pupil in matlab? [closed]

狂风中的少年 提交于 2019-12-14 04:08:40
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 7 years ago . Below is a source code that i download from somewhere, it is able to detect red color objects and display its center coordinate. a = imaqhwinfo; [camera

How to extract audio/video clips using the libvlc API or FFmpeg API?

喜你入骨 提交于 2019-12-14 01:32:52
问题 I am supporting a C++/Qt application that uses libvlc to playback audio/video streams. My task is to enhance the application to allow the users to extract video clips by setting start / end times and capturing the video in between to a file. I've implemented the start/end markers, and can seek the audio/video to the correct times for playback. My problem now is to somehow capture this stream to a file in a variety of formats / compressions. I've been searching through the Doxygen links in

cv2.VideoCapture doesn't return frames

*爱你&永不变心* 提交于 2019-12-13 20:00:07
问题 I am trying to save a webcam video with wx Buttons. This is my code def OnRecord(self, evt): capture = cv2.VideoCapture(0) if (not capture.isOpened()): print "Error" # video recorder fourcc = cv2.cv.CV_FOURCC('D', 'I', 'V', 'X') # cv2.VideoWriter_fourcc() does not exist out = cv2.VideoWriter("output.avi", fourcc, 9.0, (640, 480), True) # record video while (capture.isOpened()): ret, frame = capture.read() if not ret: print "Capture Failed" else: out.write(frame) cv2.imshow('Video', frame) But

How do you compress captured video in Silverlight?

荒凉一梦 提交于 2019-12-13 19:08:48
问题 One of the big deals in Silverlight v4 is audio/video capture... but I haven't found an example yet that does what I want to do. So: How do you capture audio/video with Silverlight (from a webcam), and then save it as a compressed format (WMV or MP4)? The idea here is to upload it after compression. Have already looked at this blog post for the capture piece, but need to find a way to compress audio/video for upload. 回答1: Silverlight does not support video encoding and more likely this won't

android.media.MediaExtractor. Anyone got this beast to work? “Failed to instantiate extractor” exception

核能气质少年 提交于 2019-12-13 16:56:40
问题 Trying to run this (example code from developer.android.com) MediaExtractor extractor = new MediaExtractor(); extractor.setDataSource("/sdcard/myvideo.mp4"); Getting "Failed to instantiate extractor" exception on the second line. Tried to place the file in internal storage, tried to access via FileDescriptor, nothing helped. Anyone?? I/MonoDroid( 6802): UNHANDLED EXCEPTION: Java.IO.IOException: Exception of type 'Java.IO.IOException' was thrown. I/MonoDroid( 6802): at Android.Runtime.JNIEnv

Direct screen pixel/framebuffer access [closed]

时光毁灭记忆、已成空白 提交于 2019-12-13 16:16:09
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 days ago . I'd like to try and create a program playing a game. I.e. "a bot". I want to be able to directly access the pixels on the screen. I.e. have my program "see" a game and then "make a move"(or at least draw a picture of what move it would make). Both Windows and Linux advice is

Software and/or Hardware solution for multi camera recording and streaming setup

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 16:12:27
问题 In a nutshell, I need a way to stream (or otherwise play) a movie along with 3 to 4 other 'show angles', with the user being able to change the stream they're viewing. End result should be a video player with links/buttons for the other angles, allowing the user to switch camera streams (angles) as they wish. Here's an example: You load a page with a DIY video.. and since it includes a fairly detailed assembly process, there are 4 cameras recording different angles or locations of the work