-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zoom/scale issue with the omxplayer #16
Comments
I'll have to come up with a fix for this in the future, but in the meantime an alternative is to watch the console log for the parameters used: Starting stream stream1 with args: [
"--avdict",
"rtsp_transport:tcp",
"--win",
"731, 439, 1259, 799", # --- this is the position it tries to draw the video
... And then add the following inside the absPosition: { top: XX, right: XX, bottom: XX, left: XX }, |
Ok, first of all, sorry for closing/opening this issue, I accidently pressed the button. Anyway, I've actually tried this, but whatever values I use the video starts in fullscreen mode if I add absPosition to the config list. That said, I can't guarantee I haven't messed up the parameter order which might have confused the omxplayer making it fullscreen, so I will have to try a few more combinations. Also, does the absPosition affect the omx windows exclusively, or does it have influence on thw white square drawn on the display as well? |
Interesting. Can you share the config line you're trying to use? Make sure the numbers are not in quotes. The setting should affect the OMX window only -- I was suggesting to manually figure out the size of the box and send those parameters to OMX with the |
Ok, here is the latest config I'm trying to use:
Also, here is the output from the terminal when starting the mm: Also, I tried to use the parameters from the dev console to start the omxstream, but now the video is not shown on the screen at all. The pm2 process is running so maybe the video is being rendered outside of the screen? Also, my monitor resolution is 990*1440 (vertical orientation), if it helps in any way. I tried rounding the left/right parameters to integers, removing the width/height and other parameters that should be overridden by absPosition, but I just can't get the feed to display at all now, when using the absPosition. Also, is there a way to disable the white box altogether, since I can manipulate the size and the position of the stream with moduleoffset and size, and for my application where the stream is running 24/7 I don't need the box at all, so removing it/making it invisible would be a good option in my case. P.S. Sorry for my bad English and thank you for helping me with this issue so quickly. |
Here's what I've found:
|
.MMM-RTSPStream .innerWrapper {
border-style:none !important;
} |
Ok, I've benn able to hide the box by adding Anyway, since I can now hide the box and position the stream where I want it, I'm closing this issue. |
Hi,
I've noticed that if you set a certain zoom factor in MagicMirror config.js, the white square (of this module) where the video should be displayed shrinks (or expands), but the omxplayer video stays the samze size, making it impossible to overlay the video (omxplayer overlay) over the white square. Is there a way to multiply the size of the omx stream by this zoom factor before starting it so it will fit?
Thanks in advance.
The text was updated successfully, but these errors were encountered: