Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.56 KB

README.md

File metadata and controls

44 lines (31 loc) · 1.56 KB

Membrane Simple RTSP Server

Hex.pm API Docs CircleCI

A Simple RTSP server that serves a MP4 file

Installation

The package can be installed by adding membrane_simple_rtsp_server to your list of dependencies in mix.exs:

def deps do
  [
    {:membrane_simple_rtsp_server, "~> 0.1.4"}
  ]
end

Usage

To serve a MP4 file run the following:

Membrane.SimpleRTSPServer.start_link("path/to/file.mp4", port: 30001)

To receive and immediately play the stream you can use a tool like ffplay:

ffplay rtsp://localhost:30001

To receive the mp4 and store it you can use a tool like Boombox:

Boombox.run(input: "rtsp://localhost:30001", output: "output.mp4")

Copyright and License

Copyright 2020, Software Mansion

Software Mansion

Licensed under the Apache License, Version 2.0