Use Stack Overflow for Teams at work to find answers in a private and secure environment. Get your first 10 users free. .

Questions tagged [video-capture]

Questions related to computer oriented video capture and the programming tools and solutions for dealing with captured frames from a video.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

I am working on Media Capture module in Ionic. How do I design Custom Video Recorder in Ionic?

I am working on Media Capture module in Ionic. How do I design a Custom Video Recorder in Ionic? I am working in Ionic 5.2.8 (Latest) version. I am planning to build a video recorder in Ionic and came ...
1
vote
1answer
26 views

How to use the “H.264 UVC 1.5 camera encoders” in Windows Media Foundation

I am trying to write some code on Windows based on Windows Media Foundation to work with some USB UVC1.5 cameras, which can provide the H.264 stream. Now I can dump the H.264 stream from the cameras ...
0
votes
2answers
40 views

VideoCapture will not open the video

I am trying to open a video and write it to a location: #include <opencv2/opencv.hpp> #include "opencv2/core/core.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc....
1
vote
1answer
42 views

Video capture by FFMPEG with closed captions data

I'm trying to capture TV broadcasting from Avermedia C027 card using FFMPEG: ffmpeg -y -re -rtbufsize 500M -video_size 1920x1080 -framerate 29.97 -f dshow -i video="@device_pnp_\\?\pci#ven_1a0a&...
-1
votes
0answers
33 views

Method to capture frames from a dvb-t tuner card (in Windows)

I am looking for a method to capture channels from a DVB-T tuner card (AvermediaTD310) for a videoplayer application I am creating in python. (for Windows OS) I tried using VLC media player to ...
0
votes
1answer
84 views

MTCNN_face_detection_alignment lagging in IP camera, Convention behind opencv cv2 videocapture frame matrix

I am just trying to detect and recognize faces from the frame read through CV2 VideoCapture. For detection, using Tensorflow implementation of the face detection / alignment algorithm found at https:/...
0
votes
0answers
11 views

PyInstaller seems is not able to create the video which created by video_capture of opencv

I generate .EXE file from my scripts by PyInstaller. but the when I run the project it couldn't to create the video that it supposed to do while when I run the program from IDE it works well. I don't ...
1
vote
1answer
56 views

How to change video resolution in Swift

Is there a way to export a video with resolution 480 x 960 ? I know there are libraries for this but I'd rather do it without installing more pods on my project if possible. I am converting a ...
0
votes
1answer
41 views

I need to convert my UIImagePickerController code from Objective-C to Swift syntax

All of my apps were written in Objective-C and I would like to convert them to swift. I have gotten it all finished except the camera code is driving me insane, as all of the UIImagePickerController ...
0
votes
2answers
49 views

Does the VideoCapture method of the OpenCV library (in Python) process every frame, or does it also skip frames when doing hefty processing?

I'm using the OpenCV library in Python to read live videoframes for the purpose of tracking multiple objects in each frame. I do this using the VideoCapture method, with the code looking something ...
3
votes
1answer
68 views

Can't set frame width and height with [OpenCV] cv2.VideoCapture.set()

I am trying to reduce the frame/window size of my video capture to 320x180 but I can't seem to do it. I am using a Windows Kinect for Xbox One and its connected to my pc using an adapter. I have ...
0
votes
0answers
18 views

Saving MediaRecorder output in a format that can be shared on Whatsapp

I'm working on a website that records video with MediaRecorder, and I found that my Chrome on Mac supports multiple WEBM recording formats for new MediaRecorder(videoStream, { mimeType: ... }) like ...
3
votes
1answer
40 views

Python Opencv Mulithreading with RTSP feeds

I'm working on a small project for personal use where I want to load the CCTV streams I have from home into Opencv. I've done alot of research and understand that I need to use multithreading to get ...
0
votes
0answers
24 views

Python OpenCV video.get(cv2.CAP_PROP_FOURCC) always returns 0.0

I am using python and OpenCV to read video from RTSP. The minimal code is like: import cv2 url = 'rtsp://user:[email protected]' video = cv2.VideoCapture(url) if __name__ == '__main__': ...
0
votes
1answer
74 views

VideoCapture with “ int main(int argc, char **argv) ”

I'm trying to use VideoCapture. a part of my code is below. when I run my code, I got this : Error! Insufficient parameters provided. How can I use my video with this code. I want to open a ...
0
votes
1answer
20 views

Cant read UDP network stream in h264 from opencv4nodejs

i'm trying to get a video stream from a djy drone 'Tello' with nodejs. the UDP server is working because i can manually get the stream and show it on my mac with "ffplay udp://198.168.10.1:11111". ...
0
votes
1answer
86 views

Why is gpu used when reading image from webcam using VideoCapture [closed]

When I use cv::VideoCapture to read from web cam, my gpu shows 17% usage, which I don't know why. I always assume this is a pure cpu thing. My system is Win10 with opencv 4.0. I tried to compile with ...
0
votes
0answers
34 views

Best way to load videos - VideoCapture vs Frames

I require loading a video for my project and I wanted to find fastest way to load videos. I am comparing cv2 VideoCapture vs loading frames of video (already preprocessed). Here is code I wrote for ...
0
votes
1answer
24 views

Swift/iOS: Capture only the previous 10 seconds of a video recording

I want to constantly record a video stream using my iOS device, but given some action (Double tap screen etc.) I want to capture the 10 seconds prior to me invoking the action. I am not sure how to ...
0
votes
2answers
46 views

Converting Visual C++ Media Foundation Capture application to C++ Builder

I am trying to convert the Microsoft "CaptureEngine video capture sample" code from Visual C++ to Embarcadero C++ Builder. https://code.msdn.microsoft.com/windowsdesktop/Media-Foundation-Capture-...
0
votes
1answer
46 views

Delay in capturing camera frames using openCV

I am writing a program to capture camera frames using opencv 2.49. My problem is that the camera cap capture up to 500 FPS. But after the 5th frame capturing frames drop to 40 FPS and some times go ...
0
votes
0answers
34 views

How to detect image which has blocking(pixelated) artifact by opencv?

I captured frames from music video with openCV(python), but some of frames showed pixelated artifact(i.e. like image below). I want to remove this bad quality image from list of capture, but I don't ...
0
votes
0answers
48 views

Unable to getBackends on VideoCapture - OpenCV3 warnings are now OpenCV4 errors?

I've got a Python app running 24/7, processing .mp4 files as they are saved into a folder by a security camera. I've previously noticed that I occasionally got warnings showing up in the Python ...
0
votes
0answers
23 views

Emgu discover webcam connection loss not working everytime

I've run into a problem when using emguCV (3.4.3) and its videocapture class. I'm developing on a Win10 virtual machine and my code detects very accurate when my webcam has been disconnected. ...
0
votes
0answers
26 views

What specific cameras actually use gphoto2 and Raspberry Pi for capturing VIDEO?

I am trying to use a DSLR Nikon D5300 with an RPi and gphoto2 to take videos and I seem to be running into some errors. I am able to capture video in the terminal but a PTP Error comes up no matter ...
0
votes
1answer
27 views

Visual Studio 2017 runsettings video capture settings, wmv 0 bytes

Has anyone got this to work? I have not seen anything on this other than people having the issue of the video not being recorded. It is creating a wmv file of 0 bytes and a recordedmedia.trmx of 1 kb. ...
0
votes
0answers
32 views

How to open multiple VideoCapture simultaneously with opencv?

Create and open video capture from ip camera take about 2 seconds. I want to open over 10 video captures and for better performance i want to do this work by creating video captures in different ...
12
votes
1answer
165 views

USB Camera: OpenCV VideoCapture Returns Partial Frames

I am developing a program to process frames from a USB camera on Ubuntu. Currently I'm using OpenCV in python. When I try to read a frame using a cv2.VideoCapture object I only get partial frames. ...
2
votes
1answer
366 views

How to optimize frame grabbing from video stream in OpenCV?

I ran into a problem problem of low frame capture efficiency in OpenCV. Hardware & Software. Raspberry Pi 3 (1,2 GHz quad-core ARM) with HDMI Display IP camera: LAN connected, RTSP, H264 codec,...
1
vote
0answers
61 views

Reading from Kinect Camera rather than the default webcam to detect objects in the frame

I have found two sample codes that accomplish separate tasks that I am trying to get to work in tandem. The Fist code opens the webcam from my laptop and reads the video stream to detect a certain ...
-1
votes
1answer
30 views

DSLR Canon Videocapture in OpenCV

I need to capture frame from a DSLR camera. I know that i can use Videocapture cap(0); for capture from default webcam. If i connect with usb the camera and run the code, It seems like he cant find ...
2
votes
1answer
62 views

How to maintain constant FPS when grabbing frames with opencv and python?

I am using OpenCV4 along with python 3 to open a webcam, grab the frames and display them in a window, just like the first code tutorial provided here. However, it takes a different amount of time ...
0
votes
1answer
31 views

JAVA-OpenCV: Video Writer not opening

I want to save the video I'm capturing with opencv in Android and I've chosen to use the openCV VideoWriter class (if there's a better way for Android please let me know). The problem is that I'm not ...
0
votes
0answers
43 views

Is it possible to record a video of the contents of an HTML element?

So I want to use javascript and css to create an animated video of maps. I imagined to do some animations using leaflet etc and use some javascript to record a video of it. However so far I found ...
0
votes
0answers
12 views

the video object created by cv2 doesn't work appropraitely

I have a visualization program, it has an option to speed up the visualization process at the end of that a video file created. the problem is here when I put the speed at 1000 Ms(real time) the video ...
0
votes
0answers
27 views

How can I use the tf.image.ssim function on an OpenCV video capture, frame-by-frame?

I want to calculate the SSIM index of two back to back frames, coming from a webcam feed (using OpenCV). Using compare_ssim from skimage.measure depends entirely on the CPU and is a pain to use on ...
0
votes
0answers
22 views

Height and Width flipped when doing video capture in Chrome on an Android Phone

When using navigator.mediaDevices.getUserMedia to capture video using JavaScript I notice that Chrome on Android specifically sets the video height to the width value provided to the getUserMedia ...
0
votes
0answers
37 views

How to Convert UDP raw HA264 data and display as jpeg image in C#

I need to display UDP raw data coming from my Drone. Unfortunately the Drone does not just use one of the existing standards for streaming video such as RTSP. Instead, the raw video packets are sent ...
1
vote
1answer
47 views

Using Directshow C# How top get live feed from multiple USB cameras in multiple windows without crashing

I am working on a project in C# using Directshow which mainly focuses on image processing and printing in real time. I have written a code for capturing the images and displaying them in a output ...
0
votes
1answer
62 views

Batch interval screenshot with timestamps

I'm trying to make a script to batch screenshot videos per an interval with bash and ffmpeg (e.g. 1 screenshot per second) But the problem is that ffmpeg doesn't have an option to output the frames ...
2
votes
1answer
86 views

Direct show capture pin configure run time live gamer portable 2 plus

I am trying to configure the output pin of live gamer portable 2 plus for lower frame rates. Through GraphStudioNext I can access the configuration through the capture pin and change the frame rate. ...
0
votes
0answers
26 views

Efficiently rewinding a VideoCapture session from a camera

Is there a way using OpenCV (or another tool) to keep a rolling buffer of N seconds of an encoded video stream from an IP camera? This would be so the video can be rewound and replayed. In order to ...
0
votes
1answer
105 views

Video is much faster than audio when muxed in GStreamer

I am trying to learn to record X11 windows' contents to do game screencasts for Youtube. This should be a fairly trivial task, but it already ate a full evening. Now I have learned a bit about muxing ...
0
votes
1answer
71 views

How to capture a video behind proxy with opencv

At the company I am behind a proxy and I could not get openCV's VideoCapture to work with videos from a http address. I am working on Windows 7. The openCV has a java API, but the calls are running ...
2
votes
0answers
139 views

Python OpenCV with Logitech C922 only gives 10 fps

I know similar threads exist, no trick worked for me though, so I am asking here again. I am using two Logitech C922 webcams. Theoretically, they can records with 60fps on 720p. However, using OpenCV (...
2
votes
0answers
72 views

OpenCV VideoCapture in Win10 VS17 cannot open more than four USB 3.0 cameras

I am trying set up a multi-camera system in VS17 win10 OpenCV environment using VideoCapture function from OpenCV library. Cameras are Basler USB 3.0 (3840*2748 monochrome). I had no issue to open and ...
0
votes
0answers
20 views

Video recording with duration limit in android

I need to record video for 40 seconds in my app. I am using MediaStore.ACTION_VIDEO_CAPTURE intent for video recording and using MediaStore.EXTRA_DURATION_LIMIT to set duration limit of video ...
0
votes
0answers
38 views

Unable to export video using SCAssetExportSession

I have used screcorder for capturing the video and I am using SCAssetExportSession for exporting the video. I am able to export video only for the first time after that I am getting following error: ...
0
votes
0answers
12 views

How to create a video from map trajectory

I have a mobile app that track user's location. I want to create a video from tracked points on map. something like relive.cc can anybody suggest a solution, server-side or client-side doesn't matter
1
vote
2answers
214 views

OpenCV: How to draw on just the first frame of a video file and then continue showing the entire video

I am using the opencv-library in python. I have opened an existing video file and wrote a little script that allows me to draw a rectangle anywhere in the video. The problem is: I want to draw this ...