[FFmpeg-trac] #8659(avdevice:new): av_display_rotation_set() has no effect in android_camera

FFmpeg trac at avcodec.org
Wed May 13 19:20:56 EEST 2020


#8659: av_display_rotation_set() has no effect in android_camera
------------------------------------+------------------------------------
             Reporter:  juha-h      |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avdevice
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by juha-h):

 I installed mobile-ffmpeg and used it to record video from android_camera
 like this:

 ffmpeg -video_size hd720 -f android_camera -i 0 -camera_index 1 -r 10 -t 5
 -y <path>

 Resulting video always has this side data no matter in which position I
 hold the device:

 Input #0, android_camera, from '0':
 Stream #0:0: Video: rawvideo (NV21 / 0x3132564E), nv21, 1280x720, 30 fps,
 30 tbr, 1000000000.00 tbn, 1000000000.00 tbc
 05-13 18:59:41.746 18715 18715 I Baresip :     Side data:
 05-13 18:59:41.746 18715 18715 I Baresip :       displaymatrix: rotation
 of -90.00 degrees

 I haven't yet figured out how I can set android_camera
 add_display_matrix() function ctx->sensor_orientation value from a CLI
 option.

 Suggestions on how to test this issue using ffmpeg CLI options would be
 appreciated.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8659#comment:16>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list