Skip to main content

Push opencv frame to rtmp server using gstreamer

Project description

What is this?

Push opencv frame to rtmp server using gstreamer.

Usecases?

Modified opencv frame and push to rtmp server.

Fundamental?

Read opencv frame from appsrc and convert to flv and push to rtmp server using rtmpsink.

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 rtmp://localhost:1935/live

Build

Install wheel:

python3 -m pip install wheel

Build:

python3 setup.py bdist_wheel

Install:

python3 -m pip install build/opencv_gst_rtmp-0.1.1-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_rtmp-0.1.1.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opencv_gst_rtmp-0.1.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file opencv_gst_rtmp-0.1.1.tar.gz.

File metadata

  • Download URL: opencv_gst_rtmp-0.1.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for opencv_gst_rtmp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5441327931b057335cbc947d5ad1d7db456bae554d29f04733e97dadde3259c1
MD5 91bca76583d5b286bf891d489f7384f6
BLAKE2b-256 88e2df623dd39be8cd1898ae78dd04568347df17c625c4e4fe5a70e816c8cfd0

See more details on using hashes here.

File details

Details for the file opencv_gst_rtmp-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for opencv_gst_rtmp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 46a2c49ad40cc5b47cac4faf6538418d0ad40430e7a0783f73473315144d1898
MD5 8936eea5efdfcfed2a7cdaf76f23d893
BLAKE2b-256 16526ef1e85adce78ea28f47af1571d5163d83a202222c6e490e1f9f9bc1faa2

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