@Hram2008 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
Please see below.
Hi,
I would first disable the module (disabled: true,) and restart MM.
Check if there are no omx_streams running (pm2 status).
Stop them when present (pm2 stop omx_stream1 / pm2 delete omx_stream1).
Then verify if omxplayer works standalone (use your own user & password & IP address).
If it does not work standalone, then there is no need to continue trying the module.
$ omxplayer --avdict rtsp_transport:tcp --win 85,65,725,425 --live --video_queue 4 --fps 30 --no-osd rtsp://user:password@192.168.178.55/axis-media/media.amp?resolution=640x360
If that works you can try this verified config (use your own user & password & IP address):
$ vi ~/MagicMirror/config/config.js
{
module: "MMM-RTSPStream",
//disabled: false,
disabled: true,
position: "middle_center",
header: "Axis Security Monitor",
config: {
autoStart: true,
rotateStreams: false,
moduleWidth: 640,
moduleHeight: 360,
localPlayer: 'omxplayer',
remotePlayer: 'none',
showSnapWhenPaused: false,
remoteSnaps: false,
stream1: {
name: 'Axis_P1448_LE',
url: 'rtsp://user:password@192.168.178.55/axis-media/media.amp?resolution=640x360',
frameRate: "30",
protocol: "tcp",
width: 640,
height: 360,
omxRestart: 1,
hwAccel: true,
}
}
},
This works for Axis P1448-LE, M2026-LE Mk II and M1125-E.
Good luck.