Skip to main content
  1. Download the MediaMTX utility to set up an RTSP listening server. The following steps are verified for MediaMTX version v1.11.3_linux_arm64v8, available at mediamtx_v1.11.3_linux_arm64v8.tar.gz.
  2. Unzip the downloaded archive and edit the mediamtx.yml file to enable RTSP streaming on port 8901.
  3. Copy the mediamtx.yml file and the mediamtx executable to the device:
  4. Open a new SSH shell and run the mediamtx utility:
    MediaMTX utility running on the device
  5. Start an RTSP stream on your host computer on localhost at port 8901. The following example uses FFmpeg to capture input from a connected webcam and send it as an RTSP stream. If FFmpeg is not installed, download it from the FFmpeg website.
    FFmpeg command for RTSP streaming
  6. Verify the RTSP stream output using VLC media player:
    1. Open VLC media player.
    2. Press Ctrl+N.
    3. Enter the URL rtsp://127.0.0.1:8901/live1.mkv in the input bar.
    4. Select Play.
    RTSP stream output in VLC media player