good night
It’s all day that I try to run the MMM-RTSPStream module without results.
My cameras are connected to a dvr and the stream I need to view takes it from the dvr with this string:
rtsp: //10.0.0.60: 554/h264/?ch=1&subtype=1&authbasic=admin:123456
Using vlc on a regular pc all works at the first shot.
Using ffplay on a regular pc works
If I use ffplay on raspberry, outside mmm, it works but after about a minute the flow stops.
If I use the form in magicmirror I see a window without stream.
My configuration in config.js is:
{
module: "MMM-RTSPStream",
position: "slide1mods_bottom_left",
header: "Video Surveillance",
config: {
autoStart: true,
rotateStreams: true,
rotateStreamTimeout: 10,
moduleWidth: 3,
moduleHeight: 240,
localPlayer: "omxplayer",
remotePlayer: "ffmpeg",
showSnapWhenPaused: true,
remoteSnaps: true,
stream1: {
name: 'Cam1',
url: "rtsp: //10.0.0.60: 554 / h264 /? ch = 1 & subtype = 1 & authbasic = admin: 123456"
frameRate: '15',
protocol: 'tcp',
hdUrl: 'none',
snapshotType: 'url',
snapshotRefresh: 10,
width: undefined,
height: undefined,
ffmpegPort: 9999,
},
}
},
When magicmirror runs, I see:
…
Create new news fetcher for url: http://www.repubblica.it/rss/cronaca/rss2.0.xml - Interval: 300000
Starting WebSocket server on port 9999. Waiting for connections …
Starting stream stream1 with args: [
“–avdict”
“Rtsp_transport: tcp”
“–win”
“139, 1546, 491, 1788”
“–live”
“–video_queue”
“4”
“–fps”
“30”,
“Rtsp: //10.0.0.60: 554 / h264 /? Ch = 1 & subtype = 1 & authbasic = admin: 123456”
]
Starting PM2 for omx_stream1
PM2 started for omx_stream1
It looks okay but I do not see the stream
If I run console omxplayer I see:
pi $ pi3mmm: ~ / MagicMirror $ omxplayer “rtsp: //10.0.0.60: 554 / h264 /? ch = 1 & subtype = 1 & authbasic = admin: 123456”
Video codec omx-h264 width 320 height 240 profile 77 fps 15.000000
Audio codec pcm_alaw channels 1 samplerate 8000 bitspersample 8
Subtitle count: 0, state: off, index: 1, delay: 0
V: PortSettingsChanged: 320x240@15.00 interlace: 0 deinterlace: 0 anaglyph: 0 par: 1.00 display: 0 layer: 0 alpha: 255 aspectMode: 0
and I can not see any streams open
If I run ffplay from console I see:
Input # 0, rtsp, from ‘rtsp: //10.0.0.60: 554 / h264 /? Ch = 1 & subtype = 1 & authbasic = admin: 123456’:
Metadata:
title: ZNRTSPServer
Duration: N / A, start: 2.133311, bitrate: N / A
Stream # 0: 0: Video: h264 (Main), yuv420p (tv, bt709, progressive), 320x240, 15 fps, 15 tbr, 90k tbn, 30 tbc
Stream # 0: 1: Audio: pcm_alaw, 8000 Hz, 1 channel, s16, 64 kb / s
you open a window where I see the stream but after about a minute it locks.
Help, advice?
Thank you, Alberto