-
Notifications
You must be signed in to change notification settings - Fork 334
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
Feature request: -mirror option #350
Comments
In theory it's possible. See m_transform in OMXVideo.cpp. |
Thanks for reply. Even I if I'll look in that file, I don't think I will be able to implement -mirror option (or -flip in mplayer). This is useful when you use a Fresnel lens in front of monitor screen to projet images to a wall (I mean cheap DIY projector). Thanks. |
Are you able to build omxplayer from source? I could suggest what to edit. |
Yes, I'm able. Thanks for help. |
Can be use to project throw a translucent screen too. |
Transform options supported are: You probably want As a test try changing this line: to be: |
Hi. Thanks a lot! |
Oops, I spoke too early. The Fresnell lens mirror and and turn upside down the image, so I still need --orientation that does not work. I had to give you this info. But the most is done. FFmpeg was compiled. I will see at the transform option. Thanks a lot for help. |
Does |
YES! Great! A big thank you! |
@popcornmix is this going to be implemented as an option? Perhaps -flipvertical and -fliphoritonzal. If not, this feature request should be closed. |
As I remember, you can set a config on RiP to flip the output both vertically and horizontally, I think... |
@ Ruffio Thanks. Last time I checked rotate_disply=value those options were not present, only 90,180,270. I see now there are 0x10000 and 0x20000. It's good to know, even I would still prefer an option in omxplayer because it's much comfortable than editing config.txt and reboot any time I need to flip screen. Thanks again. |
My main objection is adding another two command line options that almost no one uses just makes it harder for a user to find tthe genuinely useful options. I'm willing to add a secret option. There is already an option
Now run with |
Hi |
I've pushed that patch. I'm leaving it out of the normal help text as I think it's useful to very few users. It should be something that the few users who need it can find by searching. |
Well. Thanks. |
What a coincidence! I've been trying to work out where & how I might achieve a mirror display over the last couple of days. During the search, today I too discovered the "display_rotate=0x10000", so of course tried that briefly, but it took a minute or so to realise the cursor wasn't obeying the new right to left display, so I had to guess where the menus would have been on the left hand side! I then remembered I'm using jamesH' HW cursor, & sure enough disabling that restored cursor operation, so I'll post that to James' thread next. My use for mirroring is to mirror either the hdmi, or Gert's VGA666 add-on board, specifically currently for omxplayer, but it could be handy in other applications too. Popcornmix, I can understand your reticence at including such extras, but such can save a lot of time & effort trying to achieve by convoluted means, so IMHO a relatively small addtion as this appears to be, may turn out more useful than at first apparent... So, thank you for implementing it. I'll see if I can build omxplayer on my RPi2 now, as I've just checked sconde.net & it's not appeared yet. |
Ping @skgsergio. |
Pong! I'm currently away (returning indeed), tomorrow morning (european time) I'll upload it: |
@skgsergio no problem. |
It’s often fallacious to make assumptions about what uses one’s software will see. Especially for Raspberry Pi where funky projects are the norm. In other bugs you stated that looping videos is out of scope of omxplayer. Yet, many people want to loop videos, and omxplayer is the "default" video player. There are already many options of omxplayer that seem obscure, I wouldn’t regard mirrored playback as one. Many setups may require mirrored playback. If it involves projection or an actual glass mirror (think periscope or projection into the bore of an FMRI scanner) then pre-mirroring is often necessary. If the options list eventually becomes too long, consider |
Hello. Although I've obviously raised "issues" on Github, it's only ever been I've been using: userland/host_applications/linux/apps/hello_pi/hello_video_simple/video.c but displaying several window'd videos, noticed one seemed to be in the I think just a typo, shouldn't line 183, dest_rect.y_offset = atoi(argv[1]) actually be dest_rect.y_offset = atoi(argv[2]) ? john |
You are correct. Should be fixed now. |
I just found the "secret" option. Thanks for adding that! |
Hello. I would like a -mirror option which make omxplayer play the video "mirrored". Is it possible?
Thanks.
The text was updated successfully, but these errors were encountered: