without setOrientationHint
I'm trying to record video using the mediaRecorder
on Camera
and Camera2
.
I need to combine multiple mp4 recordings from the front and the back camera. I'm doing this with the media4mobile
library.
The problem is that "joining" videos together strips out the orientation hint metadata. As the front and back cameras on almost all android devices are oriented in the opposite direction, the results in a video that is upside-down for all videos taken from one source.
Is there a way of recording video at a rotation, that rotates every frame, and doesn't just apply meta-data.
Does anyone know of a encoding library that handles rotation ? I've looked at FFmpeg but cannot use it because of licensing issues.