[FFmpeg-user] rotation of video from android_camera
Juha Heinanen
jh at tutpro.com
Mon Apr 27 19:46:46 EEST 2020
Juha Heinanen via ffmpeg-user writes:
> If android_camera device would rotate the video clockwise by that
> amount (270), orientation of the video would be correct. There is this
> in android_camera.c:
>
> av_display_rotation_set(display_matrix, ctx->sensor_orientation);
>
> if (ctx->lens_facing == ACAMERA_LENS_FACING_FRONT) {
> av_display_matrix_flip(display_matrix, 1, 0);
> }
I tried with back camera (where the above flip call is not executed) and
now android_camera sent the video with 270 degree clockwise orientation.
This is with ffmpeg version 4.2.2.
-- Juha
More information about the ffmpeg-user
mailing list