Category : video-processing

I use cv2 to read in the videos that are usually about 2 hours long. The standard code goes something like this: import cv2 vid = cv2.VideoCapture(vidname) video_FourCC = int(vid.get(cv2.CAP_PROP_FOURCC)) video_fps = vid.get(cv2.CAP_PROP_FPS) video_frame_count= vid.get(cv2.CAP_PROP_FRAME_COUNT) video_size = (int(vid.get(cv2.CAP_PROP_FRAME_HEIGHT)),int(vid.get(cv2.CAP_PROP_FRAME_WIDTH))) vid.set(1,frame) res, img = vid.read() #do lots of analysis on the frame Now once in a while, ..

Read more

I’m using following code in order to minimize the size of my videos: ffmpeg -i {input} -vcodec libx265 -crf 28 {output} But on some videos like bellow it stucks and I don’t have a solution for it. ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 9 (Ubuntu 9.3.0-10ubuntu2) configuration: –prefix=/usr –extra-version=1ubuntu0.1 ..

Read more

This question is related to an actual science project. 1. The video will be done whit the medium of a white moving object against a black background surface. The final results will be close to a black/white output but I also need to render the video into an actual dual-color channel video (only displaying black ..

Read more

I am trying to develop a script which will detect pixelation from LiveTV from an external camera. To test my script I have been using a short snippet of LiveTV which has two instances of pixelation. See Google Drive below for video: https://drive.google.com/file/d/1f339HJSWKhyPr1y5sf9tWW4vcXgBOVbz/view?usp=sharing Currently I am able to filter out most of the noise in ..

Read more