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.0-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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

opencv_gst_rtmp-0.1.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for opencv_gst_rtmp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6bd7ac5ada7f587e4b5d87398bfa0e257ebdcd088fd17a72c37bf8a9620d082a
MD5 ea20c14eb676b31301735d4597258876
BLAKE2b-256 e80502d02fac75c557e2906a3a258703bb7c109d0df1c20aa937a7058c7fddaf

See more details on using hashes here.

Supported by

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