Video encoded using camera2 is upside down on nexus (5x, 6p) devices
Asked Answered
G

0

7

We are using camera2 API to get preview and encode video simultaneously, using mediacodec. We know when we should rotate the camera by querying 'CameraCharacteristics.SENSOR_ORIENTATION' but there is only preview rotation option.

What we need is to rotate the surface which goes to the encoder so we will not get video upside down. (Or rotate the camera itself like the old camera API.)

Thanks

Greaten answered 26/6, 2016 at 10:43 Comment(3)
any progress on this?Ingeborg
possibly answered here: https://mcmap.net/q/1629743/-android-rotate-surface-created-using-mediacodecSuperficial
hi eduard did you solve the issue..Judges

© 2022 - 2024 — McMap. All rights reserved.