How To Test Rtsp Streaming

broken image


  • FWIW, I was able to setup a local RTSP server for testing purposes using simple-rtsp-server and ffmpeg following these steps: Create a configuration file for the RTSP server called rtsp-simple-server.yml with this single line: protocols: tcp Start the RTSP server as a Docker container.
  • RTSP is a standard video & audio output stream from network camera, use the RTSP stream you can easy install network camera to the third-party surveillance progeams. Or use VLC & QuickTime player to test real time video screen.

Normally in this case, the player first establishes a control connection to a server using the Real-Time Streaming Protocol, or RTSP. In theory, RTSP can be used over either UDP or TCP, but in practice it is almost always used over TCP. The player is normally started with an rtsp:// URL, and this causes it to connect over TCP to the RTSP server. Real Time Streaming Protocol (RTSP) Directions for (nearly) Every Manufacturer. Find out the RTSP stream to your camera. Use your camera with 3rd party products & services.

Latest version

Released:

RTSP client wrapper around gstreamer/opencv

Project description

Convenience-wrapper around OpenCV-Python RTSP functions.

Features

  • fetch a single image as Pillow Image
  • open RTSP stream and poll most recent frame as Pillow Image
  • preview stream in OpenCV
  • uniform interface for local web-cameras for rapid prototyping
    • integers will load a local USB or webcam starting with interface 0 via OpenCV e.g. rtsp.Client(0)
    • 'picam' uses a Raspberry Pi camera as source e.g. rtsp.Client('picam')

Examples

Use RTSP access credentials in your connection string e.g. RTSP_URL = f'rtsp://{USERNAME}:{PASSWORD}@192.168.1.221:554/11'

One-off Retrieval

Stream Preview

Continuous Retrieval

Roadmap:

I don't plan to develop this module any further, as more complex applications are better suited to use OpenCV, Gstreamer, or ffmpeg directly.

To do:

  • add better parsing for the RTSP resource URIs

Release historyRelease notifications | RSS feed

1.1.8

1.1.7

1.1.6

1.1.5

1.1.4

1.1.3

1.1.2

1.1.1

1.1.0

1.0.11

1.0.10

1.0.9

1.0.8

1.0.7

1.0.6

1.0.5

1.0.4

1.0.3

1.0.2

1.0.1

1.0.0

Test

Download files

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

Files for rtsp, version 1.1.8
Filename, sizeFile typePython versionUpload dateHashes
Filename, size rtsp-1.1.8-py3-none-any.whl (6.0 kB) File type Wheel Python version py3 Upload dateHashes
Filename, size rtsp-1.1.8.tar.gz (4.2 kB) File type Source Python version None Upload dateHashes
Close

Hashes for rtsp-1.1.8-py3-none-any.whl

How To Test Rtsp Stream

Hashes for rtsp-1.1.8-py3-none-any.whl
AlgorithmHash digest
SHA256d28868dcb0f669cc35c1438e1820da1effab6197a2dd6efbd30114d4702041c5
MD53d48c1318b8d2d9721b4ba4e34000602
BLAKE2-256c565e09499bc11322e4d0235cc19b1e19b52fe3b7cb5154ce75ebbb737b0fd04
Close

Hashes for rtsp-1.1.8.tar.gz

Rtsp Test Stream

Hashes for rtsp-1.1.8.tar.gz
AlgorithmHash digest
SHA2562af552f0640680ef90d9c66b3983bcd9a2983762b84b864d6e1e6e62b29a9fe4
MD580d87d228efab5c90ec9ee0bfdded57e
BLAKE2-256cc30596132c955ce438ae7f0576bbdcdb5216e2ca020fbfa3cef7ef664102751




broken image