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-Mplayer video issues

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    4 Posts 3 Posters 34 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.
    • G Offline
      ge
      last edited by

      Just changed from MMM-RTSPStream to MMM-Mplayer because of issues. That solved the issue with the processor being continuously maxed out. However, video from my ip cam is still delayed and stutters losing a lot of frames. I can play it outside of MagicMirror on another computer using the cameras web interface or with VLC using the same url as MM and both show in real time. Tried a bunch of settings, no luck.

      Curious for those that have this working properly, real time, what kind of camera are you using. What is your connection type. . . rtsp, http, resolutions, etc …

      evroomE G 2 Replies Last reply Reply Quote 0
      • evroomE Offline
        evroom @ge
        last edited by

        @ge

        You may have seen this example config.
        I am using this for my Axis P1448-LE.
        It works okay, but is sometimes lagging, not stuttering.

        https://github.com/evroom/MMM-MPlayer?tab=readme-ov-file#config-example-for-a-single-window-single-rtsp-stream

        There is also a section on data gathering:

        https://github.com/evroom/MMM-MPlayer?tab=readme-ov-file#data-gathering

        You can supply me with this data and your config, then I can have a look at it.

        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 1
        • G Offline
          ge @ge
          last edited by sdetweil

          Here is what I have at the moment. If interested, I can show a side by side video from the camera, and what is showing on MM.

          Config:

          {
            module: 'MMM-MPlayer',
            disabled: false,
            position: "top_center",
            header: "Driveway",
            config: {
              layout: '',
              streamInterval: 30000,
              monitorAspect: '0',
              noAspect: false,
              noBorder: true,
              rotate: -1,
              windowPosition: '',
              windowSize: '',
              windowWidth: '',
              windowWidthNoNewAspect: false,
              windowHeightNoNewAspect: false,
              rtspStreamOverTcp: true,
              rtspStreamOverHttp: true,
              preferIpv4: true,
              ipv4onlyProxy: false,
              videoOutputDriver: 'xv,gl,gl_nosw,vdpau,',
              noSound: true,
              mplayerOption: '',  
              windows: [
                {
                  windowSize: { width: 990, height: 557 },
                  windowPosition: { x: 471, y: 20 },
                  streams: [
                     'rtsp://admin:Camadmin@172.16.0.37:554/cam/realmonitor?channel=1&subtype=0'
                    //'http://admin:Camadmin@172.16.0.37/cgi-bin/snapshot.cgi?1' 
                           ]
                }
              ]
            }
          },
          

          Data:

          pi@raspberrypi:~ $ grep version ~/MagicMirror/package.json
                  "version": "2.30.0",
          pi@raspberrypi:~ $ cat /proc/device-tree/model; echo
          Raspberry Pi 4 Model B Rev 1.5
          pi@raspberrypi:~ $ lsb_release -a
          No LSB modules are available.
          Distributor ID: Debian
          Description:    Debian GNU/Linux 12 (bookworm)
          Release:        12
          Codename:       bookworm
          pi@raspberrypi:~ $ uname -a
          Linux raspberrypi 6.12.47+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.47-1+rpt1~bookworm (2025-09-16) aarch64 GNU/Linux
          pi@raspberrypi:~ $ free -h -t
                         total        used        free      shared  buff/cache   available
          Mem:           3.7Gi       931Mi       1.9Gi       122Mi       1.1Gi       2.8Gi
          Swap:          199Mi          0B       199Mi
          Total:         3.9Gi       931Mi       2.1Gi
          
          pi@raspberrypi:~ $ ps -eaf | grep mplayer | grep -v grep
          pi          5635    5458 27 19:37 ?        00:01:03 mplayer rtsp://admin:Camadmin@172.16.0.37:554/cam/realmonitor?channel=1&subtype=0 -vf rotate=-1 -monitoraspect 0 -noborder -geometry 471:20 -x 990 -y 557 -rtsp-stream-over-tcp -prefer-ipv4 -vo xv,gl,gl_nosw,vdpau, -nosound
          pi@raspberrypi:~ $ pm2 flush
          [PM2] Flushing /home/pi/.pm2/pm2.log
          [PM2] Flushing:
          [PM2] /home/pi/.pm2/logs/MagicMirror-out.log
          [PM2] /home/pi/.pm2/logs/MagicMirror-error.log
          [PM2] Logs flushed
          pi@raspberrypi:~ $ pm2 restart MagicMirror
          Use --update-env to update environment variables
          [PM2] Applying action restartProcessId on app [MagicMirror](ids: [ 0 ])
          [PM2] [MagicMirror](0) ✓
          ┌────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
          │ id │ name           │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
          ├────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
          │ 0  │ MagicMirror    │ default     │ 2.30.0  │ fork    │ 5704     │ 0s     │ 13   │ online    │ 0%       │ 2.9mb    │ pi       │ enabled  │
          └────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
          pi@raspberrypi:~ $ sleep 20
          pi@raspberrypi:~ $ grep 'MMM-MPlayer' ~/.pm2/logs/MagicMirror-*.log
          
          /home/pi/.pm2/logs/MagicMirror-out.log:[2025-10-28 19:41:36.725] [LOG]   Module helper loaded: MMM-MPlayer
          /home/pi/.pm2/logs/MagicMirror-out.log:[2025-10-28 19:41:37.509] [LOG]   Connecting socket for: MMM-MPlayer
          /home/pi/.pm2/logs/MagicMirror-out.log:[2025-10-28 19:41:37.510] [LOG]   Starting MMM-MPlayer module ...
          /home/pi/.pm2/logs/MagicMirror-out.log:[2025-10-28 19:41:40.746] [INFO]  [MMM-MPlayer] (launchMPlayer) - Launch mplayer process for window-0 ...
          /home/pi/.pm2/logs/MagicMirror-out.log:[2025-10-28 19:41:40.762] [INFO]  [MMM-MPlayer] Launched mplayer process for window-0 with PID 5921
          /home/pi/.pm2/logs/MagicMirror-out.log:[2025-10-28 19:41:40.762] [INFO]  [MMM-MPlayer] DISPLAY=:0 mplayer rtsp://admin:Camadmin@172.16.0.37:554/cam/realmonitor?channel=1&subtype=0 -vf rotate=-1 -monitoraspect 0 -noborder -geometry 471:20 -x 990 -y 557 -rtsp-stream-over-tcp -prefer-ipv4 -vo xv,gl,gl_nosw,vdpau, -nosound
          /home/pi/.pm2/logs/MagicMirror-out.log:[2025-10-28 19:41:43.181] [INFO]  [MMM-MPlayer] [window-0] stdout: [lavf] stream 0: video (h264), -vid 0
          pi@raspberrypi:~ $
          
          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @ge
            last edited by

            @ge please always config and log info into code block wrappers

            I will fix the prior post

            Copy the text you wish to share
            Paste the text into the editor, blank line above and below
            Select the text you just pasted
            Hit the </> button on the editor tool bar

            Or triple backtick (us keyboard shifted left of 1 key)
            On line by itself above and below your pasted text

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • 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