• 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] - Video Streaming from Live Feeds & Security Cameras

Scheduled Pinned Locked Moved Utilities
602 Posts 67 Posters 1.6m Views 68 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
    bill22
    last edited by Jul 13, 2019, 6:09 PM

    @evroom
    omx_stream1 remain online, but the uptime shows 0s only (mm is up for 36 min):

    │ App name    │ id │ version │ mode │ pid   │ status │ restart │ uptime │ cpu │ mem      │ user │ watching │
    ├─────────────┼────┼─────────┼──────┼───────┼────────┼─────────┼────────┼─────┼──────────┼──────┼──────────┤
    │ mm          │ 1  │ N/A     │ fork │ 2976  │ online │ 1       │ 36m    │ 0%  │ 2.3 MB   │ pi   │ disabled │
    │ omx_stream1 │ 0  │ N/A     │ fork │ 10391 │ online │ 1073    │ 0s     │ 0%  │ 2.2 MB   │ pi   │ disabled │
    
    ps -eaf | grep omxplayer | grep -v grep
    
    pi@raspberrypi:~ $ ps -eaf | grep omxplayer | grep -v grep
    pi        1770   820  0 18:17 ?        00:00:04 leafpad /home/pi/omxplayer.log
    pi       13794   781  1 20:05 ?        00:00:00 bash /usr/bin/omxplayer --avdict rtsp_transport:tcp --win 666, 361, 1018, 603 --live --video_queue 4 --audio_queue 4 --fps 25 rtsp://192.168.178.1:554/?avm=1&freq=394&bw=8&msys=dvbc&mtype=256qam&sr=6900&specinv=0&pids=0,16,17,18,20,266,593,594,595,598,1801,1802,1803
    pi       13823 13794  0 20:05 ?        00:00:00 /usr/bin/omxplayer.bin --avdict rtsp_transport:tcp --win 666, 361, 1018, 603 --live --video_queue 4 --audio_queue 4 --fps 25 rtsp://192.168.178.1:554/?avm=1&freq=394&bw=8&msys=dvbc&mtype=256qam&sr=6900&specinv=0&pids=0,16,17,18,20,266,593,594,595,598,1801,1802,1803
    pi@raspberrypi:~ $
    

    tried to use

    pstree -ap < pid >
    

    but the PID is constantly changing; therefore no output

    E 1 Reply Last reply Jul 13, 2019, 6:33 PM Reply Quote 0
    • E Offline
      evroom @bill22
      last edited by Jul 13, 2019, 6:33 PM

      @bill22
      To be honest, I am lost, out of ideas.
      I tried to get the module running myself again, but I cannot even get Bucks Bunny to eat his carrot.
      I would need to setup MM completely new for it to work I guess.
      At the moment you are left with the option of running it stand-alone using avm_stream, like I do

      How where you thinking of using the module should it work?
      Changing channels would still be a challenge, right?

      MagicMirror version: 2.30.0
      Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
      Raspbian GNU/Linux 12 (bookworm)

      Test environment:
      MagicMirror version: v2.30.0
      Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
      Raspbian GNU/Linux 12 (bookworm)

      1 Reply Last reply Reply Quote 0
      • B Offline
        bill22
        last edited by Jul 13, 2019, 6:41 PM

        @evroom

        seems to be quite tricky with that stream…

        But thank you for all your efforts so far and again great that we did it at least to run stand alone…!

        You are right, channel changing options seems to be a limitation using avm_stream. I wonder if there is a way of “operating” the avm_stream, at least to switch one particular channel/stream on and off without using the terminal…?

        E 2 Replies Last reply Jul 13, 2019, 6:43 PM Reply Quote 0
        • E Offline
          evroom @bill22
          last edited by Jul 13, 2019, 6:43 PM

          @bill22

          I will look if there is a module that can trigger linux commands at will.
          Would be interested in that myself.

          MagicMirror version: 2.30.0
          Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
          Raspbian GNU/Linux 12 (bookworm)

          Test environment:
          MagicMirror version: v2.30.0
          Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
          Raspbian GNU/Linux 12 (bookworm)

          1 Reply Last reply Reply Quote 0
          • B Offline
            bill22
            last edited by Jul 13, 2019, 6:45 PM

            @evroom

            if we could find one, it could be probably used to start/stop the stream. On the other hand it could be an option to define several “stand alone streams” and call those individually. Position of the streams could be even offset to each other…Just a thought…

            1 Reply Last reply Reply Quote 0
            • E Offline
              evroom @bill22
              last edited by Jul 13, 2019, 6:46 PM

              @bill22

              Btw, do you “fancy” stuff like Voice Control or Alexa ?
              I don’t, but those would be modules that could trigger something.

              MagicMirror version: 2.30.0
              Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
              Raspbian GNU/Linux 12 (bookworm)

              Test environment:
              MagicMirror version: v2.30.0
              Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
              Raspbian GNU/Linux 12 (bookworm)

              1 Reply Last reply Reply Quote 0
              • B Offline
                bill22
                last edited by Jul 13, 2019, 7:19 PM

                @evroom
                me neither

                E 1 Reply Last reply Jul 14, 2019, 2:52 PM Reply Quote 0
                • E Offline
                  evroom @bill22
                  last edited by Jul 14, 2019, 2:52 PM

                  @bill22

                  Hi,

                  I used this Sunday to setup a second Pi, whilst watching F1.
                  Used a new SD, installed Debian Buster and Magic Mirror v2.8.0.

                  After I made sure I did not have any errors after rebooting, restarting MM, etc, I setup MMM-RTSPStream.
                  It now works for Bucks Bunny, my IP cam and my SAT receiver.
                  I can even rotate 2 SAT channels.

                  I also tested the little fix with --audio_queue 4and that works to (although I cannot check audio, as I have no speaker).

                  It does not say that this method will work for you (my RTSP was dead as a dodo), but it could be something to consider.
                  I will play a bit with single quotes, double quotes, etc, as that is a potential problem in your URL.

                  And it still leaves the issue with selecting a channel at will, through a trigger.

                  MagicMirror version: 2.30.0
                  Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                  Raspbian GNU/Linux 12 (bookworm)

                  Test environment:
                  MagicMirror version: v2.30.0
                  Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                  Raspbian GNU/Linux 12 (bookworm)

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    bill22
                    last edited by bill22 Jul 21, 2019, 10:16 PM Jul 21, 2019, 10:16 PM

                    @evroom

                    Hi and sorry for the late response.

                    Sounds pretty good and promising!

                    How do you “rotate” your SAT channels? Does it change based on time (after x seconds)?
                    For me it could be good enough to have a few channels to change, of course better to select from a small list.

                    E 1 Reply Last reply Jul 22, 2019, 3:39 PM Reply Quote 0
                    • E Offline
                      evroom @bill22
                      last edited by Jul 22, 2019, 3:39 PM

                      @bill22
                      In the config part add

                      rotateStreams: true,
                      rotateStreamTimeout: 60,
                      

                      and add 2 or more streams (stream1 and stream2).

                      MagicMirror version: 2.30.0
                      Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                      Raspbian GNU/Linux 12 (bookworm)

                      Test environment:
                      MagicMirror version: v2.30.0
                      Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                      Raspbian GNU/Linux 12 (bookworm)

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 33
                      • 34
                      • 35
                      • 36
                      • 37
                      • 60
                      • 61
                      • 35 / 61
                      • First post
                        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