Is there a method to flip the video recorded by front camera using MediaRecorder? Now the preview is showing mirror view and the recorded output is the flipped version of preview. I want the mirrored preview to be recorded like the SnapChat Application. I have tried MediaRecorder.setOrientationHint but it is not mirroring the preview. I dont want to post process the video like this: how to flip the video taken using front camera android
Asked
Active
Viewed 1,642 times
1 Answers
1
As far as I remember, the frontal camera always records the image flipped and then adds a meta tag to the video indicating that the rotation is 180. That's the same that orientationHint does.
The problem in this approach is that many player doesn't care about this metadata and show the image flipped.
If recording and playing happens inside your application, a simpler solution is to use a TextureView to reproduce your video and apply a transformation matrix to rotate it.

Sergi and Replace
- 829
- 5
- 14
-
1`Flipping` and `Rotation` is not the same thing. – Pierre Oct 23 '19 at 05:23