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
14
votes
5 answers
CAP_PROP_FRAME_COUNT constant is missing in opencv `cv2` python module
How to access to CAP_PROP_FRAME_COUNT from opencv in python?
I tried this:
import cv2
cap = cv2.VideoCapture('myvideo.avi')
frames_count, fps, width, height = cap.get(cv2.CAP_PROP_FRAME_COUNT), cap.get(cv2.CAP_PROP_FPS),…

ProGM
- 6,949
- 4
- 33
- 52
14
votes
2 answers
opencv write webcam output to avi file
I am trying to create an avi video from my webcam output using opencv. No exceptions are thrown, however the avi file it creates is 414 bytes in size and does not grow.
Also it will not play with any media player. I suspect there is something wrong…

noobie
- 2,427
- 5
- 41
- 66
13
votes
5 answers
Rotating Video with AVMutableVideoCompositionLayerInstruction
I'm shooting video on an iPhone 4 with the front camera and combining the video with some other media assets. I'd like for this video to be portrait orientation - the default orientation for all video is landscape and in some circumstances, you have…

Hunter
- 4,343
- 5
- 42
- 44
13
votes
5 answers
Skip frames and seek to end of RTSP stream in OpenCV
I capture and process an IP camera RTSP stream in a OpenCV 3.4.2 on Raspberry Pi. Unfortunately the processing takes quite a lot of time, roughly 0.2s per frame, and the stream quickly gets delayed.
I don't mind if I skip some frames so I'm looking…

MLu
- 1,218
- 2
- 15
- 28
13
votes
2 answers
capturing rtsp camera using OpenCV python
I have a remote camera streaming through rtsp protocol and am trying to access it in OpenCV 2.13.1 using python with following code.
camera = cv2.VideoCapture("rtsp://admin:@/xyz/video.smp")
However, when I do that I get the following…

Nik391
- 517
- 2
- 7
- 24
13
votes
3 answers
v4l2 Python - streaming video - mapping buffers
I'm working on a video capture script for Python in Raspbian (Raspberry Pi 2) and I'm having trouble using the Python bindings for v4l2, since I have no success on memory-maping the buffers.
What I need:
Capture video from a HD-WebCam (will be…

David
- 453
- 1
- 4
- 14
13
votes
6 answers
Video Capturing + Uploading + Processing + Streaming back - .NET & C#
We are trying to find out any technologies/libraries available in .NET stack (even wrappers on top of 3rd party dlls) that'll help us to build an app that can
1 - Capture an image from a user's video device
2 - Upload it realtime to a server
3 -…

amazedsaint
- 7,642
- 7
- 54
- 83
13
votes
1 answer
android video recording with duration limit and low quality
I need to record video for 8 seconds in my app. I am using MediaStore.ACTION_VIDEO_CAPTURE intent for video recording and using these parameters (MediaStore.EXTRA_VIDEO_QUALITY,MediaStore.EXTRA_DURATION_LIMIT) to set quality and duration limit of…

Mukesh Rana
- 4,051
- 3
- 27
- 39
13
votes
2 answers
Record video with a size of 480 * 480 px in android?
I have built a module similar to vine app video recording. But I am not able to make the video size to 480x480 px . Is there any way to do that. Thanks

stack5
- 430
- 2
- 10
12
votes
2 answers
How to apply filter to Video real-time using Swift
is possible to apply filter to AVLayer and add it to view as addSublayer? I want to change colors and add some noise to video from camera using Swift and I don't know how.
I thought, that is possible to add filterLayer and previewLayer like…

David Sýkora
- 574
- 1
- 3
- 16
12
votes
1 answer
Relation between horizontal, vertical and diagonal Field-of-View
Is there a mathematical relation between those values? If I know hFOV and vFOV can I calculate the diagonal FOV without involving other values like focal lengths etc?
My first thought was to use Pythagorean theorem but maybe it's wrong.

Shepard
- 801
- 3
- 9
- 17
12
votes
5 answers
Playback loop option in OpenCV videos
I am trying to build a playback loop option for an OpenCV video. My program uses Python multiprocessing, and has a button send loopswitch calls through queue4 to enable or disable the loop option. My specific problem is that my video freezes on the…

Raoul
- 1,872
- 3
- 26
- 48
12
votes
5 answers
Capture android screen and create video programmatically
In Android/Java, Is there any code example to capture the screenshot of a computer with good frames per second programatically and create video?
I'd like a tutorial or full source code to do this. I'd like the program to work with and without the…

androidqq6
- 1,526
- 2
- 22
- 47
12
votes
2 answers
VideoCapture is not working in OpenCV 2.4.2
I recently installed OpenCV 2.4.2 in Ubuntu 12.04.
cap = VideoCapture(0)
is working. but I can't grab frames from some video source.
cap = VideoCapture("input.avi")
img = cap.read()
gives me a numpy with all zero elements.
I have also installed…

Froyo
- 17,947
- 8
- 45
- 73
11
votes
1 answer
Video recording to a circular buffer on Android
I'm looking for the best way (if any...) to capture continuous video to a circular buffer on the SD card, allowing the user to capture events after they have happened.
The standard video recording API allows you to just write directly to a file, and…

lacop
- 2,024
- 4
- 22
- 36