App Link on Your Dashboard

This worked for me: Using VLC transcode Video RTSP stream to MJPEG / ActionTiles Forum / AT Support & Ideas

  1. Install VLC on your Windows PC.
    Probably will work in other environments, but I only tested on Windows.
  2. Go to UniFi Protect via the browser interface on your computer.
    In the Devices section of UniFi Protect, click on a camera and go to the Manage section, then enable at least one RTSP stream. Copy the URL (I used the 'unsecure' one).
  3. Open a Windows cmd window with Administrator access.
    Browse to the VLC directory: <Program Files>\VideoLAN\VLC
    Execute this command (no line-breaks!): vlc.exe -R <RTSP unsecure URL from UniFi Protect> --sout "#transcode{vcodec=mjpg,vb=2500,scale=1.0,fps=10,acodec=none}:standard{access=http{mime=multipart/x-mixed-replace; boundary=7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:8888/videostream.cgi}
  4. Add an Image tile to your dashboard
    Set the Image URL to: http://<IP address of PC running VLC>:8888/videostream.cgi

You should see the video stream on your dashboard. Note that this will likely only work on your local network.

You would want to customize the dst=:8888/videostream.cgi part to use different ports or paths if you wanted to run multiple streams at once.

Obviously you would probably want to auto-launch the vlc.exe command on boot and/or if it crashes for some reason.

2 Likes