Category : video

I am working with Gstreamer and Python to decode a video using HW acceleration on Nvidia GPU: rtspsrc ! rtph264depay ! h264parse ! nvh264dec ! videoconvert ! appsink The following pipeline can be access using OpenCV which will return a numpy array. However, since I need to process the resulting frame on the GPU, I ..

Read more

i want to generate individual H5 files for each video’s using parallel processing in python. Process: H5 files contains extracted feature of images from video and it will be stores in H5 files. code: import os from networks.CNN import ResNet from utils.KTS.cpd_auto import cpd_auto from tqdm import tqdm import math import cv2 import numpy as ..

Read more

I am trying to decode several video streams using GStreamer and Python. Here’s my code: self.video_capture = cv2.VideoCapture(self.pipeline, cv2.CAP_GSTREAMER) if self.video_capture.isOpened() is False: raise Error while True: status, image = self.video_capture.read() # do slow stuff I am encountering the following issue: Option 1 If I use the pipeline: self.pipeline = f"rtspsrc location={self.url} latency=10 ! rtph264depay ..

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