hello sam,
Thank you. You opened the door for me a few days ago. writing small and large scripts will be my next challenge :-). for the first one ,i took up the suggestion from evroom. I hope you will help me with the next projects, :-)
Read the statement by Michael Teeuw here.
Posts
-
RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
-
RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
@evroom said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
omxplayer --info --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd ‘rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0’
Hello evroom,
you are the best. now its working!
thanks all for your support. and thanks all for your patience in the past nights.
pi@raspberrypi:~/MagicMirror/config $ omxplayer --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:RoKu1234@192.168.2.108:554/cam/realmonitor?channel=1&subtype=0' Video codec omx-h264 width 1920 height 1080 profile 77 fps 30.000000 Subtitle count: 0, state: off, index: 1, delay: 0 V:PortSettingsChanged: 1920x1080@30.00 interlace:0 deinterlace:0 anaglyph:0 par:1.00 display:0 layer:0 alpha:255 aspectMode:0I have put tbe url in the config.js
{ module: "MMM-RTSPStream", position: "middle_center", header: "Test Kamera", config: { autoStart: true, rotateStreams: true, rotateStreamTimeout: 10, moduleWidth: 354, moduleHeight: 240, localPlayer: 'omxplayer', remotePlayer: 'none', showSnapWhenPaused: true, remoteSnaps: true, stream1: { name: 'door', url: 'rtsp://XXX:XXX@192.168.2.108:554/cam/realmonitor?channel=1&subtype=0', frameRate: 'undefined', snapshotType: 'url', snapshotRefresh: 10, width: undefined, height: undefined, }, } },with
pm2 stop MagicMirrorthe mirror stops, but not the stream from the camerea.
Only with the commandpm2 stop 1the stream stops.
-
RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
Hello evroom,
here the results
How many Channels do you have ? 4 (LUNA DVR Player)
channel 1 luna camera is connected and with channel 2 there is the dahua camera , channel 3 and 4 are free,Is there a channel with Compression H.264 (something not H.265) ? yes, i have changed it now from H265 to H264
Is there a Sub Stream that is enabled with Compression H.264 (something not H.265) ?there is a extrastream i have set it from h265 to h264
also there was a Zero-Channel at the option “display” disabled , i have it enabled now with h264What Compresion options are there ? h264, h264b , h264 , h264h , h265
subtype=0 with h264
pi@raspberrypi:~ $ omxplayer --info --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=0' Input #0, rtsp, from 'rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=0': Metadata: title : Media Server Duration: N/A, start: 0.270000, bitrate: N/A Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1920x1080, 100 tbr, 90k tbn, 180k tbc have a nice day ;)subtype=1 with h264
pi@raspberrypi:~ $ omxplayer --info --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=1' Input #0, rtsp, from 'rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=1': Metadata: title : Media Server Duration: N/A, start: 0.480000, bitrate: N/A Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 352x288, 100 tbr, 90k tbn, 180k tbc have a nice day ;)subtype=2 with h264, its not working log with error
pi@raspberrypi:~ $ omxplayer --info --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=2' have a nice day ;) pi@raspberrypi:~ $su -
RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
subtype 2 , with error in the log.
pi@raspberrypi:~ $ more omxplayer.log
22:23:44 T:18446744072031941972 DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=2 22:24:14 T:18446744072062033195 ERROR: COMXPlayer::interrupt_cb - Timed out 22:24:14 T:18446744072062033629 ERROR: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=2 22:24:14 T:18446744072062034345 DEBUG: OMXThread::Run - Exited thread with id -1387290944 22:24:14 T:18446744072062034889 DEBUG: OMXThread::StopThread - Thread stopped -
RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
subtyp 0
pi@raspberrypi:~ $ omxplayer --info --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=0' Input #0, rtsp, from 'rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=0': Metadata: title : Media Server Duration: N/A, start: 0.040000, bitrate: N/A Stream #0:0: Video: hevc (Main), yuvj420p(pc, bt709), 1920x1080, 100 tbr, 90k tbn, 90k tbc have a nice day ;)subtyp 1
pi@raspberrypi:~ $ omxplayer --info --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=1' Input #0, rtsp, from 'rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=1': Metadata: title : Media Server Duration: N/A, start: 0.080000, bitrate: N/A Stream #0:0: Video: hevc (Main), yuvj420p(pc, bt709), 352x288, 100 tbr, 90k tbn, 90k tbc have a nice day ;)subtype 2
pi@raspberrypi:~ $ omxplayer --info --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=1&subtype=2' have a nice day ;) pi@raspberrypi:~ $ -
RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
sorry,
with subtype=0 the second attemptpi@raspberrypi:~/MagicMirror $ omxplayer --info --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0' Input #0, rtsp, from 'rtsp://admin:RoKu1234@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0':Metadata: title : Media Server Duration: N/A, start: 0.080000, bitrate: N/A Stream #0:0: Video: hevc (Main), yuvj420p(pc, bt709), 1920x1080, 25 fps, 25 tbr, 90k tbn, 90k tbc have a nice day ;) pi@raspberrypi:~/MagicMirror $ more omxplayer.log 21:49:12 T:545640871 DEBUG: DllBcm: Using omx system library 21:49:12 T:545641966 DEBUG: DllOMX: Using omx system library 21:49:12 T:545642575 DEBUG: DllAvFormat: Using libavformat system library 21:49:12 T:545643867 DEBUG: DBus connection succeeded 21:49:12 T:545644603 DEBUG: Keyboard: DBus connection succeeded 21:49:12 T:545644749 DEBUG: OMXThread::Create - Thread with id -1387290944 started 21:49:12 T:545644849 DEBUG: DllAvUtilBase: Using libavutil system library 21:49:12 T:545644870 DEBUG: DllAvCodec: Using libavcodec system library 21:49:12 T:545644885 DEBUG: DllAvFormat: Using libavformat system library 21:49:12 T:545645216 DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx:xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0 21:49:12 T:545805065 DEBUG: COMXPlayer::OpenFile - avformat_open_input enabled SEEKING 21:49:13 T:546749810 DEBUG: OMXThread::Run - Exited thread with id -1387290944 21:49:13 T:546750434 DEBUG: OMXThread::StopThread - Thread stopped -
RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
here the result
p``` i@raspberrypi:~/MagicMirror $ omxplayer --info --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=1'[rtsp @ 0xaf9770] method OPTIONS failed: 401 Unauthorized have a nice day ;) pi@raspberrypi:~/MagicMirror $ more omxplayer.log 21:22:31 T:18446744072654331549 DEBUG: DllBcm: Using omx system library 21:22:31 T:18446744072654332606 DEBUG: DllOMX: Using omx system library 21:22:31 T:18446744072654333203 DEBUG: DllAvFormat: Using libavformat system library 21:22:31 T:18446744072654334714 DEBUG: DBus connection succeeded 21:22:31 T:18446744072654335626 DEBUG: Keyboard: DBus connection succeeded 21:22:31 T:18446744072654335771 DEBUG: OMXThread::Create - Thread with id -1387290944 started 21:22:31 T:18446744072654335867 DEBUG: DllAvUtilBase: Using libavutil system library 21:22:31 T:18446744072654335887 DEBUG: DllAvCodec: Using libavcodec system library 21:22:31 T:18446744072654335903 DEBUG: DllAvFormat: Using libavformat system library 21:22:31 T:18446744072654336238 DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=1 21:22:31 T:18446744072654372616 ERROR: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=1 21:22:31 T:18446744072654377098 DEBUG: OMXThread::Run - Exited thread with id -1387290944 21:22:31 T:18446744072654377333 DEBUG: OMXThread::StopThread - Thread stoppedpi@raspberrypi:~/MagicMirror $ omxplayer --info --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=2'[rtsp @ 0xd1d770] method OPTIONS failed: 401 Unauthorized have a nice day ;) pi@raspberrypi:~/MagicMirror $ more omxplayer.log 21:23:48 T:18446744072731535779 DEBUG: DllBcm: Using omx system library 21:23:48 T:18446744072731536888 DEBUG: DllOMX: Using omx system library 21:23:48 T:18446744072731537505 DEBUG: DllAvFormat: Using libavformat system library 21:23:48 T:18446744072731538801 DEBUG: DBus connection succeeded 21:23:48 T:18446744072731539526 DEBUG: Keyboard: DBus connection succeeded 21:23:48 T:18446744072731539667 DEBUG: OMXThread::Create - Thread with id -1387290944 started 21:23:48 T:18446744072731539768 DEBUG: DllAvUtilBase: Using libavutil system library 21:23:48 T:18446744072731539790 DEBUG: DllAvCodec: Using libavcodec system library 21:23:48 T:18446744072731539805 DEBUG: DllAvFormat: Using libavformat system library 21:23:48 T:18446744072731540190 DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=2 21:23:48 T:18446744072731573465 ERROR: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=2 21:23:48 T:18446744072731579918 DEBUG: OMXThread::Run - Exited thread with id -1387290944 21:23:48 T:18446744072731580203 DEBUG: OMXThread::StopThread - Thread stopped pi@raspberrypi:~/MagicMirror $ -
RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
Yes, I changed it in xxx.xxx when I send the log to the the fourm
-
RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
Hello evroom,
thats the result.pi@raspberrypi:~/MagicMirror $ omxplayer --info --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0'[rtsp @ 0x1e70770] method OPTIONS failed: 401 Unauthorized have a nice day ;)pi@raspberrypi:~/MagicMirror $ more omxplayer.log 20:59:38 T:1866439265 DEBUG: DllBcm: Using omx system library 20:59:38 T:1866440312 DEBUG: DllOMX: Using omx system library 20:59:38 T:1866440900 DEBUG: DllAvFormat: Using libavformat system library 20:59:38 T:1866442436 DEBUG: DBus connection succeeded 20:59:38 T:1866443340 DEBUG: Keyboard: DBus connection succeeded 20:59:38 T:1866443488 DEBUG: OMXThread::Create - Thread with id -1387290944 started 20:59:38 T:1866443585 DEBUG: DllAvUtilBase: Using libavutil system library 20:59:38 T:1866443604 DEBUG: DllAvCodec: Using libavcodec system library 20:59:38 T:1866443620 DEBUG: DllAvFormat: Using libavformat system library 20:59:38 T:1866443952 DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx.xxx@192.168.2.108:554/cam/re almonitor?channel=2&subtype=0 20:59:38 T:1866474815 ERROR: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx.xxx@192.168.2.108:554/cam/re almonitor?channel=2&subtype=0 20:59:38 T:1866484802 DEBUG: OMXThread::Run - Exited thread with id -1387290944 20:59:38 T:1866485061 DEBUG: OMXThread::StopThread - Thread stopped pi@raspberrypi:~/MagicMirror $ -
RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
pi@raspberrypi:~/MagicMirror $ omxplayer --info --genlog --avdict rtsp_transport:tcp --win,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0'/usr/bin/omxplayer.bin: unrecognized option '--win,424,1138,666'pi@raspberrypi:~/MagicMirror $ more omxplayer.log 20:09:20 T:18446744072557925778 DEBUG: DllBcm: Using omx system library 20:09:20 T:18446744072557926899 DEBUG: DllOMX: Using omx system library 20:09:20 T:18446744072557927508 DEBUG: DllAvFormat: Using libavformat system library 20:09:20 T:18446744072557928896 DEBUG: DBus connection succeeded 20:09:20 T:18446744072557929631 DEBUG: Keyboard: DBus connection succeeded 20:09:20 T:18446744072557929778 DEBUG: OMXThread::Create - Thread with id -1388339520 started 20:09:20 T:18446744072557929873 DEBUG: DllAvUtilBase: Using libavutil system library 20:09:20 T:18446744072557929894 DEBUG: DllAvCodec: Using libavcodec system library 20:09:20 T:18446744072557929910 DEBUG: DllAvFormat: Using libavformat system library 20:09:20 T:18446744072557930230 DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx:xxxx@192.168.2.108/cam/realmonitor?channel=2&subtype=0 20:09:20 T:18446744072558104967 DEBUG: COMXPlayer::OpenFile - avformat_open_input enabled SEEKING 20:09:21 T:18446744072559101936 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.clock input port 80 output port 81 m_handle 0x79d170 20:09:21 T:18446744072559102429 DEBUG: OMXClock::OMXStop 20:09:21 T:18446744072559102650 DEBUG: OMXClock::OMXSetSpeed(0.00) pause_resume:1 20:09:21 T:18446744072559103080 DEBUG: DllAvUtilBase: Using libavutil system library 20:09:21 T:18446744072559103130 DEBUG: DllAvCodec: Using libavcodec system library 20:09:21 T:18446744072559103172 DEBUG: DllAvFormat: Using libavformat system library 20:09:21 T:18446744072559103634 DEBUG: OMXClock::OMXStop 20:09:21 T:18446744072559115423 DEBUG: OMXThread::Run - Exited thread with id -1388339520 20:09:21 T:18446744072559115981 DEBUG: OMXThread::StopThread - Thread stopped 20:09:21 T:18446744072559118051 DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.clock handle 0x79d170 pi@raspberrypi:~/MagicMirror $ -
RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
Hello,
thats the logfile without a port:omxplayer --genlog --avdict rtsp_transport:tcp -pi@raspberrypi:~/MagicMirror $ omxplayer --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx:xxx@192.168.2.108/cam/realmonitor?channel=2&subtype=0'Vcodec id unknown: ad have a nice day ;)pi@raspberrypi:~/MagicMirror $ more omxplayer.log 20:09:20 T:18446744072557925778 DEBUG: DllBcm: Using omx system library 20:09:20 T:18446744072557926899 DEBUG: DllOMX: Using omx system library 20:09:20 T:18446744072557927508 DEBUG: DllAvFormat: Using libavformat system library 20:09:20 T:18446744072557928896 DEBUG: DBus connection succeeded 20:09:20 T:18446744072557929631 DEBUG: Keyboard: DBus connection succeeded 20:09:20 T:18446744072557929778 DEBUG: OMXThread::Create - Thread with id -1388339520 started 20:09:20 T:18446744072557929873 DEBUG: DllAvUtilBase: Using libavutil system library 20:09:20 T:18446744072557929894 DEBUG: DllAvCodec: Using libavcodec system library 20:09:20 T:18446744072557929910 DEBUG: DllAvFormat: Using libavformat system library 20:09:20 T:18446744072557930230 DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx:xxx@192.168.2.108/cam/realmonitor?channel=2&subtype=0 20:09:20 T:18446744072558104967 DEBUG: COMXPlayer::OpenFile - avformat_open_input enabled SEEKING 20:09:21 T:18446744072559101936 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.clock input port 80 output port 81 m_handle 0x79d170 20:09:21 T:18446744072559102429 DEBUG: OMXClock::OMXStop 20:09:21 T:18446744072559102650 DEBUG: OMXClock::OMXSetSpeed(0.00) pause_resume:1 20:09:21 T:18446744072559103080 DEBUG: DllAvUtilBase: Using libavutil system library 20:09:21 T:18446744072559103130 DEBUG: DllAvCodec: Using libavcodec system library 20:09:21 T:18446744072559103172 DEBUG: DllAvFormat: Using libavformat system library 20:09:21 T:18446744072559103634 DEBUG: OMXClock::OMXStop 20:09:21 T:18446744072559115423 DEBUG: OMXThread::Run - Exited thread with id -1388339520 20:09:21 T:18446744072559115981 DEBUG: OMXThread::StopThread - Thread stopped 20:09:21 T:18446744072559118051 DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.clock handle 0x79d170 -
RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
Hello,
would like to give you an interim report.- password has been changed, none
!?- Stream with VlC programm possible, without query , :-)
- no error in the log file, see below
- i will try more on Friday or Saturday
pi@raspberrypi:~/MagicMirror $ omxplayer --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0' Vcodec id unknown: ad have a nice day ;)pi@raspberrypi:~/MagicMirror $ omxplayer --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108/cam/realmonitor?channel=2&subtyp e=0' Vcodec id unknown: ad have a nice day ;)pi@raspberrypi:~/MagicMirror $ omxplayer --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0' Vcodec id unknown: ad have a nice day ;)pi@raspberrypi:~/MagicMirror $ omxplayer --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&su btype=0' Vcodec id unknown: ad have a nice day ;)pi@raspberrypi:~/MagicMirror $ more omxplayer.log 18:31:12 T:1550613812 DEBUG: DllBcm: Using omx system library 18:31:12 T:1550615108 DEBUG: DllOMX: Using omx system library 18:31:12 T:1550615746 DEBUG: DllAvFormat: Using libavformat system library 18:31:12 T:1550617254 DEBUG: DBus connection succeeded 18:31:12 T:1550618196 DEBUG: Keyboard: DBus connection succeeded 18:31:12 T:1550618346 DEBUG: OMXThread::Create - Thread with id -1388339520 started 18:31:12 T:1550618446 DEBUG: DllAvUtilBase: Using libavutil system library 18:31:12 T:1550618468 DEBUG: DllAvCodec: Using libavcodec system library 18:31:12 T:1550618487 DEBUG: DllAvFormat: Using libavformat system library 18:31:12 T:1550618829 DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0 18:31:12 T:1550714583 DEBUG: COMXPlayer::OpenFile - avformat_open_input enabled SEEKING 18:31:13 T:1551680437 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.clock input port 80 output port 81 m_handle 0x6d6140 18:31:13 T:1551681127 DEBUG: OMXClock::OMXStop 18:31:13 T:1551681450 DEBUG: OMXClock::OMXSetSpeed(0.00) pause_resume:1 18:31:13 T:1551681918 DEBUG: DllAvUtilBase: Using libavutil system library 18:31:13 T:1551681973 DEBUG: DllAvCodec: Using libavcodec system library 18:31:13 T:1551682018 DEBUG: DllAvFormat: Using libavformat system library 18:31:13 T:1551682225 DEBUG: OMXClock::OMXStop 18:31:13 T:1551684333 DEBUG: OMXThread::Run - Exited thread with id -1388339520 18:31:13 T:1551684932 DEBUG: OMXThread::StopThread - Thread stopped 18:31:13 T:1551688082 DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.clock handle 0x6d6140Thanks for your help
-
RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
ok, sorry,
a) create the textfile and opened it in the vlc player on raspberry - then answered the querry **(user and password),not id !!!so i could saw the camerastream
-
RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
i have done 2 things.
a) create the textfile and opened it in the vlc player on raspberry - then answered the querry (user and id)j, so i could saw the camerastream
b) followed your steps:
step 6
Add the module to the config.js (replace the initial one):
vi ~/MagicMirror/config/config.js
after execute the commando "vi ~/MagicMirror/config/config.js " in commandline , the config.js openend -
RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
yes, thats correct, querry follows after confirmation the url. then the stream follows
thanks for your help.
-
RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
Hello evroom
thats my config.jsvar config = { address: "0.0.0.0", // Address to listen on, can be: // - "localhost", "127.0.0.1", "::1" to listen on loopback interface // - another specific IPv4/6 to listen on a specific interface // - "", "0.0.0.0", "::" to listen on any interface // Default, when address config is left out, is "localhost" port: 8080, ipWhitelist: [], // Set [] to allow all IP addresses// { // module: 'MMM-RTSPStream', // position: 'middle_center', // config: { // initialSetup: true, // } // },{ module: "MMM-RTSPStream", position: "middle_center", config: { autoStart: true, rotateStreams: true, rotateStreamTimeout: 10, moduleWidth: 354, moduleHeight: 240, localPlayer: 'ffmpeg', remotePlayer: 'none', showSnapWhenPaused: true, remoteSnaps: true, shutdownDelay: 12, stream1: { name: '', url: 'rtsp://admin:roland!?1971@192.168.2.140.2.108:554/cam/realmonitor?channel=2&subtype=0', frameRate: 'undefined', snapshotType: 'url', snapshotRefresh: 10, width: undefined, height: undefined, ffmpegPort: 9999, }, } },- 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:~ $in this case i have took the ;
url: ‘rtsp://admin:roland!?1971@192.168.2.140.2.108:554/cam/realmonitor?channel=2&subtype=0’,
User, passwot from camera, id from raspberry, port as suggested, but with port 80 the real port its also not working.
rtsp://Benutzer:Passwort@IP:PORT/cam/realmonitor?channel=1&subtype=0 -
RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
Hello evroom,
thats the result. Error after debug the file.
pi@raspberrypi:~/MagicMirror $ pm2 stop 1
[PM2] Applying action stopProcessId on app [1](ids: 1)
[PM2] omx_stream1 ✓┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 0 │ 0 │ 0 │ stopped │ 0% │ 0b │ pi │ disabled │
│ 1 │ omx_stream1 │ default │ N/A │ fork │ 0 │ 0 │ 30 │ stopped │ 0% │ 0b │ pi │ disabled │
└─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘pi@raspberrypi:~/MagicMirror $ omxplayer --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:roland!?1971@192.168.2.108/cam/realmonitor?channel=2&subtype=0' have a nice day ;) pi@raspberrypi:~/MagicMirror $ more omxplayer.log 20:10:50 T:18446744072147623537 DEBUG: DllBcm: Using omx system library 20:10:50 T:18446744072147624751 DEBUG: DllOMX: Using omx system library 20:10:50 T:18446744072147625400 DEBUG: DllAvFormat: Using libavformat system library 20:10:50 T:18446744072147626711 DEBUG: DBus connection succeeded 20:10:50 T:18446744072147627442 DEBUG: Keyboard: DBus connection succeeded 20:10:50 T:18446744072147627591 DEBUG: OMXThread::Create - Thread with id -1387290944 started 20:10:50 T:18446744072147627696 DEBUG: DllAvUtilBase: Using libavutil system library 20:10:50 T:18446744072147627719 DEBUG: DllAvCodec: Using libavcodec system library 20:10:50 T:18446744072147627738 DEBUG: DllAvFormat: Using libavformat system library 20:10:50 T:18446744072147628026 DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://admin:roland!?1971@192.168.2.108/cam/realmonitor?channel=2&subtype=0 20:10:50 T:18446744072147628457 ERROR: COMXPlayer::OpenFile - avformat_open_input rtsp://admin:roland!?1971@192.168.2.108/cam/realmonitor?channel=2&subtype=0 20:10:50 T:18446744072147647754 DEBUG: OMXThread::Run - Exited thread with id -1387290944 20:10:50 T:18446744072147648005 DEBUG: OMXThread::StopThread - Thread stopped -
RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
@sdetweil said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
create a text file
Hallo Sam,
- i have created a textfile wit this line:
rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=1&subtype=02 )opend in vlc player direct on raspberry
3) query answered user:admin passwort:roland!?1971
4) saw the stream thats working finertsp://User:Passwort@IP:PORT/cam/realmonitor?channel=1&subtype=0here i inserted the user, passwort , Ip and port, channel from the camera.
-
RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
Hello Sam,
with 0.0.0.0.8080/MMM-rtspStream I was able to open the module configurator.evroom said:
And see
https://github.com/shbatm/MMM-RTSPStream
“Using the module” on the config.html part I was referring to.
The IP there, is the MM IP, or localhost, not your cam IP.It means the mirror id is not the raspberry pi?
where can I find the mm id? -
RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
thats the result with the port 554
pi@raspberrypi:~/MagicMirror/config $ omxplayer --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:roland!?1971@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0' have a nice day ;) pi@raspberrypi:~/MagicMirror/config $ head -30 omxplayer.log 21:33:25 T:18446744071806154291 DEBUG: DllBcm: Using omx system library 21:33:25 T:18446744071806155602 DEBUG: DllOMX: Using omx system library 21:33:25 T:18446744071806156277 DEBUG: DllAvFormat: Using libavformat system library 21:33:25 T:18446744071806157458 WARNING: Failed to acquire D-Bus name 'org.mpris.MediaPlayer2.omxplayer' 21:33:25 T:18446744071806157567 WARNING: DBus connection failed, trying alternate 21:33:25 T:18446744071806158687 DEBUG: DBus connection succeeded 21:33:25 T:18446744071806159455 DEBUG: Keyboard: DBus connection succeeded 21:33:25 T:18446744071806159602 DEBUG: OMXThread::Create - Thread with id -1387290944 started 21:33:25 T:18446744071806159705 DEBUG: DllAvUtilBase: Using libavutil system library 21:33:25 T:18446744071806159738 DEBUG: DllAvCodec: Using libavcodec system library 21:33:25 T:18446744071806159756 DEBUG: DllAvFormat: Using libavformat system library 21:33:25 T:18446744071806160118 DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://admin:roland!?1971@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0 21:33:25 T:18446744071806160518 ERROR: COMXPlayer::OpenFile - avformat_open_input rtsp://admin:roland!?1971@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0 21:33:25 T:18446744071806179771 DEBUG: OMXThread::Run - Exited thread with id -1387290944 21:33:25 T:18446744071806180025 DEBUG: OMXThread::StopThread - Thread stopped pi@raspberrypi:~/MagicMirror/config $