Skip to content

Instantly share code, notes, and snippets.

@clabland
Created January 10, 2021 01:08
Show Gist options
  • Save clabland/495bebaa106a479864ca272f52fa3b1e to your computer and use it in GitHub Desktop.
Save clabland/495bebaa106a479864ca272f52fa3b1e 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