• 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
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-RTSPStream dosent work in my case

Scheduled Pinned Locked Moved Troubleshooting
15 Posts 4 Posters 8.9k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    barnosch
    last edited by barnosch Nov 22, 2017, 6:57 AM Nov 22, 2017, 6:54 AM

    did you put some spaces between the URL for better reading in the forum, or could this be the issue?

    url: "rtsp: //10.0.0.60: 554 / h264 /? ch = 1 & subtype = 1 & authbasic = admin: 123456"
    

    Should be look like this imho

    url: "rtsp://10.0.0.60:554/h264/?ch=1&subtype=1&authbasic=admin:123456"
    

    Have you tried to stream the teststream from the example?
    Just to see if everything is set up correctly from module side.

    1 Reply Last reply Reply Quote 0
    • A Offline
      alverman
      last edited by Nov 22, 2017, 9:10 AM

      hi barnosch,
      the string is just that inserted in the forum has taken this look.
      The string in the configuration is right.
      One test I did not do is the one you have proposed.
      after I put the video file on my desktop I changed the form string with:

      {
      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"
      url: '/home/pi/Desktop/test.h264',
      frameRate: '15',
      protocol: 'tcp',
      hdUrl: 'none',
      snapshotType: 'url',
      snapshotRefresh: 10,
      width: undefined,
      height: undefined,
      ffmpegPort: 9999,
      },
      }
      },
      

      But you see nothing.
      Performing the console test file with:

      omxplayer /home/pi/Desktop/test.h264
      

      I see the movie !!
      I do not know what else to try !!

      1 Reply Last reply Reply Quote 0
      • B Offline
        barnosch
        last edited by Nov 22, 2017, 12:25 PM

        have you installed the dependencies from the module?
        “npm install” within the MMM-RTSP folder

        Could it maybe be a issue with your custom made CSS “postition”?
        Maybe you should try a ordinary original one for testing

        1 Reply Last reply Reply Quote 0
        • A Offline
          alverman
          last edited by Nov 22, 2017, 12:36 PM

          Hi barnosch,
          I ran npm install in the module MMM-RTSPStram folder.
          I had already tried the normal MagicMirror css and went the same way.
          On pi3 I have two versions of MagicMirror installed.
          An original and one with all the modules I need.
          To try one or the other version, rename the Home/pi/MagicMirror folder and test it

          Thanks for your attenction, Alberto

          1 Reply Last reply Reply Quote 0
          • A Offline
            alverman
            last edited by Nov 23, 2017, 5:37 PM

            Good morning,
            I made a small step but I have not been able to solve it yet.
            Until now I have tried console to display rtsp stream from my dvr without result.
            Just putting the line -n -1 (no audio) succeeded, from the command line, to display the flow.
            Then in the configuration file (config.js) or the MMM-RTSTStream module you should enter the parsing -n -1 !!
            But how do I do it?

            Thank you, Alberto

            1 Reply Last reply Reply Quote 0
            • A Offline
              alverman
              last edited by Nov 23, 2017, 6:47 PM

              Another problem, always in console, is that if the stream tends to lower itself, the omxplayer closes

              1 Reply Last reply Reply Quote 0
              • A Offline
                alverman
                last edited by Nov 23, 2017, 11:04 PM

                So I think I’ve solved the problem of why the console flow is interrupted!
                from console I have to give this command:

                omxplayer -g -n -1 --timeout 0 --avdict rtsp_transport: tcp "rtsp://10.0.0.60:554/h264/?ch=1&subtype=1& authbasic = admin:123456"
                

                So now how can I add the switches:

                -g -1 --timeout 0 --avdict rtsp_transport: tcp 
                

                in config.js?

                Any help please?

                Thank you, Alberto

                1 Reply Last reply Reply Quote 0
                • A Offline
                  alverman
                  last edited by Nov 23, 2017, 11:08 PM

                  @alverman said in MMM-RTSPStream dosent work in my case:

                  So I think I’ve solved the problem of why the console flow is interrupted!
                  from console I have to give this command:
                  omxplayer -n -1 --timeout 0 --avdict rtsp_transport: tcp “rtsp://10.0.0.60:554/h264/?ch=1&subtype=1& authbasic = admin:123456”

                  So now how can I add the switches:
                  -n -1 --timeout 0 --avdict rtsp_transport: tcp

                  in config.js?
                  Any help please?
                  Thank you, Alberto

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    alverman
                    last edited by Nov 24, 2017, 12:09 AM

                    Sorry if I keep on this monologue but I’m going crazy !!
                    I’ve tried MagicMirror with only the standard modules and the MMM-RSPSream module.
                    Created the code to enter in config.js
                    Enter the code in config.js
                    Starting npm start I see the frame of rtsp stream but I do not see anything.
                    If I hit the frame I see the play icon if I get it I see the pause icon as if the stream was played but I see nothing.

                    I’m really tired of this thing.
                    I know it might go but it does not go and I just miss this form to close the project.

                    Really give me a hand please

                    Thank you, Alberto

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      barnosch
                      last edited by Nov 24, 2017, 2:22 PM

                      Here is my working config.

                       {
                                      module: 'MMM-RTSPStream',
                                      position: 'bottom_left',
                                      config: {
                                              autoStart: true,
                                              rotateStreams: false,
                                              rotateStreamTimeout: 10,
                                              showSnapWhenPaused: false,
                                              moduleWidth: 352,
                                              moduleHeight: 240,
                                              moduleOffset: -20,
                                              localPlayer: 'omxplayer',  //omxplayer oder ffmpeg
                                      stream1: {
                                              name: 'Door',
                                              url: 'rtsp://10.30.10.28', //update with your IP
                                              snapshotUrl: '',
                                              snapshotRefresh: 10, // Seconds
                                              frameRate: "30",
                                              port: 9999,
                                               }
                                              }
                                      },
                      
                      

                      i would suggest, you only change the IP adress, without port or the authbasic stuff…
                      I also have password set, but for some reason, i do not need to pass it to the module.
                      I played around a little bit, but as soon as i change the port or something… it does not work anymore.
                      Maybe worth a try.
                      Otherwise, bring the developer in here… he is very helpful and has for sure another tips you can try.

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        6/15
                        Last post
                      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