Read the statement by Michael Teeuw here.
Show IP camera in Magic Mirror
-
@drx1984 Ahh! I originally had one of those in use. Using OMXPlayer directly is likely the best option.
What I’ve done is block out a section of my screen using a custom module that’s not published, then, using a bash script, I launch OMX Player with a command line like:
omxplayer --avdict rtsp_transport:tcp --live --orientation [rotation] --win "[X1 Y1 X2 Y2]" rtsp://[URL]
“Rotation” is the rotation of your monitor, 0 (Normal), 90 (right portrait), 180 (upside down), 270 (left portrait)
“X1” is the left X position NOT CONSIDERING ROTATION.
“X2” is the right X position NOT CONSIDERING ROTATION.
“Y1” is the top Y position NOT CONSIDERING ROTATION.
“Y2” is the bottom Y position NOT CONSIDERING ROTATION.omxplayer will then launch on top of the mirror screen.
Example:
omxplayer --avdict rtsp_transport:tcp --live --orientation 90 --win "1500 325 1915 1075" rtsp://U:P@A/2/h265/major
My screen is rotated right portrait, so I rotate OMX to match. (90)
The window I need cut out is 700x415 pixels, my resolution is 1080x1920. You’ll notice I have it 5px off the edge to assure I see everything, and I’ve got it in the upper right corner of my display. my camera I use now instead of the Reolink is using that URL, even though it puts out a H264 stream at the moment (I’m looking for an option to go to H265 as h264 uses flash for display) -
I am using iFrame. But also using BlueIris to stream the IP camera to a http site, makes things much easier, plus I can get motion from BlueIris.
{ module: 'MMM-iFrame', position: 'bottom_left', // This can be any of the regions. config: { // See 'Configuration options' for more information. url: ["http://192.XXX.X.XXX:XXXX/mjpg/CAM1/video.mjpg"], updateInterval: 0.5 * 60 * 1000, // rotate URLs every 30 seconds width: "1200px", // Optional. Default: 100% height: "600px" //Optional. Default: 100px } },
-
I now have MMM-FreeboxTV working displaying my IP Camera.
Here’s the trick:
Edit streamsConfig.json and strip out everything but channel 2.
Channel 2 should be:
"2": "rtsp://[url]"
Then: in config.js
{ module: 'MMM-FreeboxTV', position: 'top_right', config: { debug: false, autoReplay: true, fullscreen: false, width: [to taste], height: [to taste], onStart: 2, onStartDelay: 5000, streams: "streamsConfig.json" } },
PS: Because of my module size, I needed to still use my unlisted block module. :(
-
@BKeyport do you mean that
Unfortunately I don’t see a stream either -
@jasondreher Unfortunately, iframe does not work with Reolink cameras.
-
@drx1984 you didn’t follow my directions. The system expects the channels in the json file.
-
@BKeyport Good morning thanks,
Everything works fine locally now.
But when I call up my MagicMirror via a browser on another computer via an IP address, there is no cam stream.
I think it only works locally?
Is there any other solution? Or at least display a picture from the IP camera? -
Sadly, no. Other programs had a option for a remote feed, like using OMXPlayer locally, and mmfpeg remotely, but those are abandoned.
-
@drx1984 That’s too bad. Hope there is a solution for Reolink. Any confirmed camera brand that does work with MMM-FreeboxTV?
-
@goprojojo If it works with VLC, it’ll work with Freebox. go to https://www.ispyconnect.com/man.aspx?n=Reolink to get the URL you’ll need, and try it on VLC.