MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Number_5
    3. Posts
    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

    Posts

    Recent Best Controversial
    • 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
      
      posted in Utilities
      N
      Number_5
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      Hello,
      would like to give you an interim report.

      1. password has been changed, none
      !?
      
      
      1. Stream with VlC programm possible, without query , :-)
      2. no error in the log file, see below
      3. 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 0x6d6140
      

      Thanks for your help

      posted in Utilities
      N
      Number_5
    • 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

      posted in Utilities
      N
      Number_5
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @evroom

      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

      posted in Utilities
      N
      Number_5
    • 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.

      posted in Utilities
      N
      Number_5
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @evroom

      @evroom

      Hello evroom
      thats my config.js

      var 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,
                  },
              }
      },
      
      1. 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
      
      posted in Utilities
      N
      Number_5
    • 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
      
      posted in Utilities
      N
      Number_5
    • 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,

      1. i have created a textfile wit this line:
      rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=1&subtype=0
      

      2 )opend in vlc player direct on raspberry
      3) query answered user:admin passwort:roland!?1971
      4) saw the stream thats working fine

      rtsp://User:Passwort@IP:PORT/cam/realmonitor?channel=1&subtype=0
      

      here i inserted the user, passwort , Ip and port, channel from the camera.

      posted in Utilities
      N
      Number_5
    • 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?

      posted in Utilities
      N
      Number_5
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @evroom

      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 $
      
      posted in Utilities
      N
      Number_5
    • 1
    • 2
    • 3
    • 4
    • 2 / 4