All Questions

Tagged with
Filter by
Sorted by
Tagged with
46 votes
3 answers
23k views

Create rtsp stream based on opencv images in python

My goal is to read frames from an rtsp server, do some opencv manipulation, and write the manipulated frames to a new rtsp server. I tried the following based on Write in Gstreamer pipeline from ...
Max la Cour Christensen's user avatar
24 votes
3 answers
31k views

GStreamer vs FFmpeg

I try to record a Video with the OpenCV Framework an would like to save that into an Matroska(mkv) Container together with some additional data streams. First I thought using FFmpeg is the way that. ...
user1129474's user avatar
19 votes
4 answers
30k views

Compiling Opencv with Gstreamer, cmake not finding GStreamer

I want to build opencv with GStreamer support. I built the GStreamer from source (version 1.8.1) following this guide: http://kacianka.at/?p=145 I have 'gstreamer_build' folder at my home directory ...
Asymptote's user avatar
  • 1,150
17 votes
3 answers
23k views

Adding opencv processing to gstreamer application

I'm trying to do the following: receive video stream using gstreamer and process it with opencv. I've found few solutions, and one of them is to write video into (from gstreamer) fifo and then read it ...
Roman's user avatar
  • 1,416
14 votes
2 answers
26k views

How to write opencv mat to gstreamer pipeline?

I want to add some opencv processes to a gstreamer pipeline and then send it over udpsink. I'm able to read frames from gstreamer like this: // may add some plugins to the pipeline later cv::...
j0e1in's user avatar
  • 705
13 votes
1 answer
42k views

How to open a GStreamer pipeline from OpenCV with VideoWriter

I am capturing video frames with OpenCV VideoCapture. The capturing works fine as I am able to use the frames like this: cv::VideoCapture cap("v4l2src device=/dev/video1 ! videoscale ! videorate ! ...
Pavel's user avatar
  • 213
12 votes
1 answer
19k views

Write opencv frames into gstreamer rtsp server pipeline

I'm trying to put opencv images into a gstreamer rtsp server in python. I have some issue writing in the mediafactory, I'm new to gst-rtsp-server ancd there's little documentation so I don't know ...
WisdomPill's user avatar
12 votes
2 answers
32k views

GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1

I am using the OpenCV package with the face_recognition package to detect faces on my laptop webcam. Whenever I run it, the code runs fine but I run into the same GStreamer error. from imutils.video ...
Kai Strachan's user avatar
11 votes
3 answers
10k views

Gstreamer - Convert command line gst-launch to C code

I have been making a few experiments with GStreamer by using the gst-launch utility. However, ultimately, the aim is to implement this same functionality on my own application using GStreamer ...
petersaints's user avatar
  • 1,919
11 votes
1 answer
12k views

gstreamer critical error when trying to capture video using webcam python opencv

i'm trying to take a video with webcam using opencv and python with a simple code import numpy as np import cv2 cap = cv2.VideoCapture(0) print('cap.isOpened') if cap.isOpened(): print ('cap is ...
Shinogami Rei's user avatar
10 votes
2 answers
22k views

How to convert a video (on disk) to a rtsp stream

I have a video file on my local disk and i want to create an rtsp stream from it, which i am going to use in one of my project. One way is to create a rtsp stream from vlc but i want to do it with ...
shahidammer's user avatar
  • 1,066
9 votes
2 answers
21k views

Using custom camera in OpenCV (via GStreamer)

I'm using Nitrogen6x board with ov5640 camera(mipi). The camera is not using standard v4l/v4l, but we can stream video using GStreamer for its driver (mfw_v4l): gst-launch mfw_v4lsrc ! autovideosink ...
Mahyar's user avatar
  • 1,081
8 votes
2 answers
5k views

Add some OpenCV processing to a gstreamer video stream

I'm trying to have OpenCV process a frame in the middle of a gstreamer pipe. I have one gstreamer pipe generating the stream, sending it to appsink for OpenCV code to receive: v4l2src ! ...
SMiLE's user avatar
  • 1,083
8 votes
0 answers
679 views

Building an RTSP streaming server from processed frames in OpenCV

I have to process frames from a distant camera using OpenCV. I need to stream the processed frames to be accessible over network as a live video. How to make the processed frames (cv::Mat objects) ...
ProEns08's user avatar
  • 1,896
7 votes
4 answers
6k views

failure in compiling opencv with cap_gstreamer error

I am trying to compile opencv on Slackware 4.1. However I encountered the following error each time. In file included from /usr/include/gstreamer-0.10/gst/pbutils/encoding-profile.h:29:0, ...
aherrys's user avatar
  • 71
7 votes
2 answers
3k views

Read RTSP Stream from UDP sink using Python OpenCV and GStreamer

We're developing a software to stream videos from two different cameras with RTSP using GStreamer. To simplify the acquisition process, we're using OpenCV with Python 3. The problem is: we wanna push ...
Ralubrusto's user avatar
  • 1,469
6 votes
1 answer
13k views

Write in Gstreamer pipeline from opencv in python

I'm trying to stream some images form opencv using gstreamer and I got ome issues with the pipeline. I'm new to gstreamer and opencv in general. I compiled opencv 3.2 with gstreamer for python3 on a ...
WisdomPill's user avatar
6 votes
2 answers
5k views

GStreamer pipeline + OpenCV RTSP VideoCapture does not work in Docker container

I'm trying to get GStreamer + OpenCV RTSP video capture working in a Docker container based on a NVIDIA PyTorch image. I had to end up building OpenCV from source to enable GStreamer integration, ...
Rob's user avatar
  • 26.2k
6 votes
3 answers
23k views

Install gstreamer support for opencv python package

I have built my own opencv python package from source. import cv2 print(cv2.__version__) prints: 3.4.5 Now the issue I am facing is regarding the use of gstreamer from the VideoCapture class of ...
Basti Vagabond's user avatar
6 votes
0 answers
3k views

Have trouble streaming RTP/ RTSP stream from OpenCV-Python

I am trying to use this sample script I found here in order to take OpenCV images and convert them into a rtp/rtsp stream: https://github.com/madams1337/python-opencv-gstreamer-examples/blob/master/...
user3377126's user avatar
  • 2,131
6 votes
0 answers
854 views

Python OpenCV memory leak

After each execution of the code, 150 MB of memory leaks out. cam = cv2.VideoCapture('rtsp://admin:[email protected]:554/Streaming/Channels/101') ret_val, img = cam.read() ret_val = cv2.imwrite(str(...
Ruslan Z.'s user avatar
6 votes
3 answers
7k views

Lossless avi encoding on linux

I am trying to write video using opencv. It is important for me to do this precisely - so it has to be a lossless codec. I am working with OpenCV 2.4.1 on Ubuntu 12.04 Previously, I was using the ...
dlants's user avatar
  • 761
5 votes
2 answers
13k views

How to create x264 RTSP server with OpenCV Python with GStreamer backend

My goal is to create a RTSP server using OpenCV Python using the GStreamer backend. I have RGB images stored as OpenCV Mat, and I would like to create a VideoWriter which can write to a RTSP sink. The ...
cyrusbehr's user avatar
  • 1,201
5 votes
2 answers
6k views

Enumerate over cameras in Python

I'm having some trouble enumerating over cameras in Python over multiple OS's. Here's some of the approaches I've tried: import cv2 as cv num = 0 while 1: cap = cv.VideoCapture(num) if cap....
aczh's user avatar
  • 61
5 votes
1 answer
8k 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,...
lich.mk's user avatar
  • 71
5 votes
0 answers
521 views

python opencv display gstreamer videotestsrc

I need to use GStreamer to deliver data to some OpenCV/Cuda classification and deep-learning systems. The problem is that I'm new to the GStreamer and the Cuda, so I need to make some simple examples ...
Teddy_R's user avatar
  • 91
5 votes
1 answer
2k views

Modifying a webcam stream

Currently I'm working on a project where I need to modify a webcam stream that is streaming to skype. Essentially I want to do things like blur the face and do other anonymizing techniques. While ...
Wilson1989's user avatar
4 votes
2 answers
10k views

Convert YUVj420p pixel format to RGB888 using gstreamer

im using gstreamer 1.2 to feed frames from my IP camera to opencv program the stream is (640*368 YUVj420p) and i want to convert it to RBG888 to be able to use it in my opencv program so is there ...
Eslam Ahmed's user avatar
4 votes
3 answers
2k views

Lossless codec for bayer data

I'm working with lots of camera's which capture in BG bayer pattern natively. Now, every time I record some data, I save it to the disk in the raw bayer pattern, in an avi container. The problem is, ...
vhdirk's user avatar
  • 598
4 votes
1 answer
566 views

Which video library is OpenCV using under the hood on linux? [closed]

I'm writing a simple software to capture and record webcam images to a compressed video file. I'm using OpenCV "VideoCapture read(frame)" and "VideoWriter write(frame)" in a C++ software. I'm on ...
ssinfod's user avatar
  • 1,011
4 votes
3 answers
5k views

Error in using Appsrc Appsink

This would be my first time working with Gstreamer in a C program. I've only used pipelines. I'm trying to write a program which takes a stream stores it in a buffer, uses OpenCv to edit the stream ...
ssn's user avatar
  • 81
4 votes
0 answers
2k views

How to create GStreamer RTSP server with variable frame rate

I have an application which requires me to consume an RTSP stream, extract frames from the video, perform some processing on the video frames, annotate the frames, then restream the video as a new ...
cyrusbehr's user avatar
  • 1,201
3 votes
1 answer
16k views

convert gstreamer pipeline to opencv in python

I have created a network stream with following gstreamer commands: sender: gst-launch-1.0 -v videotestsrc ! video/x-raw,framerate=20/1 ! videoscale ! videoconvert ! x264enc tune=zerolatency bitrate=...
julitos.m's user avatar
3 votes
1 answer
20k views

GStreamer-CRITICAL **: gst_element_make_from_uri: assertion 'gst_uri_is_valid (uri)' failed

I am on Ubuntu 16.04 using OpenCV 3.1 in Python. I can run this fine for a large number of videos however in this particular video it fails. I am using XVID as coded. The URI seems to be correct so I'...
Pedro Abreu's user avatar
3 votes
1 answer
10k views

Push images into Gstreamer pipeline

I have been following many examples about pushing an image into a Gstreamer pipeline but still I can't make my code work. Any suggestion (beside telling me to try with Gstreamer1.0 instead of 0.10) ...
andre_th's user avatar
3 votes
4 answers
6k views

Cannot receive gstreamer UDP Stream from OpenCV Gstreamer

I'm working on Gazebo Sim which uses 'Gstreamer Plugin' to stream Camera Video via UDP. Simulation is started on Ubuntu 18.04. There is some resources to understand backend of this structer. Gazebo ...
Bozkurthan's user avatar
3 votes
2 answers
3k views

Sending frame by VideoWriter; can't catching it again (OpenCV 3.1, c++)

I am trying to write a simple video streaming application that performs the following tasks: Get a frame from camera this part is working); Modify frame; Send to a gstreamer pipeline. Code: ...
KatKat's user avatar
  • 41
3 votes
1 answer
9k views

Gstreamer pipeline in Opencv videoCapture()

I'm trying to open an IP camera in OpenCV using gstreamer pipleine. I can open the IPcamera using Gstreamer in terminal, using : gst-launch-1.0 -v rtspsrc location="rtsp://192.168.0.220:554/user=...
Sam's user avatar
  • 179
3 votes
2 answers
11k views

How to push OpenCV Images into GStreamer Pipeline to stream it over the TCPServer-Sink

I'm trying to push Images created by OpenCV into the GStreamer-Pipeline in order to stream a video through the GStreamer-TCPServerSink. My GStreamer-Pipeline looks as follows: AppSrc -> ...
Angstgeist's user avatar
3 votes
1 answer
8k views

Access Camera using OpenCV (Via GStreamer)

I'm trying to develop an application which should analyse a video stream from a MIPI camera(5MP). So I'm using gstreamer to get the video feed access it using OpenCV. I tried the following pipeline ...
KTB's user avatar
  • 1,519
3 votes
1 answer
3k views

Push OpenCV mat inside a DeepStream pipeline

I would like to open a video stream by OpenCv and push frame by frame inside a DeepStream pipeline to use tesornRT to make an inference on Yolov3 model, but i do not know how to make it works. I'm ...
Neorem's user avatar
  • 71
3 votes
2 answers
7k views

Displaying RTSP stream with OpenCV and gstreamer

I have purchased an IP camera which I am trying to connect to using RTSP. The RTSP connection URL is rtsp://admin:@192.168.0.27/channel=1&stream=0.554. I am using OpenCV to open and display the ...
cyrusbehr's user avatar
  • 1,201
3 votes
2 answers
6k views

How to use Opencv VideoWriter with GStreamer?

I am trying to transfer a h264 stream using Opencv VideoWriter to get it on another pc on the network using VideoCapture. However, I am stuck on VideoWriter. Execution of this code returns with an ...
WinterMax's user avatar
3 votes
2 answers
3k views

Efficient way of sending a large number of images from client to server

I'm working on a project where one client needs to take several snapshots from a camera (i.e. it's actually taking a short-duration video, hence a stream of frames), then send all images to a server ...
thjso's user avatar
  • 33
3 votes
1 answer
6k views

Yocto how to add a gstreamer plugin?

I'm trying to build a custom image for an i.MX6 board by using Yocto. I want to add the plugin 'gstmotioncells' from Gstreamer OpenCV Plugins ( https://github.com/GStreamer/gst-plugins-bad/tree/...
Toon Heyrman's user avatar
3 votes
1 answer
14k views

Gstreamer stream is not working with OpenCV

I want to use a Gstreamer pipeline directly with OpenCV to manage the image acquisition from a camera. Currently I don't have the camera so I've been experimenting getting the video from URIs and ...
Roc's user avatar
  • 83
3 votes
1 answer
6k views

Gstreamer Appsink not getting Data from the Pipeline

I am designing a pipeline to Encode a video frame from a opencv application (got from a web cam) to video/x-h264 format, send it via network and decode it on another device of different type (probably ...
Varun Vijaykumar's user avatar
3 votes
1 answer
3k views

Calling Gstreamer inside openCV

I need to call Gstremaer inside an openCV code (opening a video camera essentially). As I looked through the source code, modules/highgui/src/cap_gstreamer.cpp seems to be the file I'm looking for. I ...
Mahyar's user avatar
  • 1,081
3 votes
2 answers
3k views

Piping video from Raspberry Pi to Desktop running OpenCV

I'm looking for some hints. I've got my Pi running OpenCV, but I'm about to take on a project which will need several IP cameras, all piping video to OpenCV. I'm curious if it's possible to use the ...
C. Thomas Brittain's user avatar
3 votes
4 answers
6k views

how combine gstreamer and opencv?

I want to use OpenCV to analyze (parts of) frames taken from a webcam taken at its native resolution of 1280 by 960. I can capture these using Gstreamer and an appsink. I've come to realize, however, ...
Joost Rekveld's user avatar

1
2 3 4 5
8