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

    Posts

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

      @bill22

      pm2 status will show the current status; will not restart mm & omx_stream1.
      You can try pm2 restart mm and see what happens.
      Repeat

      $ pstree -ap `pgrep omxplayer | head -1`; pstree -ap `pm2 status | grep omx_stream1 | awk '{print $10}'`
      

      a few times.
      I guess that you will see different PIDs and then status stopped (with pm2 status).
      But perhaps it will remain stable.

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

      @bill22

      In order to remove avm_stream from pm2; I think you have to do:

      pm2 stop avm_stream
      pm2 delete avm_stream
      pm2 save
      
      pm2 status
      

      If pm2 status does not show the pid column, my command does not make sense.
      First stretch out the ssh window so that it shows.

      This is not good:

      pi@MagicPi:~/MagicMirror/css $ pm2 status
      ┌──────┬────┬──────┬────────┬───┬─────┬──────────┐
      │ Name │ id │ mode │ status │ ↺ │ cpu │ memory   │
      ├──────┼────┼──────┼────────┼───┼─────┼──────────┤
      │ axis │ 1  │ fork │ online │ 0 │ 0%  │ 2.5 MB   │
      │ mm   │ 0  │ fork │ online │ 0 │ 0%  │ 2.5 MB   │
      └──────┴────┴──────┴────────┴───┴─────┴──────────┘
      

      This is better:

      pi@MagicPi:~/MagicMirror/css $ pm2 status
      ┌──────────┬────┬─────────┬──────┬───────┬────────┬─────────┬────────┬─────┬──────────┬──────┬──────────┐
      │ App name │ id │ version │ mode │ pid   │ status │ restart │ uptime │ cpu │ mem      │ user │ watching │
      ├──────────┼────┼─────────┼──────┼───────┼────────┼─────────┼────────┼─────┼──────────┼──────┼──────────┤
      │ axis     │ 1  │ 2.5.0   │ fork │ 14186 │ online │ 0       │ 20h    │ 0%  │ 2.5 MB   │ pi   │ disabled │
      │ mm       │ 0  │ 2.5.0   │ fork │ 14180 │ online │ 0       │ 20h    │ 0%  │ 2.5 MB   │ pi   │ disabled │
      └──────────┴────┴─────────┴──────┴───────┴────────┴─────────┴────────┴─────┴──────────┴──────┴──────────┘
      
      posted in Utilities
      evroomE
      evroom
    • RE: How do I now Rotate display ?

      This topic discusses an alternative way to rotate the screen:

      https://forum.magicmirror.builders/topic/9707/save-performance-when-rotating-screen-e-g-on-raspberry-pi?page=1

      It worked for me.

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

      The pstree command might not work when the width of your terminal is not enough.
      Make it wide enough to have pm2 status show the PID column.

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

      @bill22

      Hi,

      Overall it looks good I would say.
      The ERR are a concern, but I do not see a connection with RTSP.
      Give the /home/pi/.npm/_logs/2019-07-09T20_38_42_696Z-debug.log and /home/pi/.npm/_logs/2019-07-09T20_38_45_348Z-debug.loga clue ?
      Or when you restart mm, the newly generated log files ?

      With $ ps -eaf | grep omxplayer | grep -v grepand pm2 status, are the PIDs for omxplayer and omx_stream1 stable, or do they change ?

      Could you do ?

      $ pstree -ap `pgrep omxplayer | head -1`; pstree -ap `pm2 status | grep omx_stream1 | awk '{print $10}'`
      
      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @bill22

      MMM-RTSPStream modification for AVM DVB-C stream.

      $ vi ~/MagicMirror/config/config.js
      
              frameRate: "25",
              protocol: "tcp",
      
      
      	url: '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'
      
      
      $ cd /home/pi/MagicMirror/modules/MMM-RTSPStream
      
      $ cp -p node_helper.js node_helper.js.original 
      
      $ nano node_helper.js
      

      Use [control]- (control minus) and enter 101 to go to line 101

                 var args = ["--live", "--video_queue", "4", "--fps", "30",
      

      Change the line to:

                var args = ["--live", "--video_queue", "4", "--audio_queue", "4", "--fps", "25",
      

      Use [control]x and then Y to save the file.

      $ pm2 restart mm
      
      $ pm2 logs mm
      
      $ ps -eaf | grep omxplayer | grep -v grep
      
      $ pm2 status
      
      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @bill22

      Here a procedure on how to use omxplayer as an addition to MM (without MMM-RTSPStream).
      This is how I use it for my Axis IP cam.
      You might need to reposition a few modules to make place for the overlaid stream.

      pi@MagicPi:~ $ cd
      
      pi@MagicPi:~ $ vi avm_stream.sh
      #!/bin/bash
      echo "Starting AVM stream ..."
      
      /usr/bin/omxplayer --genlog --live --video_queue 4 --win '351 968 703 1210' '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@MagicPi:~ $ chmod +x avm_stream.sh
      
      pi@MagicPi:~ $ pm2 start avm_stream.sh
      
      i@MagicPi:~ $ pm2 save
      
      i@MagicPi:~ $ pm2 status
      

      Instead of vi you of course can use nano or so.

      When it runs you can remove the --genlog option.
      And I kind of lost track which exact command worked for you at the end.

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

      @bill22

      Try this

      url: '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',
      

      Perhaps even the ? needs to be escaped

      url: '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',
      
      posted in Utilities
      evroomE
      evroom
    • RE: Soccer Noob needs help!

      @Peter

      You can give MMM-soccer a try again.
      You should now see the standings.
      It has 1 major bug though, PSV is placed 1st and Ajax 2nd.
      This module is not so fancy as MMM-SoccerLiveScore, but I kind of liked the simplicity of it.

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

      @bill22
      Great!!

      Now you could try to enable the RTSPStream module again.
      Use

      url: ''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'',
      

      It can be that you need to play a little.

      single quote single quote < url > single quote single quote
      double quote single quote < url > single quote double quote
      single quote < url with & > single quote

      I hope you understand what I mean.

      Look at the pm2 log for clues.

      Over and out for today.

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

      @bill22
      With Buck Bunny you had audio, right?
      Audio over hdmi or audio jack?

      Try adding --audio_queue 4
      Then try removing --hw

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

      @bill22

      /usr/bin/omxplayer --genlog --hw --live --video_queue 4 --win '351 968 703 1210' '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'
      
      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @bill22
      Getting somewhere.
      Now you need to slowly add additional parameters.
      Like --live --video_queue 4

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

      @bill22

      Okay, I think it is stumbling over the ampersands in your RTSP URL.
      Try it with the RTSP part single quoted, like:

      $ /usr/bin/omxplayer --genlog --hw --win '351 968 703 1210' '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'
      

      Quotes work in general. Tested it on friend Buck Bunny.

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

      @bill22
      Looks like you are doomed to watch Buck Bunny for the rest of your Magic Mirror life :-)

      You did not get an error with — hw in your previous mail.
      It did return with the prompt, right ?
      You did not have to stop it using control C, I mean to say?
      Normally omxplayer exits with: have a nice day ; )

      Can you try

      /usr/bin/omxplayer --genlog --hw --win '351 968 703 1210' 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
      

      And check the log file.

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

      @bill22

      2 more commands.
      Just to be sure of a few things.

      The --hw option did change the log output and the D-bus errors are gone.

      $ /usr/bin/omxplayer --version
      

      I get:

      omxplayer - Commandline multimedia player for the Raspberry Pi
              Build date: Fri, 07 Jun 2019 19:49:22 +0000
              Version   : f06235c [master]
              Repository: https://github.com/popcornmix/omxplayer.git
      

      And:

      /usr/bin/omxplayer --info --hw --avdict rtsp_transport:tcp --live --video_queue 4 --fps 30 --win '6351 968 703 1210' rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov
      

      I get:

      Input #0, rtsp, from 'rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov':
        Metadata:
          title           : BigBuckBunny_115k.mov
        Duration: 00:09:56.48, start: 0.000000, bitrate: N/A
          Stream #0:0: Audio: aac (LC), 12000 Hz, stereo, fltp
          Stream #0:1: Video: h264 (Constrained Baseline), yuv420p(progressive), 240x160, 24 fps, 24 tbr, 90k tbn, 48 tbc
      have a nice day ;)
      
      posted in Utilities
      evroomE
      evroom
    • RE: Soccer Noob needs help!

      @sdetweil
      Okay, just that you commented on the scheduler part with “that only works for this one module…”.
      I thought you were familiar with this module.
      Sorry for the confusion :-)

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Soccer Noob needs help!

      @sdetweil
      We are talking about this module, right?
      https://github.com/ianperrin/MMM-ModuleScheduler
      See the Scheduling Module Display part.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Soccer Noob needs help!

      @sdetweil
      Do you mean ModuleScheduler.specific or the module to schedule specific, like MMM-SoccerLiveScore ?
      I understood that schedules in the ModuleScheduler are generic (unless in the exclude list) for all modules and the schedules in a module are for that specific module.

      posted in Troubleshooting
      evroomE
      evroom
    • RE: Soccer Noob needs help!

      @sdetweil

      Do you know how to hide or dim a module between certain times.
      For example, matches in Germany generally start on Saturday at 15:30 and the sports program ends at 20:00.
      So I want to hide or dim the module during this time.
      The problem with the scheduler is, that it shows at the from time and dims at the to time.
      Cannot find an example where it hides/dims at the from time and shows at the to time.

      posted in Troubleshooting
      evroomE
      evroom
    • 1 / 1