Coder Social home page Coder Social logo

gstreamer-python's Introduction

GStreamer-Python

This project helps in fetching continous live RTSP stream using GStreamer, Python and numpy without compromising on stream quality.

multiprocessing is used in python to avoid main thread getting stuck.

Getting Started

Just clone this Repo then in main_prg.py add your rtsp stream on below line:

self.camlink = '' #Add your RTSP cam link

Prerequisites

  1. Python 3
  2. GStreamer
  3. OpenCV (if you want to run this example as is)
  4. Numpy
1. Python 3 Installation

This you would already know

2. GStreamer Installation

You will need GStreamer. Installation instruction can be found on this link GStreamer Still for your quick reference will list installation instruction for Ubuntu:

apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
3. OpenCV Installation

There are various way to install OpenCV but example using (Conda, PIP or build from source). But for purpose of this project below is instruction using PIP

pip3 install opencv-contrib-python
4. Numpy Installation
pip3 install numpy

Running the program

Post cloning the Repo, go to repo dir (Also include cam link in main_prg.py as mentioned above).

python3 main_prg.py

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Star the REPO, if you find it useful. Feel free for pull requests.

CHEERS!!!

gstreamer-python's People

Contributors

sahilparekh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.