ttkda.blogg.se

Logitech 720p
Logitech 720p








logitech 720p

At 30 frames per second, video quality is smooth, while images are crisp, colorful and contrasted. Make high-definition video calls on your favorite platforms like Skype™. While (int(time.KEY FEATURES WIDESCREEN HD 720P VIDEO CALLS # Save obtained frame into video output fileĭef _exit_(self, exc_type, exc_value, traceback): Self.out = cv2.VideoWriter(_file_name, dec, fps, (x, y))

logitech 720p

Here the code: rom threading import Thread, Lock Seems like all the pictures captured are almost the same. Nevertheless, even if my video is 30fps, it still looks like a 5fps video. Here are some guides I've checked but couldn't get it working with my code: So my question is: Any idea how could I do it? Is it possible to merge both codes? Or is there a better way? The problem of this second code is that I don't really know how to introduce my arguments of (recording during 5 seconds, wait 10 seconds, and so on) or how many threads I'm using (I can specify number of buffers from my camera using V4L2 tools, don't know how relevant is it). Video_stream_widget = VideoStreamWidget() Out = cv2.VideoWriter("output.avi",fourcc, fps, (x,y)) # Read the next frame from the stream in a different thread Self.thread = Thread(target=self.update, args=()) # Start the thread to read frames from the video stream I've seen I can use multithread, and I'm able to record a video with 30fps (at least that's what ffprobe says, although I'm not sure it is) with the following code: from threading import Thread With this code above, my video of 30fps is shorter than expected, as it cannot take more than ~5fps. #Here I added time.sleep to wait for the next capture While( int(time.time() - start_time) < capture_duration+1 ): #start recording for a determined duration # Lapse of time between videos (s), from beginning to beginningĭata_string= time.strftime("%m-%d-%H-%M-%S")įor i in range (0,2): #Let's say I only want to do this process twice, to simplifyĬap = cv2.VideoCapture(2) #my camera is 2, but could be 0įourcc = cv2.VideoWriter_fourcc('M','J','P','G') # The duration in seconds of the video captured (s) Thus, to improve the fps I should use multithreading, although I can't get to implement in my code any of the examples I've seen. I can set the fps at 30 but then the video is about 6 times shorter (python takes video at ~5fps but records it as it was 30fps). I'm using a Logitech c920, but with a good resolution (eg 1920x1080) I'm stack at 5fps. I'd like to get at least 20-30fps with a resolution of 720p or 1080p. I'm trying to capture a video of a duration of X seconds every Y hours with python3.8 and opencv(4.2.0) in Manjaro XFCE.










Logitech 720p