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

Ghost Overlay / OMXPlayerTransparency

Scheduled Pinned Locked Moved Troubleshooting
mmm-pirvideoplayer
40 Posts 9 Posters 24.5k Views 8 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.
  • R Offline
    Reotch2 @Mykle1
    last edited by Oct 1, 2017, 7:12 PM

    @Mykle1 @Nystro0m

    My opinion: We’re asking the Pi to do things that it’s just not capable of, or at least pushing it to its limits.

    Honestly… this is good news. Gives me permission to stop troubleshooting :). I’m still doing a clean install of STRETCH (having minor issues on another thread), and I’ll fall back on my OMXPlayer workaround.

    Thanks EVERYONE for helping me try every possible workaround. When the time comes for me to scale-up to a bathroom mirror, I’ll definitely plan on a little more processing power.

    Also, I’ll post my final workaround/setup when I’m back up and running.

    M 1 Reply Last reply Oct 2, 2017, 1:33 AM Reply Quote 1
    • M Offline
      Mykle1 Project Sponsor Module Developer @Reotch2
      last edited by Oct 2, 2017, 1:33 AM

      @Reotch2 said in Ghost Overlay / OMXPlayerTransparency:

      Also, I’ll post my final workaround/setup when I’m back up and running.

      Yeah dude, keep us posted!

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 1
      • J Offline
        jasondreher @pyrosmiley
        last edited by Oct 3, 2017, 3:49 PM

        @pyrosmiley
        What module did you use to play the .webm file? I have converted a file but dont know how to play it on the MM.

        P 1 Reply Last reply Oct 4, 2017, 5:17 AM Reply Quote 0
        • P Offline
          pyrosmiley @jasondreher
          last edited by Oct 4, 2017, 5:17 AM

          @jasondreher
          I use the MMM-htmlvideo module for it. Webm seems to work best for me as a format to reduce choppiness but even then it’s certainly not perfect. This module is great though!

          1 Reply Last reply Reply Quote 0
          • B Offline
            bhepler Module Developer
            last edited by Oct 23, 2017, 3:13 AM

            I played around with this a bit. In the end, running omxplayer with a resized and rotated video was the way to go. Oh, and I re-edited a few videos together in order to provide a more seamless experience. I’ll see about capturing some video tomorrow and uploading it.

            I used pm2 to manage a quick script to keep the video going in case of failure. Overall, I’m quite pleased. Now to do the same to my office mirror…

            R 1 Reply Last reply Oct 23, 2017, 3:39 AM Reply Quote 1
            • R Offline
              Reotch2 @bhepler
              last edited by Oct 23, 2017, 3:39 AM

              @bhepler Are you running a borderless OMX window centered on your mirror? If so, what parameters you starting it with?

              After all of my troubleshooting, it seems like OMX is the best solution. I’ve just been putting up with the loss of module brightness. Overall though, good enough to get me through Halloween.

              B 1 Reply Last reply Oct 23, 2017, 12:35 PM Reply Quote 0
              • B Offline
                bhepler Module Developer @Reotch2
                last edited by Oct 23, 2017, 12:35 PM

                @Reotch2 I started by editing together the videos into a single 5 minute video, using the vertical sources. These show up on my normal computer monitor as rotated 90 degrees. Once i had the video edited (with several of the buffer video interspersed to add some tension), I output the video as a full resolution 1920x1080 MP4. I copied that video over to the pi and then used ffdshow to rotate the video 90 degrees. This part took close to 30 minutes and it made the pi sweat resistors.

                Once the file was rotated, I created a one-line script file called boo.sh that contains omxplayer -p -o hdmi --loop --alpha 85 boo.mp4. Start it up with pm2 (pm2 start boo.sh) and then save it.

                Originally I was going to convert the file to webm, but the ffdshow that installed on the pi doesn’t have that switch enabled. I didn’t feel like recompiling ffdshow, so I just went with a H264 encoded MP4.

                R 1 Reply Last reply Oct 23, 2017, 1:29 PM Reply Quote 0
                • R Offline
                  Reotch2 @bhepler
                  last edited by Oct 23, 2017, 1:29 PM

                  @bhepler Wow. Well done. That’s exactly where I ended up except my pm2 file name is called “omx.sh”. I ran into issues with the looped video interrupting my Monitors sleep mode (PIR Sensor), so I ended up disabling it and setting a crontab for both sleep and pm2 stop/start omx.sh. My original post was only because the —alpha was dimming other modules. Are you seeing the same?

                  Good work.

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    bhepler Module Developer
                    last edited by bhepler Oct 24, 2017, 11:29 AM Oct 24, 2017, 11:28 AM

                    Video of the ghost in the mirror can be found here: https://youtu.be/6hb1N1tYcPc

                    As an aside, this morning I changed the command to omxplayer -p -o local --loop --alpha 85 boo.mp4 to cut the sound from the video file. It woke me up when the mirror switched on this morning at 5 AM.

                    G 1 Reply Last reply Jun 14, 2018, 10:10 AM Reply Quote 1
                    • G Offline
                      Gubert @bhepler
                      last edited by Jun 14, 2018, 10:10 AM

                      @bhepler said in Ghost Overlay / OMXPlayerTransparency:

                      Video of the ghost in the mirror can be found here: https://youtu.be/6hb1N1tYcPc

                      As an aside, this morning I changed the command to omxplayer -p -o local --loop --alpha 85 boo.mp4 to cut the sound from the video file. It woke me up when the mirror switched on this morning at 5 AM.

                      Realy nice solution! Looks awesome!
                      Could you sum up all the things needed for that?
                      Reading through this 4 Pages is very difficulty.
                      Would be very thankful.

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