Android视频镜像效果

Android视频镜像效果

本文介绍了Android视频镜像效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个必须以镜像效果捕获视频的相机应用程序.我使用纹理视图来显示具有镜面效果的视频预览.现在,视频预览显示出镜面效果,但是在捕获并保存视频后,它没有镜面效果.

I'm working on a camera application that has to capture video in mirror effect. I used texture view to show video preview with mirror effect. Now video preview showing mirror effect but after video being captured and saved it don't have mirror effect.

我使用MediaRecorder保存视频文件.

I used MediaRecorder to save video file.

我用Google搜索此问题,但没有找到任何解决方案.

I Google this problem but didn't find any solution.

我要保存具有镜面效果的视频,如相机预览中所示.

I want to save video with mirror effect as shown in camera preview.

先谢谢了.

推荐答案

我已经通过翻转视频解决了这个问题.视频播放完后,我将暂时存储原始视频,然后应用翻转效果并在视频中获得镜像效果.

I have solved this problem by flipping the video.when the video is completed I'm storing the original video temporary and then applying the flip effect and got the mirror effect in video.

翻转视频库

这篇关于Android视频镜像效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 17:55