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.
    evroomE Offline
    • Profile
    • Following 0
    • Followers 2
    • Topics 18
    • Posts 499
    • Groups 1

    Posts

    Recent Best Controversial
    • 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
    • RE: Soccer Noob needs help!

      @thedoorsfanatic
      I am Dutch living in Germany and I like Bad English, well the band :-)
      Thanks for the example.

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

      @bill22

      Hi, last posts for today.

      I found 2 parameters to test.

      Can you do

      $ /usr/bin/omxplayer --info --avdict rtsp_transport:tcp --live --video_queue 4 --fps 30 --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 send the output ?

      And

      $ /usr/bin/omxplayer --genlog --hw --avdict rtsp_transport:tcp --live --video_queue 4 --fps 30 --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 send the omxplayer.log ?

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

      @bill22

      Can you confirm that this works ?

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

      I have to say that the error message using your stream looks rather ugly

      WARNING: Failed to acquire D-Bus name ‘org.mpris.MediaPlayer2.omxplayer’
      

      I do not know what is does.
      The help says:

      --dbus_name name.     Set D-Bus bus name (default: org.mpris.MediaPlayer2.omxplayer)
      
      posted in Utilities
      evroomE
      evroom
    • RE: Soccer Noob needs help!

      Hi,

      Just to say that MMM-SoccerLiveScore is running on my MM for 28 hours now.

      @thedoorsfanatic
      Still waiting for an example on hiding / dimming a module for a specific time on a specific day using MMM-SoccerLiveScore.
      When you have time.

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

      @bill22

      I think I have the same issue as you:
      0_1562531719799_RTSP_play_button.png
      It would be the best option, if it would work. :-)

      As a workaround for my IP cam issue, I use omxplayer as a separate process.
      It is an overlay on top of your screen anyway.

      For you, it is first priority to get your stream using omxplayer working, outside of MM
      So disable the module and restart MM.

      module: "MMM-RTSPStream",
          disabled: true,
          :
          :
      

      Then we take it from there.

      Can you confirm that your stream is MPEG-4 (vlc player media information) ?

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

      @bill22

      Just a disclaimer.
      I do not use this module any more for my stream (a webcam using h.265).
      See first post on this page:
      https://forum.magicmirror.builders/topic/2743/mmm-rtspstream-video-streaming-from-live-feeds-security-cameras/262?page=27

      I could try to set it up again for a sat stream.

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

      @bill22

      You try to add --genlog after the omxplayer command, like
      omxplayer --genlog --avdict rtsp_transport:tcp ............
      Then check the omxplayer.log, normally located under the directory where you started the command.
      Or find it using sudo find . -name omxplayer.log.

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

      @bill22
      You have to remove the second $ in the command.
      This $ in my examples is just to say to run it from the the command line.

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

      @bill22

      The last output actually looks good.
      Processes are there.
      Do they remain present after a few minutes, with same PID’s ?

      Can you try this again using quotes around the --win parameter ?

      $ /usr/bin/omxplayer --avdict rtsp_transport:tcp --live --video_queue 4 --fps 30 --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
      

      It can be that a mpeg2 license is necessary.
      I know that for satellite TS streams it is.
      http://www.raspberrypi.com/mpeg-2-license-key/

      When you stream it via VLC Player, you can see under Media Information - Codec Details what codec is being used.

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

      @bill22

      Hi,

      I would remove stream1 from the config (and rename stream2 to stream1) since you know “test1” passed.

      What does this say ?

      $ vcgencmd codec_enabled MPG2
      

      And when MM is started, do you see omxplayer processes ?

      $ ps -eaf | grep -v grep | grep omxplayer
      $ pm2 status
      

      And standalone (best without any omxplayer process(es) active) ?

      $ /usr/bin/omxplayer --avdict rtsp_transport:tcp --live --video_queue 4 --fps 30 --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: Soccer Noob needs help!

      @Peter

      I do not have it running long enough to see this behaviour.
      But, if you see this with
      $ pm2 logs mm

      0|mm       | (node:22849) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
      

      Do this (line 37):

      $ vi /home/pi/MagicMirror/modules/MMM-SoccerLiveScore/node_helper.js
      
                //var image = new Buffer(body).toString('base64');
                  var image = Buffer.from(body).toString('base64');
      
      $ pm2 restart mm
      

      Then observe and pay attention to the pm2 logs.

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

      @thedoorsfanatic

      Nope, does not work.
      An example would be nice.

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

      @thedoorsfanatic

      I think I got it.
      Perhaps there is a better way, because I do not understand show, hidden and dim very good.
      I thought it would be easy to say “show from to”, “hide from to” or “dim from to”, but like this it seems to work:

      {
        module: 'MMM-SoccerLiveScore',
        position: 'top_right',
        //header: 'Live-Scores',
        classes: 'scheduler',
        config: {
          module_schedule: [
            {from: '45 22 * * *', to: '30 19 * * 6', dimLevel: '10'}, // dim Saturday from 19:30 to 22:45
            {from: '00 20 * * *', to: '30 13 * * 7', dimLevel: '10'}, // dim Sunday from 13:30 to 20:00
      //        {from: '00 20 * * *', to: '30 15 * * 6', dimLevel: '10'}, // dim Saturday from 15:30 to 20:00
          ],
          leagues: [37,],
      
      posted in Troubleshooting
      evroomE
      evroom
    • RE: Soccer Noob needs help!

      @thedoorsfanatic

      Interesting.
      I do not use MMM-ModuleScheduler.
      Could you give an example on how to configure it for MMM-SoccerLiveScore ?
      Do you schedule it to NOT see it during a specific period, like Saturday from 15:30 to 20:00 ?

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

      @thedoorsfanatic
      No, I haven’t.
      It looks a lot like MMM-soccer (code-wise, because there are no screenshots available), with the difference that it still uses v1, which probably will not work.
      And I do not see the possibility for team-logos.

      Do you use it ?
      Does it work ?

      posted in Troubleshooting
      evroomE
      evroom
    • 1 / 1