video-capture

Intent to take video in android

二次信任 提交于 2020-01-01 09:29:06
问题 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

Intent to take video in android

浪尽此生 提交于 2020-01-01 09:29:05
问题 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

Opencv open a video files but capture isOpened always falses

馋奶兔 提交于 2020-01-01 07:21:16
问题 I tried to use opencv java interface to capture the video, I find isOpened is always false. I have tried different video format and different version (2.4.11 and 3.0.0), both met the same issues. I have configure "-Djava.library.path=D:\Project\opencv\opencv3.0\build\x64\vc12\bin", and have copied opencv_java300.dll to this folder. And I checked tips OpenCV 3.0 VideoCapture doesn't open video file in Java and OpenCV 2.4 VideoCapture not working on Windows, neither works for me. Anyone knows

Pause & resume video capture for same file with AVFoundation in iOS

。_饼干妹妹 提交于 2020-01-01 04:58:09
问题 I'm trying to figure out how I can implement functionality to repeatedly pause and resume video capture in a single session, but have each new segment (the captured segments after each pause) added to the same video file, with AVFoundation. Currently, every time I press "stop" then "record" again, it just saves a new video file to my iphone's album and starts capturing to a separate/new file. I need to be able to press the "record/stop" button over and over... only capture video & audio when

Know how many people are on a video [closed]

耗尽温柔 提交于 2020-01-01 03:18:10
问题 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 6 years ago . So there it is, I want to get a camera video stream from a server, and be able to know how many people appear on it. I can install any OS (MAC, Windows, Linux) on my server, use any API (free or paid) and any language (C++, php etc.) to do so. I already found some interesting things, such as OpenCV but I think

Cross-Platform webcam access [closed]

柔情痞子 提交于 2020-01-01 03:06:07
问题 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 4 years ago . I'm looking for a cross-platform video capture library, for webcam access. One that wraps V4L/V4L2 on Linux, DirectShow on Windows, and QuickTime on the Mac. C or C++ is preferred, but I can work in Java or Python if those have better options for libraries. 回答1: The OpenCV (Open Source Computer Vision) works

How to get Bytes from CMSampleBufferRef , To Send Over Network

那年仲夏 提交于 2019-12-31 07:56:52
问题 Am Captuing video using AVFoundation frame work .With the help of Apple Documentation http://developer.apple.com/library/ios/#documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/03_MediaCapture.html%23//apple_ref/doc/uid/TP40010188-CH5-SW2 Now i did Following things 1.Created videoCaptureDevice 2.Created AVCaptureDeviceInput and set videoCaptureDevice 3.Created AVCaptureVideoDataOutput and implemented Delegate 4.Created AVCaptureSession - set input as AVCaptureDeviceInput and set

How to find object on video using OpenCV

半城伤御伤魂 提交于 2019-12-30 06:16:11
问题 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? 回答1: 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

blackmagic SDK in c#

纵饮孤独 提交于 2019-12-30 04:24:13
问题 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.

Android: How to initialize MediaRecorder without a valid surface for video preview?

孤街醉人 提交于 2019-12-30 03:15:11
问题 I am building a camera app, where videos are continuously being captured and saved to the SD card. The videos are short (few minutes), and their length are preset with setMaxDuration(). The whole process works fine, while the main activity is in the foreground. But, when I go to another activity (e.g. settings), the video recording works in the background only until max duration is reached. The file is saved, but a new sequence can not be started because prepare() fails, apparently because