

The resulting stream will be available in path /cam. Start the server and open the web page:įfmpeg -list_devices true -f dshow -i dummy Web browsers can publish a stream to the server by using the WebRTC protocol. The resulting stream will be available in path /mystream. shape / 2)):ĭiff = ( 1 / fps) - now - start if diff > 0: shape / 2)):įor x in range( 0, int( frame. # create a rectangle color = colorsįor y in range( 0, int( frame.

Raise Exception( "can't open video writer")įrame = np. CAP_GSTREAMER, 0, fps, ( width, height), True) ' ! rtspclientsink location=rtsp://localhost:8554/mystream',Ĭv2. ' ! x264enc speed-preset=ultrafast bitrate=600 key-int-max=' + str( fps * 2) + \ Import cv2 import numpy as np from time import sleep, time fps = 15 width = 800 height = 600 colors = [ It must be compiled with GStreamer support, by following this procedure: OpenCV can publish to the server through its GStreamer plugin, as a RTSP client.

#Vlc media player 2 2 1 password generator windows
Compatible with Linux, Windows and macOS, does not require any dependency or interpreter, it's a single executable.Run external commands when clients connect, disconnect, read or publish streams.Reload the configuration without disconnecting existing clients (hot reloading).Query and control the server through the API.Redirect readers to other RTSP servers (load balancing).Authenticate users use internal or external authentication.Serve multiple streams at once in separate paths.For instance, it's possible to publish a stream with RTSP and read it with HLS Streams are automatically converted from a protocol to another.Proxy streams from other servers or cameras, always or on-demand.

Low-Latency HLS, MP4-based HLS, legacy HLSĪnd can be read from the server with: protocol Opus, MPEG-4 Audio (AAC), MPEG-1/2 Audio (MP3), G726, G722, G711, LPCM and any RTP-compatible codec Live streams can be published to the server with: protocolĪV1, VP9, VP8, H265, H264, MPEG-4 Video (H263, Xvid), MPEG-1/2 Video, M-JPEG and any RTP-compatible codec It has been conceived as a "media broker", a message broker that routes media streams. MediaMTX (formerly rtsp-simple-server) is a ready-to-use and zero-dependency real-time media server and media proxy that allows users to publish, read and proxy live video and audio streams.
