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

    Posts

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

      @imdickie said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      but the video frame stays in the portriat oreintation

      In

      /home/pi/MagicMirror/css/custom.css
      

      add

      .MMM-RTSPStream .innerWrapper {
        border-style: none;
      }
      

      to remove the frame altogether.
      Or find a way using css to rotate the frame.

      I tried the positions top_left, top_right, bottom_left and bottom_right.
      All work.
      It can be that your other modules are pushing it down.
      Try to have the module positioned a bit earlier in your config.

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

      @Egnos said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      Can you explain this behavior?

      No, I cannot explain this, but I noticed it too.
      No video over the VNC connection.

      When I google, I see this recommendation:

      Open VNC Server>Options>Troubleshooting. Then make sure "enable experimental direct capture mode is checked.

      You might give it a try.

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

      @Egnos said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      Are there any errors in config.js?

      This is my config that works.
      I think the only real difference is the omxRestart entry.

      {
        module: "MMM-RTSPStream",
        disabled: false,
        position: "bottom_right",
        header: "MMM-RTSPStream Test",
        config: {
          autoStart: true,
          omxRestart: 1,
          rotateStreams: false,
          moduleWidth: "352px", // Width in px of the module.
          moduleHeight: "240px", // Height in px of the module.
          localPlayer: 'omxplayer',
          remotePlayer: 'none',
          showSnapWhenPaused: false,
          remoteSnaps: false,
          stream1: {
            name: 'BigBuckBunny',
            url: 'rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov',
            frameRate: "25",
            protocol: "tcp",
            width: "352px", // The width in px of the stream.
            height: "240px", // The height in px of the stream.
          }
        }
      },
      
      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @Egnos said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      I don’t understand what’s missing…

      It does look good.

      In principle, the line from the pm2 log

      [19:45:46.329] [LOG]    Starting stream stream1 using: omxplayer --avdict rtsp_transport:tcp --win 786,238,1138,480 --live --video_queue 4 --fps 30 --no-osd rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov
      

      should work as standalone.
      If it does not play standalone, so from the command line, then it will not work in MMM-RTSPStream.

      I would disable the module and make sure nothing is running anymore (no omxplayer stuff).

      module: "MMM-RTSPStream",
      disabled: true,
      
      pm2 restart mm
      pm2 status
      

      Make sure ‘omx_stream1’ is not present.
      Stop it when necessary

      pm2 stop omx_stream1
      pm2 delete omx_stream1
      
      ps -eaf | grep -v grep | grep omxplayer
      

      Kill any omxplayer process (kill -9 ).

      Then run omxplayer from command line:

      omxplayer --avdict rtsp_transport:tcp --win 786,238,1138,480 --live --video_queue 4 --fps 30 --no-osd rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov
      
      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @Egnos said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      the link works in VLC but still doesn’t work in MM

      Hi,

      What does this say ?

      pm2 logs --lines 100
      

      The part where you should see

      0|MagicMirror  | Starting stream stream1 with args: [
      

      And

      pm2 status
      

      should show

      omx_stream1
      

      And can you try it from the command line ?

      omxplayer --genlog --avdict rtsp_transport:tcp --live --video_queue 4 --fps 30 --win "0 0 354 240" rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov
      
      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      Try this link:

      rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov

      posted in Utilities
      evroomE
      evroom
    • RE: Default calendar - parsing of VEVENT

      @sdetweil said in Default calendar - parsing of VEVENT:

      uses the preloaded modules/default/calendar/vendor/ical.js

      Ah, that was the missing link !
      Now I understand where it comes from (I mean the ‘data’ stuff that calendarfetcher.js uses).

      Will try with latest ical.js.

      Thanks.

      posted in Troubleshooting
      evroomE
      evroom
    • Default calendar - parsing of VEVENT

      HI,

      Can someone tell me how this Google event is parsed to the ‘data’ structure in calendarfetcher.js ?

      basic.ics part. (correct):

      BEGIN:VEVENT
      DTSTART;VALUE=DATE:20200330
      DTEND;VALUE=DATE:20200331
      DTSTAMP:20200329T132348Z
      UID:xxxl8quduqtvqbfe00fsk8xxx@google.com
      CREATED:20200329T132240Z
      DESCRIPTION:
      LAST-MODIFIED:20200329T132240Z
      LOCATION:
      SEQUENCE:0
      STATUS:CONFIRMED
      SUMMARY:TEST_ENTRY_FULLDAY
      TRANSP:TRANSPARENT
      END:VEVENT
      

      calendarfetcher.js part (incorrect):

      0|mm  | { type: 'VEVENT',
      0|mm  |   params: [],
      0|mm  |   start: { 2020-03-29T22:00:00.000Z tz: undefined, dateOnly: true },
      0|mm  |   end: { 2020-03-30T22:00:00.000Z tz: undefined, dateOnly: true },
      0|mm  |   dtstamp: { 2020-03-29T13:23:15.000Z tz: undefined },
      0|mm  |   uid: 'xxxul8quduqtvqbfe00fsk8xxx@google.com',
      0|mm  |   created: { 2020-03-29T13:22:40.000Z tz: undefined },
      0|mm  |   description: '',
      0|mm  |   lastmodified: { 2020-03-29T13:22:40.000Z tz: undefined },
      0|mm  |   location: '',
      0|mm  |   sequence: '0',
      0|mm  |   status: 'CONFIRMED',
      0|mm  |   summary: 'TEST_ENTRY_FULLDAY',
      0|mm  |   transparency: 'TRANSPARENT' }
      

      The background of this question, is that a full day event for tomorrow, is shown on the MM as Today.
      Based on the start and end date from the calendar module, this may seem right, but does not match my correct Google calendar DTSTART and DTEND dates.

      This annoys me already for some time (also happens for reoccurring full day events) and I wanted to see where it might go wrong.
      Unfortunately I am not skilled enough to see where the actual parsing part takes place.
      It seems to me ‘locale’ or timezone issue and converting to unixtime.

      And it also annoys me that it shows as Today or in XX Days, when I would like to see it as Mon Mar 30th, like my normal events.

      Greetings,

      E.J.

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

      @Hram2008 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      Has anyone been able to get this working with Axis camera products?

      Yes, I have.

      Please show your MMM-RTSPStream part from config.js.

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

      @Egnos said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      Can you help me?

      What platform are you on.
      Raspberry Pi with Debian?

      lsb_release -a
      
      sudo apt-get install omxplayer
      
      posted in Utilities
      evroomE
      evroom
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      @Egnos said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      does this mean i have to uninstall the module RTSPStream’s and install only the component OMXplayer?

      If you are able to install OMXPlayer, then you can give MMM-RTSPStream a try.
      In principle it does work, depending on what you want to stream.
      If it works for you, perfect, if it doesn’t, then try if omxplayer works standalone,
      Actually testing omxplayer standalone is always a good thing before trying out MMM-RTSPStream.

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

      @Egnos said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      E: Impossibile trovare il pacchetto omxplayer

      To me it looks like it cannot install omxplayer.
      You can try to install it manually.
      The script does it using this command:

      sudo apt install -y omxplayer
      

      Perhaps another command is needed, or indeed the package to install omxplayer does not exist for your platform.

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

      @Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      now its working!

      Great to hear!

      When you add

      omxRestart: 1,
      

      in the

      config: {
      

      part, then when restarting MagicMirror, the omx_stream1 will be stopped and restarted too.
      If you really want to stop MagicMirror and omx_stream1, then you will need to stop both:

      pm2 stop MagicMirror
      pm2 stop omx_stream1
      

      Provided that you named you stream1 stream1.

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

      @Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      subtype=1 with h264

      Can you try the subtype=1 option and remove the --info part from the command?

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

      @Number_5

      @Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      Video: hevc

      It looks like this is the problem.
      The omxplayer cannot handle this, as it seems.

      Do you have access to this Dahua Config Tool GUI stuff:
      (I hope the picture shows)

      Cannot upload a picture to the forum :disappointed_face: :face_with_steam_from_nose:

      http://www.dh-vision.com/index.php/dahuaencoding

      How many Channels do you have ?
      Is there a channel with Compression H.264 (something not H.265) ?
      Is there a Sub Stream that is enabled with Compression H.264 (something not H.265) ?
      What Compresion options are there ?

      We are looking for a "channel=X&subtype=Y"combination that might work.

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

      @Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      with subtype=0 the second attempt

      And with subtype=1 and subtype=2 ?
      And with channel=1&subtype=1 ?

      You can leave out the omxplayer.log for the moment.

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

      @Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      401 Unauthorized

      401 Unauthorized
      means user password combination is not correct.

      admin:roland

      Note the : and of course your correct password.

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

      @Number_5

      One more thing.
      Can you also try with subtype=1 and subtype=2 ?

      Looks to be a decoding issue and subtype=0 might be too new for omxplayer.
      Someone claims this is working:

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

      @Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

      401 Unauthorized

      Did you supply your user and password iso xxx.xxx ?

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

      @Number_5

      Copy/paste error on my side

      omxplayer --info --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://xxx.xxx@192.168.2.108:554/cam/realmonitor?channel=2&subtype=0'
      

      Hope this works better.

      posted in Utilities
      evroomE
      evroom
    • 1 / 1