Skip to content

Instantly share code, notes, and snippets.

@Calimerorulez
Forked from clabland/unvr-cams.sh
Created May 17, 2021 12:28
Show Gist options
  • Save Calimerorulez/f064b7b8a974dfe602311fbf316329dd to your computer and use it in GitHub Desktop.
Save Calimerorulez/f064b7b8a974dfe602311fbf316329dd to your computer and use it in GitHub Desktop.
#!/bin/bash
killall omxplayer.bin || true
# A four camera grid on a 1920x1080 monitor.
screen -dmS topleft sh -c 'omxplayer --win "0 0 960 540" -n -1 --avdict rtsp_transport:tcp "YOUR_RTSP_FEED"; exec bash'
screen -dmS topright sh -c 'omxplayer --win "960 0 1920 540" -n -1 --avdict rtsp_transport:tcp "rtsp://YOUR_RTSP_FEED"; exec bash'
screen -dmS bottomleft sh -c 'omxplayer --win "0 540 960 1080" -n -1 --avdict rtsp_transport:tcp "rtsp://YOUR_RTSP_FEED"; exec bash'
omxplayer --win "960 540 1920 1080" -n -1 --avdict rtsp_transport:tcp "rtsp://YOUR_RTSP_FEED"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment