Skip to main content

Restream rtsp with opencv frame using gst-rtsp-server

Project description

What is this?

Restream rtsp with opencv frame using gst-rtsp-server.

Usecases?

Modified opencv frame and restream.

Fundamental?

There are 2 component: media_factory and server:

  • media_factory (rtsp_media_factory): convert opencv frame to gst buffer.
  • server (rtsp_server): publish buffer to rtsp stream.

Test with example:

Setup environment:

Create virtual environment (Optional):

python3 -m venv .venv

Run setup_env.sh

source setup_env.sh

Run install

python3 -m pip install .

Run

python3 examples/main_frame.py or python3 examples/main_stream.py

Play using ffplay or vlc:

ffplay -rtsp_transport tcp rtsp://localhost:8001/stream

Build

Install wheel:

python3 -m pip install wheel

Build:

python3 setup.py bdist_wheel

Install:

python3 -m pip install build/opencv_gst_rtsp_server-0.1.3-py3-none-any.whl

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opencv_gst_rtsp_server-0.1.4.tar.gz (6.4 kB view details)

Uploaded Source

File details

Details for the file opencv_gst_rtsp_server-0.1.4.tar.gz.

File metadata

  • Download URL: opencv_gst_rtsp_server-0.1.4.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for opencv_gst_rtsp_server-0.1.4.tar.gz
Algorithm Hash digest
SHA256 9b9c811866bfc07b2e5f3c7670b9b6c8fb38458d90272414ad57a4c3c0d0991f
MD5 c4e51c0f02177a8c16525fb488669763
BLAKE2b-256 6ce63f4e1e43ce2b531660cb3038a5ed6e668388ff36063cf10f1680040fad1c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page