Questions related to computer oriented video capture and the programming tools and solutions for dealing with captured frames from a video.
Questions tagged [video-capture]
2460 questions
29
votes
6 answers
MediaRecorder.stop() stop failed: -1007
I am recording video with MediaRecorder. My code works fine on 2.3.3 but fails on 4.0.3.
The issue is following: the code mediaRecorder.stop() throws the RuntimeExeption
java.lang.RuntimeException: stop failed.
at…

Alex
- 1,319
- 3
- 15
- 33
28
votes
2 answers
How can I capture the screen to be video using C# .NET?
Is there some library to capture a screen to be a compressed video file or some solution that can do it?

Gramero
- 1,835
- 3
- 24
- 26
27
votes
4 answers
Simultaneous AVCaptureVideoDataOutput and AVCaptureMovieFileOutput
I need to be able to have AVCaptureVideoDataOutput and AVCaptureMovieFileOutput working at the same time. The below code works, however, the video recording does not. The didFinishRecordingToOutputFileAtURL delegate is called directly after…

user346443
- 4,672
- 15
- 57
- 80
25
votes
6 answers
What is the best method to capture images from a live video device for use by a Java-based application?
I am looking into an image processing problem for semi-real time detection of certain scenarios. My goal is to have the live video arrive as Motion JPEG frames in my Java code somehow.
I am familiar with the Java Media Framework and, sadly, I…

Bob Cross
- 22,116
- 12
- 58
- 95
24
votes
12 answers
Why can't I open avi video in openCV?
I just wrote a simple video reading example with openCV2.3.1, but it seems that I cannot open avi video anyway :(
VideoCapture capture("guitarplaying.avi");
if(!capture.isOpened()){
std::cout<<"cannot read video!\n";
return -1;
}
Mat…

yvetterowe
- 1,239
- 7
- 20
- 34
24
votes
1 answer
recording from webcam using ffmpeg at high framerate
I have a webcam (model Brio 4K stream edition from Logitech) that is able to record at resolution 1280x720 and 60 fps in guvcview on Ubuntu 16.04. I then use a video codec 'raw camera input'. This is working fine and as expected, and the result is…

Zorglub29
- 6,979
- 6
- 20
- 37
24
votes
6 answers
OpenCV + Java = UnsatisfiedLinkError
I need capture a video stream from my USB webcam, for this i use Opencv 2.4.6 for developing in Java. I follow the steps listed in here
I add the "C:\opencv\build\java\x64" dir to my System PATH and include the "opencv-246.jar" file into my…

efmoyano
- 241
- 1
- 2
- 3
23
votes
3 answers
How to expose a virtual camera on macOS?
I want to write my own camera filters for videochat, and ideally apply them in any/all of the popular videochat applications (Zoom, Hangouts, Skype, etc.). The way I imagine this working is to write a macOS application that reads the camera feed,…

user18184
- 488
- 5
- 14
23
votes
2 answers
VideoCapture.open(0) won't recognize pi cam
I have been working with my Raspberry Pi 2B for a while now. Testing the Pi cam using raspistill works great but trying to use OpenCV functions such as VideoCapture.open(); won't work. trying the same command with a USB camera works just fine. I…

DMEM
- 1,573
- 8
- 25
- 43
23
votes
7 answers
How to capture video in Android?
I would like to create a video recorder and so far haven't figured out how to set parameters in order to successfully go through MediaRecorder.prepare() method.
Executing the following method
public void start() throws IOException{
String state…

Niko Gamulin
- 66,025
- 95
- 221
- 286
22
votes
5 answers
Record a video of the screen using .NET technologies
Is there a way to record the screen, either desktop or window, using .NET technologies?
My goal is something free. I like the idea of small, low CPU usage, and simple, but I would consider other options if they created a better final product.
In a…

Chris Craft
- 5,285
- 6
- 46
- 63
21
votes
1 answer
How to record a video with avfoundation in Swift?
I am trying to figure out how to record a video using AVFoundation in Swift. I have got as far as creating a custom camera but I only figured out how to take still pictures with it and I can't figure out how to record video. From what I understand…

Garret Kaye
- 2,412
- 4
- 21
- 45
21
votes
4 answers
Screen Capture with OpenCV and Python-2.7
I'm using Python 2.7 and OpenCV 2.4.9.
I need to capture the current frame that is being shown to the user and load it as an cv::Mat object in Python.
Do you guys know a fast way to do it recursively?
I need something like what's done in the example…

Renan Vilas Novas
- 1,210
- 1
- 10
- 22
19
votes
6 answers
Swift - How to record video in MP4 format with UIImagePickerController?
I am creating a app in which i need to record videos and upload it to a server. Now my project has a android version too. To support android version i have to record the videos in mp4 format. I followed this tutorial to set the UIImagePicker media…

Kautham Krishna
- 967
- 1
- 14
- 33
19
votes
1 answer
How to cut part of mp4 video using ffmpeg without losing quality?
hi all i got an mp4 video using ffmpeg but now i want to cut part of this mp4 . For example i only want first 25 min of the mp4 video from 40 min video. could you guys tell me what command i can use in ffmpeg for windows to achieve this task…

user1788736
- 2,727
- 20
- 66
- 110