Read the statement by Michael Teeuw here.
MMM-MPlayer
-
@evroom said in MMM-MPlayer:
Here two questions:
1/ What does
streamInterval
do ?2/ Is it possible to rotate the output ?
I am using my screen in portrait mode and therefore need my RTSP stream to be rotated by 90 degrees.To answer my own questions:
1/ Cycles the streams defined in window1 and/or window2 after the provided interval (in milliseconds).
Where applicable, the streams will start from the beginning again (for example for mp4 videos).2/ Yes, this is possible using the
-vf rotate=[0-3]
option and adjusting thewindowPosition
values. -
@myfingersarecold said in MMM-MPlayer:
I don’t feel like actually uploading it to github, but here is the source code, and an example config.
I took the liberty to take the provided code, make changes to it and make it available as a public repository:
https://github.com/evroom/MMM-MPlayer
My own main purpose for using it, is to setup a new Raspberry Pi (Raspberry Pi 4 Model B), with Debian 12 (bookworm) and the latest MM version (2.30.0).
Replacing a Pi 3b 32-bit Debian 10 buster setup where OMXPlayer is still working.
I will be using a single window with a single RTSP stream (for an Axis Network Camera).
Nothing fancy.Best regards,
E.J.
-
@evroom Nice! 🚀 Please add it to the module list 🙂
-
-
@evroom you are 100% correct regarding item #1, the streamInterval is for when multiple streams are defined, it will switch between the available streams.
regarding #2 on my pi i didnt have to rotate the mplayer orientation, but i adjusted the output of my pi to portrait and everything behaved but ymmv depending on how it’s setup.
-
@evroom thanks for that. glad its of use to someone 😊
-
@myfingersarecold said in MMM-MPlayer:
I couldnt get the EXT-FreeboxTV module to work on my magic mirror
Out of curiosity what was the issue with it?
I use that module all the time to watch the TV channels of my Enigma2 decoder.
-
@myfingersarecold said in MMM-MPlayer:
regarding #2 on my pi i didnt have to rotate the mplayer orientation, but i adjusted the output of my pi to portrait and everything behaved but ymmv depending on how it’s setup.
Could you please tell me how you do the general rotation to portrait ?
I use the custom.css to get it rotated clockwise.
As MPlayer is an overlay, like OMXPlayer, it is not affected by this.body { : : transform: rotate(-90deg); transform-origin: top left; width: 100vh; height: 100vw; : : }
But of course there are more, potential better, ways of getting it rotated.