• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
  1. Home
  2. Number_5
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
N
Offline
  • Profile
  • Following 1
  • Followers 0
  • Topics 0
  • Posts 34
  • Groups 0

Number_5

@Number_5

0
Reputation
95
Profile views
34
Posts
0
Followers
1
Following
Joined Jan 12, 2020, 6:54 PM
Last Online Feb 11, 2025, 6:29 PM

Number_5 Unfollow Follow

Latest posts made by Number_5

  • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

    @sdetweil

    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, :-)

    posted in Utilities
    N
    Number_5
    Feb 7, 2020, 7:50 PM
  • 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:0
    

    I 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 MagicMirror
    

    the mirror stops, but not the stream from the camerea.
    Only with the command

    pm2 stop 1
    

    the stream stops.

    posted in Utilities
    N
    Number_5
    Feb 7, 2020, 3:24 PM
  • 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 h264

    What 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
    
    posted in Utilities
    N
    Number_5
    Feb 6, 2020, 8:20 PM
  • 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
    
    posted in Utilities
    N
    Number_5
    Feb 5, 2020, 10:27 PM
  • 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:~ $
    
    posted in Utilities
    N
    Number_5
    Feb 5, 2020, 10:20 PM
  • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

    sorry,
    with subtype=0 the second attempt

    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'
    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
    
    posted in Utilities
    N
    Number_5
    Feb 5, 2020, 9:56 PM
  • 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 stopped
    
    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=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 $
    
    posted in Utilities
    N
    Number_5
    Feb 5, 2020, 9:28 PM
  • 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

    posted in Utilities
    N
    Number_5
    Feb 5, 2020, 9:13 PM
  • 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 $
    
    posted in Utilities
    N
    Number_5
    Feb 5, 2020, 9:03 PM
  • 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 $
    
    posted in Utilities
    N
    Number_5
    Feb 5, 2020, 8:33 PM
Enjoying MagicMirror? Please consider a donation!
MagicMirror created by Michael Teeuw.
Forum managed by Sam, technical setup by Karsten.
This forum is using NodeBB as its core | Contributors
Contact | Privacy Policy