Read the statement by Michael Teeuw here.
[MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
-
@dwburger I was having a ton of trouble streaming anything on my Pi 4. if you’re on a Pi 4, make sure to install the May 2020 update. Streaming is rock solid now.
https://www.raspberrypi.org/documentation/raspbian/updating.md
I will note, I’m also using OMX Player independently from MM - the last releases of RTSPStream broke everything, and I couldn’t bother to get things working again. I wrote a little module I kept private because it’s not configurable to cut the desired space out of the MM workspace.
-
@BKeyport that link is for PI OS… does it apply to raspian buster?
-
@BKeyport Yes, I’m using an RPi4. Thanks for the link for updating!
-
@sdetweil If you read it, They’re renaming the OS.
-
@BKeyport yes, I knew they were renaming… but also that s mostly applied tot he 64 bit version.
whatever, commands in progress on my 4 -
@sdetweil I read it as “Going forward” - meaning all releases after the date of announcement. But, as it’s still debian based under the hood, the commands would be the same (Or apt-get instead)
-
You know, it figures… I say it’s stable, and it’s back to pre-PI 4 tricks. It’ll run for about two days before crashing, but that’s a lot better than pre-may2020 Buster - which was 5 minutes at the most.
-
@BKeyport wow… my pi4 has been booted solid for weeks… (last manual update boot)
-
Updating didn’t solve the problem. Just wondering…I’ve seen recent references to using OMXplayer independent of MM2. Does this mean that the OMXplayer window is on top of the MM2 screen or somehow incorporated into it. Could someone give me a little push into understanding this?
-
@dwburger said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
Could someone give me a little push
When using the module or not, omxplayer always will be an overlay on top of your MM display.
Test if it works at all (example for an Axis IP camera):
$ omxplayer --avdict rtsp_transport:tcp --live --video_queue 4 --fps 30 --win "0 625 590 957" rtsp://user:password@192.168.178.56/axis-media/media.amp?resolution=640x360
With log:
$ omxplayer --genlog --avdict rtsp_transport:tcp --live --video_queue 4 --fps 30 --win "0 0 640 360" rtsp://user:password@192.168.178.56/axis-media/media.amp?resolution=640x360
The positioning of the stream can be a bit of a pain.
Size of video stream:
(x2 - x1) x (y2 - y1) = 640 x 360To use it under control of pm2 (iso of vi you also can use nano):
$ cd /home/pi $ vi axis.sh #!/bin/bash echo "Starting Axis stream ..." # No rotation omxplayer --avdict rtsp_transport:tcp --live --video_queue 4 --fps 30 --win "0 625 590 957" rtsp://user:password@192.168.178.56/axis-media/media.amp?resolution=640x360 $ pm2 start axis.sh $ pm2 save
To see it run:
$pm2 status
To restart it:
$ pm2 restart axis
To stop it:
$ pm2 stop axis
To remove it from pm2:
$ pm2 delete axis