• 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.

Unsuccessful video streaming - help please :)

Scheduled Pinned Locked Moved Utilities
14 Posts 4 Posters 4.2k 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.
  • E Offline
    evroom
    last edited by Jan 2, 2019, 7:01 PM

    A few hours ago I was busy with this module too, as it stopped to work after I loaded the latest changes.
    I deleted and re-installed the module again; am on the origin/master branch.
    For me, the stream only started after this command:

    pm2 start omx_stream1
    

    Perhaps worth a try.

    With

    pm2 list
    

    you can see if omx_stream1 is online.

    Then I saved the pm2 config to make it boot resistant

    pm2 update
    pm2 save
    

    Btw, I do not see the

    Starting stream stream1 with args
    

    in the pm2 logs anymore.

    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
    • M Offline
      mwoodage
      last edited by Jan 2, 2019, 7:22 PM

      Thanks shbatm - i’ve tried the stream several times on my laptop and it shows up without any problems. I’ve now installed VLC player on the Raspberry Pi and i can’t get the feed to work. I’m using exactly the same on both - any ideas?

      rtsp://admin:*******@192.168.1.77/h264Preview_01_main

      S 1 Reply Last reply Jan 3, 2019, 12:06 AM Reply Quote 0
      • M Offline
        mwoodage
        last edited by Jan 2, 2019, 8:35 PM

        hi evroom, thanks for the help,
        I tried what you said (after installing PM2!) but i just get the following:-

        pi@raspberrypi:~ $ pm2 start omx_stream1
        [PM2][ERROR] script not found : /home/pi/omx_stream1
        script not found : /home/pi/omx_stream1
        ┌──────┬────┬──────┬────────┬───┬─────┬────────┐
        │ Name │ id │ mode │ status │ ↺ │ cpu │ memory │
        └──────┴────┴──────┴────────┴───┴─────┴────────┘
        Use pm2 show <id|name> to get more details about an app
        pi@raspberrypi:~ $

        Is that right?? I’m assuming not, as its saying script not found. I’ve un-installed omx player and re-installed it but get the same results.

        Sorry, i’m completely new to this so please be patient with me :)

        B 1 Reply Last reply Jan 3, 2019, 1:48 AM Reply Quote 0
        • E Offline
          evroom
          last edited by Jan 2, 2019, 8:55 PM

          Did you setup auto start according to this procedure?

          https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror

          Perhaps it worked for me because the omx_stream was already known by pm2 in my case.
          Perhaps it needs to run once for pm2 to be useful.
          No idea.

          pm2 list
          

          Only shows mm, or MagicMirror?

          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
          • S Offline
            shbatm Module Developer @mwoodage
            last edited by Jan 3, 2019, 12:06 AM

            @mwoodage The stream didn’t work in VLC player either (e.g. VLC by itself, nothing to do with MagicMirror)? Have you tried on your regular computer? Not playing in VLC may be signs of a bigger problem–unfortunately I can’t troubleshoot every camera out there… if you can get it working in VLC on the Pi, I can help try and get it working in the module.

            Also FYI to you and @evroom, I am working on an update to the module to use VLC to play the videos instead of OMXPlayer – see details here: https://forum.magicmirror.builders/topic/2743/mmm-rtspstream-video-streaming-from-live-feeds-security-cameras/163

            1 Reply Last reply Reply Quote 0
            • B Offline
              bhepler Module Developer @mwoodage
              last edited by Jan 3, 2019, 1:48 AM

              @mwoodage - Not to worry, we’ll get you sorted out.

              For starters, you are missing the script omx_stream1. pm2 has nothing to run so it can’t monitor the process. Or at least, that script isn’t located in /home/pi/

              1 Reply Last reply Reply Quote 0
              • M Offline
                mwoodage
                last edited by Jan 4, 2019, 10:31 AM

                Hi everyone, thanks for your help so far.
                Yesterday i wiped my RP clean and started a fresh install - however I still can’t get the camera stream to show up in the VLC player.
                Is it because the camera is 5MP and therefore there’s too much data for the VLC player to process?
                The same stream works on my laptop?

                Thanks
                Martin

                1 Reply Last reply Reply Quote 0
                • S Offline
                  shbatm Module Developer
                  last edited by Jan 4, 2019, 3:50 PM

                  @mwoodage said in Unsuccessful video streaming - help please :):

                  Is it because the camera is 5MP and therefore there’s too much data for the VLC player to process?

                  That may be the case. Most cameras offer a second, lower-resolution stream that you could use for something like the mirror.

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