video-capture

How to capture video from webcam(in java)? [duplicate]

南笙酒味 提交于 2019-12-01 08:54:38
This question already has an answer here: Capturing image from webcam in java? 16 answers I want to develop an application in java to capture video from webcam and store it onto a particular location.Can anyone provide me the working code? What type(usb,ip etc..) of webcam is the best in order to develop the application. Please help me. how to proceed? Check out David's solution using JMF: http://www.mutong.com/fischer/java/usbcam/ I would recommend using webcam-capture project (I'm the author). There is a example of how to record video from webcam device - you can find it here . This project

Webcam MJPG capture streams are unavailable on Windows 10

喜你入骨 提交于 2019-12-01 08:40:16
问题 On Windows 10 build 10.1607.14393.10 (aka Anniversary edition) I am unable to get MJPG capture streams anymore. Used to be both MJPG and YUY2 resolutions, now I am getting only YUY2 in DirectShow (Kernel Streaming) and in Media Foundation MJPG converted media types into NV12 way before IBaseFilter source is connected to anything. Tried on multiple systems with different cameras. Any ideas what might be wrong? 640x480 @30 YUY2 ... 640x480 @30 MJPG <- gone ... DirectShow: com_t<IAMStreamConfig>

How many Program/Erase cycles does the iPhone's flash memory have? [closed]

那年仲夏 提交于 2019-12-01 06:46:57
Not sure that this is the right site for this question, but since there are many smart people here maybe someone knows. I'm building an app that needs to capture video continuously, but keep only the last few minutes (say 5~15). It is easy to implement this by splitting the video to 30-seconds files, and delete the least recent ones. However, this means that the app writes and erases large files all the time, and I'm worried that it'll wear the device's flash memory. I've been trying to find the P/E cycles spec for the iPhone (and for popular Android phones), with no success. Does anybody know

list file extensions supported by OpenCV

送分小仙女□ 提交于 2019-12-01 06:28:48
In OpenCV, I see imread() and VideoCapture() both take a string to a file path of multiple extensions. Is there a way to get a list of extensions that are supported by them? For example, getting a list of "jpg", "png", "mov", "mpg", etc.? I assume this is system dependent and others have needed to query this at runtime. Furthermore, how is support determined? If have something like the below code and the Mat I get back always seems partially corrupted (I can see a bit of the image). It doesn't seem to change regardless of the frame number I ask for. I can play this video in my video player

How many Program/Erase cycles does the iPhone's flash memory have? [closed]

不打扰是莪最后的温柔 提交于 2019-12-01 05:54:38
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . Not sure that this is the right site for this question, but since there are many smart people here maybe someone knows. I'm building an app that needs to capture video continuously, but keep only the last few minutes (say 5~15). It is easy to implement this by splitting the video to 30-seconds files, and delete

Hololens - Access Camera Frames

我们两清 提交于 2019-12-01 05:29:11
问题 How can I access all frames in a video stream from the hololens camera, when in 3D mode? I'm using C#. The unity VideoCapture class doesn't seem to provide this: http://docs.unity3d.com/550/Documentation/ScriptReference/VR.WSA.WebCam.VideoCapture.html and the microsoft MediaCapture class with method MediaCapture.StartPreviewToCustomSinkAsync is not very well documented. https://msdn.microsoft.com/en-us/library/windows/desktop/ms701626(v=vs.85).aspx 回答1: You can try using the MediaCapture

list file extensions supported by OpenCV

浪子不回头ぞ 提交于 2019-12-01 04:25:51
问题 In OpenCV, I see imread() and VideoCapture() both take a string to a file path of multiple extensions. Is there a way to get a list of extensions that are supported by them? For example, getting a list of "jpg", "png", "mov", "mpg", etc.? I assume this is system dependent and others have needed to query this at runtime. Furthermore, how is support determined? If have something like the below code and the Mat I get back always seems partially corrupted (I can see a bit of the image). It doesn

How do I render a video from a list of time-stamped images?

感情迁移 提交于 2019-12-01 03:24:54
I have a directory full of images following the pattern <timestamp>.png , where <timestamp> represents milliseconds elapsed since the first image. input.txt contains a list of the interesting images: file '0.png' file '97.png' file '178.png' file '242.png' file '296.png' file '363.png' ... I am using ffmpeg to concatenate these images into a video: ffmpeg -r 15 -f concat -i input.txt output.webm How do I tell ffmpeg to place each frame at its actual position in time instead of using a constant framerate? Following LordNeckbeard's suggestion to supply the duration directive to ffmpeg's concat

Zooming while capturing video using AVCapture in iOS

强颜欢笑 提交于 2019-12-01 02:01:15
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 beginConfiguration]; session.sessionPreset = AVCaptureSessionPresetMedium; AVCaptureVideoPreviewLayer

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

可紊 提交于 2019-11-30 23:37:05
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 something like cap = cv::VideoCapture("/dev/video"); ? with current OpenCV 3.2.0 you can create a new