Hello i have a similar problem,
I can’t see my ip- camera stream on the mirror. The stream can be seen by entering the IP in the VLC player but not in MagicMirror. In the MagicMirror i can only see a white frame.
The recommendation
rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov
implement in config.js i followeld.
After a restart I could see the film in the mirror, but unfortunately only once, I swear I don’t have anything in the config. changed. Now I have only a white frame on the Mirror.
I had to adjust the script from the configurator by a comma, otherwise the file config.js could not be found.
My entry in the config.js for IP.camera:
{
module: “MMM-RTSPStream”,
position: “middle_center”,
header: “test1”,
config: {
autoStart: true,
rotateStreams: true,
rotateStreamTimeout: 10,
moduleWidth: 354,
moduleHeight: 240,
localPlayer: ‘vlc’,
remotePlayer: ‘none’,
showSnapWhenPaused: true,
remoteSnaps: true,
shutdownDelay: 12,
stream1: {
name: ‘HaustÃr’,
url: ‘rtsp://XXXX:XXXXX@192.XXX.2.108:80/cam/realmonitor?channel=2&subtype=0’,
frameRate: ‘undefined’,
snapshotType: ‘url’,
snapshotRefresh: 10,
width: undefined,
height: undefined,
},
}
},
My entry in the config.js for Testvideo:
{
module: “MMM-RTSPStream”,
position: “middle_center”,
header: “MMM-RTSPStream Test”,
config: {
autoStart: true,
rotateStreams: false,
rotateStreamTimeout: 10,
moduleWidth: 640,
moduleHeight: 360,
localPlayer: ‘omxplayer’,
remotePlayer: ‘none’,
showSnapWhenPaused: true,
remoteSnaps: true,
stream1: {
name: ‘Buck Bunny’,
url: ‘rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov’,
frameRate: ‘undefined’,
snapshotType: ‘url’,
snapshotRefresh: 10,
width: 640,
height: 360,
},
}
},
step 7) pm2 flush
pi@raspberrypi:~ $ pm2 flush
[PM2] Flushing /home/pi/.pm2/pm2.log
[PM2] Flushing:
[PM2] /home/pi/.pm2/logs/MagicMirror-out.log
[PM2] /home/pi/.pm2/logs/MagicMirror-error.log
[PM2] Flushing:
[PM2] /dev/null
[PM2] /home/pi/.pm2/logs/omx-stream1-error.log
[PM2] Logs flushed
pi@raspberrypi:~ $
step 8) restart MM
pi@raspberrypi:~ $ pm2 restart MagicMirror
Use --update-env to update environment variables
[PM2] Applying action restartProcessId on app [MagicMirror](ids: 0)
[PM2] MagicMirror ✓
┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 8828 │ 0s │ 1 │ online │ 0% │ 2.5mb │ pi │ disabled │
│ 1 │ omx_stream1 │ default │ N/A │ fork │ 8774 │ 4s │ 226 │ online │ 0% │ 2.5mb │ pi │ disabled │
└─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
pi@raspberrypi:~ $
step 9) check the logs
pi@raspberrypi:~ $ pm2 logs --lines 200
[TAILING] Tailing last 200 lines for [all] processes (change the value with --lines option)
/home/pi/.pm2/pm2.log last 200 lines:
PM2 | 2020-02-01T16:03:54: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:03:54: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:03:54: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:04:00: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:04:00: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:04:00: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:04:05: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:04:05: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:04:05: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:04:11: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:04:11: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:04:11: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:04:16: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:04:16: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:04:16: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:04:22: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:04:22: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:04:22: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:04:28: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:04:28: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:04:28: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:04:33: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:04:33: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:04:33: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:04:39: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:04:39: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:04:39: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:04:45: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:04:45: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:04:45: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:04:50: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:04:50: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:04:50: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:04:56: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:04:56: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:04:56: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:05:00: PM2 log: Stopping app:MagicMirror id:0
PM2 | 2020-02-01T16:05:00: PM2 log: pid=863 msg=failed to kill - retrying in 100ms
PM2 | 2020-02-01T16:05:00: PM2 log: pid=863 msg=failed to kill - retrying in 100ms
PM2 | 2020-02-01T16:05:00: PM2 log: pid=863 msg=failed to kill - retrying in 100ms
PM2 | 2020-02-01T16:05:00: PM2 log: pid=863 msg=failed to kill - retrying in 100ms
PM2 | 2020-02-01T16:05:00: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
PM2 | 2020-02-01T16:05:00: PM2 log: pid=863 msg=process killed
PM2 | 2020-02-01T16:05:00: PM2 log: App [MagicMirror:0] starting in -fork mode-
PM2 | 2020-02-01T16:05:00: PM2 log: App [MagicMirror:0] online
PM2 | 2020-02-01T16:05:02: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:05:02: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:05:02: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:05:08: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:05:08: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:05:08: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:05:09: PM2 log: Stopping app:omx_stream1 id:1
PM2 | 2020-02-01T16:05:09: PM2 log: App [omx_stream1:1] exited with code [0] via signal [SIGINT]
PM2 | 2020-02-01T16:05:09: PM2 log: pid=8949 msg=process killed
PM2 | 2020-02-01T16:05:13: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:05:13: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:05:19: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:05:19: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:05:19: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:05:25: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:05:25: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:05:25: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:05:30: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:05:30: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:05:30: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:05:36: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:05:36: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:05:36: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:05:41: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:05:41: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:05:41: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:05:47: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:05:47: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:05:47: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:05:53: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:05:53: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:05:53: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:05:58: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:05:58: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:05:58: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:06:04: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:06:04: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:06:04: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:06:09: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:06:09: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:06:09: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:06:15: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:06:15: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:06:15: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:06:20: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:06:20: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:06:20: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:06:26: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:06:26: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:06:26: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:06:31: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:06:31: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:06:31: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:06:37: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:06:37: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:06:37: PM2 log: App [omx_stream1:1] online
PM2 | 2020-02-01T16:06:43: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | 2020-02-01T16:06:43: PM2 log: App [omx_stream1:1] starting in -fork mode-
PM2 | 2020-02-01T16:06:43: PM2 log: App [omx_stream1:1] online
/home/pi/.pm2/logs/MagicMirror-error.log last 200 lines:
/home/pi/.pm2/logs/omx-stream1-error.log last 200 lines:
/home/pi/.pm2/logs/MagicMirror-out.log last 200 lines:
0|MagicMir | [16:05:00.464] [LOG] Shutting down server…
0|MagicMir | [16:05:00.465] [LOG] Stopping module helper: updatenotification
0|MagicMir | [16:05:00.466] [LOG] Shutting down MMM-RTSPStream streams that were using vlc
0|MagicMir | [16:05:00.467] [LOG] Killing DevilsPie2…
0|MagicMir | [16:05:00.471] [LOG] Killing All VLC Streams…
0|MagicMir | [16:05:00.472] [LOG] Stopping module helper: MMM-PublicTransportHafas
0|MagicMir | [16:05:00.472] [LOG] Stopping module helper: calendar
0|MagicMir | [16:05:00.473] [LOG] Stopping module helper: newsfeed
0|MagicMir |
0|MagicMir | > magicmirror@2.10.0 start /home/pi/MagicMirror
0|MagicMir | > ./run-start.sh
0|MagicMir |
0|MagicMir | [16:05:07.112] [LOG] Starting MagicMirror: v2.10.0
0|MagicMir | [16:05:07.122] [LOG] Loading config …
0|MagicMir | [16:05:07.129] [LOG] Loading module helpers …
0|MagicMir | [16:05:07.131] [LOG] No helper found for module: alert.
0|MagicMir | [16:05:07.187] [LOG] Initializing new module helper …
0|MagicMir | [16:05:07.189] [LOG] Module helper loaded: updatenotification
0|MagicMir | [16:05:08.315] [LOG] Initializing new module helper …
0|MagicMir | [16:05:08.315] [LOG] Module helper loaded: MMM-RTSPStream
0|MagicMir | [16:05:08.628] [LOG] Initializing new module helper …
0|MagicMir | [16:05:08.629] [LOG] Module helper loaded: MMM-PublicTransportHafas
0|MagicMir | [16:05:08.630] [LOG] No helper found for module: clock.
0|MagicMir | [16:05:08.631] [LOG] No helper found for module: currentweather.
0|MagicMir | [16:05:08.632] [LOG] No helper found for module: weatherforecast.
0|MagicMir | [16:05:08.706] [LOG] Initializing new module helper …
0|MagicMir | [16:05:08.706] [LOG] Module helper loaded: calendar
0|MagicMir | [16:05:08.740] [LOG] Initializing new module helper …
0|MagicMir | [16:05:08.741] [LOG] Module helper loaded: newsfeed
0|MagicMir | [16:05:08.741] [LOG] All module helpers loaded.
0|MagicMir | [16:05:08.743] [LOG] Starting server on port 8080 …
0|MagicMir | [16:05:08.758] [LOG] Server started …
0|MagicMir | [16:05:08.760] [LOG] Connecting socket for: updatenotification
0|MagicMir | [16:05:08.761] [LOG] Connecting socket for: MMM-RTSPStream
0|MagicMir | [16:05:08.762] [LOG] PM2: Stopping all OMXPlayer Streams…
0|MagicMir | [16:05:08.765] [LOG] Connecting socket for: MMM-PublicTransportHafas
0|MagicMir | [16:05:08.766] [LOG] Connecting socket for: calendar
0|MagicMir | [16:05:08.767] [LOG] Starting node helper for: calendar
0|MagicMir | [16:05:08.768] [LOG] Connecting socket for: newsfeed
0|MagicMir | [16:05:08.769] [LOG] Starting module: newsfeed
0|MagicMir | [16:05:08.770] [LOG] Sockets connected & modules started …
0|MagicMir | [16:05:08.999] [LOG] Launching application.
0|MagicMir | [16:05:09.244] [LOG] PM2: Checking if omx_stream1 is running…
0|MagicMir | [16:05:09.245] [LOG] PM2: Stopping omx_stream1…
0|MagicMir | [16:05:11.221] [LOG] Transportation fetcher for station with id ‘xxx’ created.
0|MagicMir | [16:05:11.394] [LOG] Transportation fetcher for station with id ‘xxx’ created.
0|MagicMir | [16:05:11.398] [LOG] Create new calendar fetcher for url: https://calendar.gxxx- Interval: 300000
0|MagicMir | [16:05:11.409] [LOG] Create new news fetcher for url: https://www.swr.de/~rss/swraktuell/swraktuell-bw-100.xml - Interval: 300000
0|MagicMir | [16:05:13.214] [LOG] Starting stream stream1 using: omxplayer --avdict rtsp_transport:tcp --win 6xxx,874 --live --video_queue 4 --fps 30 --no-osd rtsp://xxx:xxx@xxx.xxx.2.108:80/cam/realmonitor?channel=2&subtype=0
0|MagicMir | [16:05:13.241] [LOG] Starting PM2 for omx_stream1
0|MagicMir | [16:05:13.401] [LOG] PM2 started for omx_stream1
0|MagicMir | [16:05:13.411] [LOG] Starting stream stream1 using VLC with args --width 352 --height 242 -I dummy --video-on-top --no-video-deco --no-embedded-video --video-title=stream1 rtsp://XXX@xxx.xxx.2.108:80/cam/realmonitor?channel=2&subtype=0…
0|MagicMir | [16:05:13.445] [INFO] DP2: Running window resizers…
0|MagicMir | [16:05:20.485] [INFO] DP2: Running window resizers…
1|omx_stream1 | have a nice day ;)
PM2 | App [omx_stream1:1] exited with code [1] via signal [SIGINT]
PM2 | App [omx_stream1:1] starting in -fork mode-
PM2 | App [omx_stream1:1] online
Can someone help me, to see the ip-camera on the magic-mirror ?
thanks,