https://github.com/rgl/mediamtx-rtsp-server
Use the MediaMTX RTSP server to stream a MP4 file
https://github.com/rgl/mediamtx-rtsp-server
hls rtsp rtsp-server webrtc whep
Last synced: 4 months ago
JSON representation
Use the MediaMTX RTSP server to stream a MP4 file
- Host: GitHub
- URL: https://github.com/rgl/mediamtx-rtsp-server
- Owner: rgl
- Created: 2023-07-01T16:45:35.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-14T12:29:09.000Z (12 months ago)
- Last Synced: 2024-12-31T11:06:07.029Z (6 months ago)
- Topics: hls, rtsp, rtsp-server, webrtc, whep
- Language: PowerShell
- Homepage:
- Size: 58.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About
Use the [MediaMTX](https://github.com/bluenviron/mediamtx) RTSP server to stream a MP4 file.
# Usage (Ubuntu Desktop 22.04 and Linux container)
Install docker.
Start the RTSP server:
```bash
./server.sh
```Install VLC:
```bash
# remove the debian/ubuntu package.
# NB it does not support RTSP due to live555 licensing concerns.
sudo apt-get remove -y --purge 'vlc*'
# install the snap package.
sudo snap install vnc
hash -r
```In another shell, start the VLC RTSP client:
```bash
./client.sh
```To try other protocols, open the following web pages with a web browser:
* http://localhost:8889/smptebars (WebRTC-HTTP Egress Protocol (WHEP))
* http://localhost:8888/smptebars (HTTP Live Streaming (HLS))# Usage (Ubuntu Desktop 22.04 and Windows VM)
Install the [Windows Vagrant Box](https://github.com/rgl/windows-vagrant) and its dependencies.
Launch the VM:
```bash
vagrant up --no-destroy-on-error --provider=libvirt
```Login the Windows VM desktop.
Wait a few seconds for the desktop to be configured.
Try different client applications and protocols by double clicking the
smptebars links that are on the desktop:* smptebars VLC RTSP (Real Time Streaming Protocol).
* smptebars MPV RTSP (Real Time Streaming Protocol).
* smptebars ffplay RTSP (Real Time Streaming Protocol).
* smptebars HLS (HTTP Live Streaming).
* smptebars WHEP (WebRTC-HTTP Egress Protocol).# Alternatives
* http://www.live555.com/mediaServer/