I am writing an android application that can shoot video short videos. Put some text on top and save. The project uses Camera2 and uses the usual MediaCodec and MediaMuxer to record video to a file. I need to make the front selfie mirroring functionality now. Those. this feature can be turned on and off. By flipping the TextureView horizontally, I achieved a mirror preview, but the recorded video will not become a mirror from this. How can I flip the video horizontally using MediaCodec, MediaMuxer?
Asked
Active
Viewed 164 times
0
-
Have a look at this answer. https://stackoverflow.com/a/47249032/192373 – Wasim Ansari Sep 10 '22 at 17:30