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

    Posts

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

      @Number_5

      Can you try this, to try to see what codec is used?

      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'
      
      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      ok, sorry,

      I am sorry too :-)

      Did you change the actual password of your cam or just changed the text in the admin:roland!?1971 part ?

      I do not have a Dahua cam, so I do not know where and how to set it.
      Probably there is a GUI (a web page) where you can do this.
      I guess you can open it like this:
      http://192.168.2.108
      But once you did set it to the password we are seeing right now, so you ought to know :-)

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

      @Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      after execute the commando "vi ~/MagicMirror/config/config.js " in commandline , the config.js openend

      Yes, sorry about that, vi is a text editor.
      Close it with :q! or [ESC]:q! (where [ESC] is the escape key)
      Then use the editor of your choice, like nano.

      nano ~/MagicMirror/config/config.js
      
      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @Number_5

      Could you please change your admin password of your cam to something without characters like ! and & ?
      When really needed, use + and/or _.

      Perhaps omxplayer has a parsing problem.
      Even tough we use single quotes to avoid this.
      I get the same error when using ?.

      Then try (with the changed password):

      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'
      

      You can also try the vlc player ‘trick’.
      IMHO it should not ask for user & password.

      Also try to play with the port.
      Either nothing, or :80 or :554.

      Btw, 192.168.2.140.2.108 is not a valid IP address.
      It is either 192.168.2.108 or 192.168.2.140.
      I guess 192.168.2.140 is your MM / Rasperry Pi IP and 192.168.2.108 is your Dahua cam IP.

      Good luck.

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

      @sdetweil said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      no port specified, has camera ip that worked with vlc.

      What bothers me, is the fact that vlc did not take the supplied user and password, but queried again for it.
      omxplayer will not do that; will just fail to open.

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

      @Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      thats my config.js

      So it means you were able to get the RTSP config to open?
      And when you entered the URL for your cam, did it show you a video stream from your cam?
      I forgot if it does do that, or just builds the config part for config.js.

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

      @sdetweil said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      he did that

      Sorry, then I misread.
      I read:

      url: ‘rtsp://admin:roland!?1971@192.168.2.140.2.108:554/cam/realmonitor?channel=2&subtype=0’,
      

      So now I am confused :-)

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

      @Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      yes, thats correct, querry follows after confirmation the url. then the stream follows

      Then we might have a parsing issue with your URL.
      I think your password may cause a problem.
      The ! an ? may cause a problem as they have meaning for your bash shell.
      Have to think on that …

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

      @Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      User, passwot from camera, id from raspberry, port as suggested,

      I suggested to NOT use a port, so to ditch the :80 or :554.
      And when using the omxplayer command, you will need to supply the cam IP.
      Does your spelling check change the word IP in id??
      I know it can be confusing, but you will need to read things right in order for us (the community) to be able to help you. He says in a friendly tone and manner :-)

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

      @Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      1. query answered

      Did vlc player come with this query for user and password?
      The reason for supplying it in the URL is to not have to supply user and password.
      So, perhaps omxplayer has the same issue, but it will not ask for user and password like vlc player does.
      When vlc did not ask for the user and password, then we know the URL is correct, or at least can be parsed correct.

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

      @Number_5

      One more thing to try. Just leave out the port altogether.
      I use it without specifying the port.

      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'
      
      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @Number_5

      When you run MM locally on your Pi, then your MM IP is your Pi IP.
      IP being the IP address, not an id.

      When you are able to open the RTSPStream configurator using 0.0.0.0.8080/MMM-rtspStream, then that’s fine.

      Continue with step 2 from this post:
      https://forum.magicmirror.builders/topic/2743/mmm-rtspstream-video-streaming-from-live-feeds-security-cameras/379

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

      See
      https://forum.magicmirror.builders/topic/2743/mmm-rtspstream-video-streaming-from-live-feeds-security-cameras/379

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

      @Number_5
      Try with port 554, see previous post.

      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.

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

      @Number_5

      Can you try with another port number (554 iso 80) ?

      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'
      
      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      ERROR: COMXPlayer::OpenFile - avformat_open_input

      Okay, without getting rid of this error, omxplayer and therefore MMM-RTSPStream using omxplayer will not work for you.
      I have an Axis cam and there it did not work because to the resolution I used, had to use one of the resolutions that is supported by the cam.

      Where you able to open
      http://your-mirror-ip:8080/MMM-RTSPStream/config.html
      and see the cam there ?

      Could try ffmpeg, but there I have to pass.

      What camera are we talking about ?

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

      @Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      ok sorry,

      Nothing to be sorry for; you are learning as you go :-)

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

      @Number_5

      Could you please post commands and output using the </> tag ?
      So, select the command or output and click on the </> symbol.

      Does the log say anything useful ?

      more omxplayer.log
      

      Pleas do not post the complete log, unless small.
      30 lines tops.

      head -30 omxplayer.log
      
      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @Number_5

      Better to stop MM temporarily or disable the module with disabled: true, and a restart of MM.
      Also make sure omx_stream1 process is not running.

      pm2 status
      pm2 stop omx_stream1
      pm2 delete omx_stream1
      pm2 status
      

      Then do the single quoted command, with logging enabled.

      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:80/cam/realmonitor?channel=2&subtype=0'
      
      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @Number_5

      Can you try with quotes (single, double) ?

      omxplayer --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:80/cam/realmonitor?channel=2&subtype=0"
      
      omxplayer --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:80/cam/realmonitor?channel=2&subtype=0'
      

      when the command works, but still no video, then add --genlog

      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:80/cam/realmonitor?channel=2&subtype=0'
      

      This will creat a log file called omxplayer.log under the directory where you started omxplayer.

      posted in Utilities
      evroomE
      evroom
    • 1 / 1