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

FFmpeg trac at avcodec.org
Wed May 13 23:00:54 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):

 Tried also using front front camera:

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

 No matter if I hold the device portrait or landscape, the result is the
 same:

 05-13 22:49:32.181 27037 27037 I Baresip : [android_camera @ 0x7823e1cc00]
 Android camera capture session is active.
 05-13 22:49:32.181 27037 27037 I Baresip : Input #0, android_camera, from
 'anything':
 05-13 22:49:32.181 27037 27037 I Baresip :   Duration: N/A, start:
 645873.465432, bitrate: N/A
 05-13 22:49:32.181 27037 27037 I Baresip :     Stream #0:0: Video:
 rawvideo (NV21 / 0x3132564E), nv21, 1280x720, 30 fps, 30 tbr,
 1000000000.00 tbn, 1000000000.00 tbc
 05-13 22:49:32.181 27037 27037 I Baresip :     Side data:
 05-13 22:49:32.181 27037 27037 I Baresip :       displaymatrix: rotation
 of 90.00 degrees
 05-13 22:49:32.181 27037 27037 I Baresip : Stream mapping:
 05-13 22:49:32.181 27037 27037 I Baresip :   Stream #0:0 -> #0:0 (rawvideo
 (native) -> mpeg4 (native))
 05-13 22:49:32.181 27037 27037 I Baresip : Output #0, mp4, to
 '/storage/emulated/0/Download/video.mp4':
 05-13 22:49:32.181 27037 27037 I Baresip :   Metadata:
 05-13 22:49:32.181 27037 27037 I Baresip :     encoder         :
 Lavf58.42.100
 05-13 22:49:32.181 27037 27037 I Baresip :     Stream #0:0: Video: mpeg4
 (mp4v / 0x7634706D), yuv420p, 720x1280, q=2-31, 200 kb/s, 10 fps, 10240
 tbn, 10 tbc
 05-13 22:49:32.181 27037 27037 I Baresip :     Metadata:
 05-13 22:49:32.181 27037 27037 I Baresip :       encoder         :
 Lavc58.78.102 mpeg4
 05-13 22:49:32.181 27037 27037 I Baresip :     Side data:
 05-13 22:49:32.181 27037 27037 I Baresip :       cpb: bitrate max/min/avg:
 0/0/200000 buffer size: 0 vbv_delay: N/A
 05-13 22:49:32.181 27037 27037 I Baresip :       displaymatrix: rotation
 of -0.00 degrees

 VLC shows portrait correctly, but landscape is rotated 90 clockwise
 degrees.

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


More information about the FFmpeg-trac mailing list