Flipping the streamed image from the Front camera #1561
replicant1
started this conversation in
General
Replies: 1 comment 1 reply
-
Hello, If you are using OpenGlView or StreamBase you can flip horizontally and vertically in preview or in stream result as you want. rtmpCamera1.glInterface.setIsPreviewVerticalFlip(true)
rtmpCamera1.glInterface.setIsStreamVerticalFlip(true)
rtmpCamera1.glInterface.setIsPreviewHorizontalFlip(true)
rtmpCamera1.glInterface.setIsStreamHorizontalFlip(true) You can do it on fly so you can change the value after switch camera if you only want do it for front camera |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Pedro,
When I stream from the front camera I note that the video image in the preview and the video image as streamed are consistent with each other (which is desirable) but both images happen to be horizontally flipped from what I would prefer. For my use case, I would like to find some way to horizontally flip the streamed image when using the front camera. I don't mind whether the preview image is horizontally flipped or not.
I've looked through the RootEncoder API and I can't see any support for doing this - but maybe I'm missing something? I also wonder about the relevance of the "filters" concept you have - could I impose a filter to do the horizontal flip - would that change the streamed image or only the preview image?
Thanks again for your advice,
Rod.
Beta Was this translation helpful? Give feedback.
All reactions