Read the statement by Michael Teeuw here.
[MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
-
You don’t have to uninstall a module - just take it out of your config. In my case, once I got OMX working, and followed evroom’s instructions to start, I found that using OMX directly rather than through the module is rather cleaner. I can run the hi-def stream for one thing.
-
Hi, i have used the Module for a long time now jsut with snapshots. I never streamed live.
A year ago i switched the native magic mirror to docker install to use it for more devices at the same time. RTSPStream just worked fine after that change. But in last december i updated it and since that moment it stopped working. I had other issues to do so i did not investigate the cause.
But now i want to get it back working.
The error i can see via web logging is this:
Uncaught DOMException: Failed to construct 'WebSocket': The URL 'ws://192.168.10.1:undefined' is invalid. at WSSource.start (http://192.168.10.1:82/modules/MMM-RTSPStream/scripts/jsmpeg.min.js:1:16242) at new Player (http://192.168.10.1:82/modules/MMM-RTSPStream/scripts/jsmpeg.min.js:1:5838) at Class.playStream (http://192.168.10.1:82/modules/MMM-RTSPStream//MMM-RTSPStream.js:399:26) at Class.rotateStream (http://192.168.10.1:82/modules/MMM-RTSPStream//MMM-RTSPStream.js:123:23) at Class.setupStreamRotation (http://192.168.10.1:82/modules/MMM-RTSPStream//MMM-RTSPStream.js:94:14) at Class.resumed (http://192.168.10.1:82/modules/MMM-RTSPStream//MMM-RTSPStream.js:168:22) at http://192.168.10.1:82/modules/MMM-RTSPStream//MMM-RTSPStream.js:697:43
I’ve tried now different ways and also checked if it is streaming. I have installed ffmpeg within the docker container and also the node-rtsp-stream-es6 module. Also i have installed node-rtsp-stream-es6 at one rpi client and just to be sure ffmpeg. But in the past it worked without it.
Here is my config (now with ffmpeg streaming):
{ module: "MMM-RTSPStream", position: "bottom_right", header: "Rundumblick", config: { autoStart: false, rotateStreams: true, rotateStreamTimeout: 10, moduleWidth: 354, moduleHeight: 240, localPlayer: 'ffmpeg', remotePlayer: 'none', showSnapWhenPaused: true, remoteSnaps: true, debug: true, stream1: { name: 'Haustür', url: 'rtsp://192.168.10.1:7447/5af753a0b1d674c3bbc08189_1', frameRate: 'undefined', hdUrl: 'rtsp://192.168.10.1:7447/5af753a0b1d674c3bbc08189_0', snapshotUrl: 'http://192.168.10.55/snap.jpeg', snapshotType: 'url', snapshotRefresh: 10, width: undefined, height: undefined, }, stream2: { name: 'Garten-Wz', url: 'rtsp://192.168.10.1:7447/5af75418b1d674c3bbc0818a_1', frameRate: 'undefined', hdUrl: 'rtsp://192.168.10.1:7447/5af75418b1d674c3bbc0818a_0', snapshotUrl: 'http://192.168.10.56/snap.jpeg', snapshotType: 'url', snapshotRefresh: 10, width: undefined, height: undefined, }, stream3: { name: 'Kellertreppe', url: 'rtsp://192.168.10.1:7447/59541285b6468d91abd88fa9_1', frameRate: 'undefined', hdUrl: 'rtsp://192.168.10.1:7447/59541285b6468d91abd88fa9_0', snapshotUrl: 'http://192.168.10.50/snap.jpeg', snapshotType: 'url', snapshotRefresh: 10, width: undefined, height: undefined, }, stream4: { name: 'Terrasse-Wz', url: 'rtsp://192.168.10.1:7447/59541285b6468d91abd88fa6_1', frameRate: 'undefined', hdUrl: 'rtsp://192.168.10.1:7447/59541285b6468d91abd88fa6_0', snapshotUrl: 'http://192.168.10.54/snap.jpeg', snapshotType: 'url', snapshotRefresh: 10, width: undefined, height: undefined, }, stream5: { name: 'Terrasse-Ku', url: 'rtsp://192.168.10.1:7447/59541285b6468d91abd88fa8_1', frameRate: 'undefined', hdUrl: 'rtsp://192.168.10.1:7447/59541285b6468d91abd88fa8_0', snapshotUrl: 'http://192.168.10.53/snap.jpeg', snapshotType: 'url', snapshotRefresh: 10, widht: undefined, height: undefined, }, stream6: { name: 'Garage', url: 'rtsp://192.168.10.1:7447/59541285b6468d91abd88fa7_2', frameRate: 'undefined', hdUrl: 'rtsp://192.168.10.1:7447/59541285b6468d91abd88fa7_0', snapshotUrl: 'http://192.168.10.51/snap.jpeg', snapshotType: 'url', snapshotRefresh: 10, widht: undefined, height: undefined, }, stream7: { name: 'Hof-Garage', url: 'rtsp://192.168.10.1:7447/59541285b6468d91abd88fa7_2', frameRate: 'undefined', hdUrl: 'rtsp://192.168.10.1:7447/59541285b6468d91abd88fa7_0', snapshotUrl: 'http://192.168.10.52/snap.jpeg', snapshotType: 'url', snapshotRefresh: 10, widht: undefined, height: undefined, },
can anybody assume where to search the cause? I’m out of ideas :(
If i just want to have snapshots i get this:
MMM-RTSPStream.js:712 Uncaught TypeError: Cannot read property 'appendChild' of null at Class.socketNotificationReceived (MMM-RTSPStream.js:712) at module.js:246 at r.<anonymous> (socketclient.js:25) at r.emit (index.js:83) at r.onevent (index.js:83) at r.MMSocket.self.socket.onevent (socketclient.js:19) at r.onpacket (index.js:83) at r.<anonymous> (index.js:83) at r.emit (index.js:83) at r.ondecoded (index.js:83)
-
-
It looks as though you’re on a Pi, correct? If I recall right OMX should be installed with the OS in more than the “lite” install…If it’s not there, it’s not available in your language, maybe. I’m not too versed in how those installs work.
-
@Egnos said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
Can you help me?
What platform are you on.
Raspberry Pi with Debian?lsb_release -a
sudo apt-get install omxplayer
-
-
@egnos you might never get OMX working in a virtual environment. It works directly with the hardware to show the picture.
I would highly recommend setting it up on the pi now, and setting up SSH to communicate.
I also have SAMBA (https://www.juanmtech.com/samba-file-sharing-raspberry-pi/) running on my pi, so I can use Geany for Windows (https://www.geany.org/) to directly edit the raspberry files.
-
Has anyone been able to get this working with Axis camera products? VLC will pull and display the video stream outside of MM but will not display the same stream on MM when configured.
Any thoughts???
-
@Hram2008 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
Has anyone been able to get this working with Axis camera products?
Yes, I have.
Please show your MMM-RTSPStream part from config.js.
-
@Hram2008 have you tried running the URL straight with OMX to see if it works, if it does, you may have issues with the plugin itself, and as the author seems to have disappeared, you could just replace the plugin with OMX cutting the proper hole out of the window (It’ll go in front of whatever is running, so you run it independently, and it just works.
omxplayer --no-osd --no-keys --avdict rtsp_transport:tcp --live --fps 30 --orientation 0 --win "640 0 1280 360" [URL] -or- omxplayer --no-osd --no-keys --avdict rtsp_transport:udp --live --fps 30 --orientation 0 --win "640 0 1280 360" [URL]