how to flip the video taken using front camera android [duplicate]

我是研究僧i 提交于 2019-12-12 00:05:28

问题


I have a video that mirror flips when I take it using the front camera.

The surface view that is used to capture the video shows the mirror effect when recording but then it is flipped while playing the same.

Kindly Help me.


回答1:


This is an expected behavior. You cannot run the video recorder mirrored. You can flip the frames yourself (receiving the frames in onPreviewFrame callback) and use MediaCodec and her kin to produce a video file on your own. Or you can post-process your video, e.g. with ffmpeg.



来源:https://stackoverflow.com/questions/37299449/how-to-flip-the-video-taken-using-front-camera-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!