Skip to content

Latest commit

 

History

History
 
 

gen2-rtsp-streaming

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

中文文档

Gen2 RTSP Streaming

This example allows you to stream frames via RTSP

Installation

Ubuntu 20.04

sudo apt-get install ffmpeg gstreamer-1.0 gir1.2-gst-rtsp-server-1.0 libgirepository1.0-dev gstreamer1.0-plugins-bad gstreamer1.0-plugins-good gstreamer1.0-plugins-base
python3 -m pip install -r requirements.txt

Mac OS 11 (Big Sur)

brew install pkg-config cairo gobject-introspection gst-plugins-bad gst-plugins-base gstreamer gst-rtsp-server ffmpeg gst-plugins-good

(if you're using M1 processor, you might have to configure your homebrew properly to install these packages - check this StackOverflow question)

Usage

Run the application

python3 main.py

To see the streamed frames, use a RTSP Client (e.g. VLC Network Stream) with the following link

rtsp://localhost:8554/preview

On Ubuntu or Mac OS, you can use ffplay (part of ffmpeg library) to preview the stream

ffplay rtsp://localhost:8554/preview