Skip to content

Instantly share code, notes, and snippets.

@Wagahai
Created December 26, 2021 23:18
Show Gist options
  • Save Wagahai/955485097d7a9f8b9a23bb7d77e706c4 to your computer and use it in GitHub Desktop.
Save Wagahai/955485097d7a9f8b9a23bb7d77e706c4 to your computer and use it in GitHub Desktop.
Using mplayer on raspberry pi for cctv monitoring

Since omxplayer seems depreciated on the newer Raspbian installs, needed a way to stream 4xRTSP streams to console, without X11
My TV is connected on the HDMI port and is 1920x1080
My camera system is a LOREX with RTSP streams available.

A command line sample for mplayer

mplayer -nosound -framedrop -ao null -vo fbdev2 'rtsp://USER:PASS@192.168.1.X:554/cam/realmonitor?channel=CHANN&subtype=1' -vf scale=958:500 -geometry 0:0

The scale setting stays the same on each, the geometry setting sets where it shows on the screen.

  • Top left: 0:0
  • Top right: 960:0
  • Bottom left: 0:540
  • Bottom right: 960:540
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment