Skip to content

Incorrect playback of rotated video

The file is a screen capture made on a mobile phone, 960*540 with a -90° rotation:

General
Complete name                            : SCR_20190420_154153.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/3gp4)
Overall bit rate                         : 2 220 kb/s

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Baseline@L3.1
Format settings                          : 1 Ref Frames
Format settings, CABAC                   : No
Format settings, Reference frames        : 1 frame
Format settings, GOP                     : M=1, N=30
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 1 min 26 s
Source duration                          : 1 min 26 s
Bit rate                                 : 2 096 kb/s
Width                                    : 960 pixels
Height                                   : 540 pixels
Display aspect ratio                     : 16:9
Rotation                                 : 90°
Frame rate mode                          : Variable
Frame rate                               : 29.970 (29970/1000) FPS
Minimum frame rate                       : 5.921 FPS
Maximum frame rate                       : 62.762 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.135
Stream size                              : 21.6 MiB (94%)
Source stream size                       : 21.6 MiB (94%)
Title                                    : VideoHandle
Language                                 : English
mdhd_Duration                            : 86343
Codec configuration box                  : avcC

Audio
ID                                       : 2
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 1 min 26 s
Bit rate mode                            : Constant
Bit rate                                 : 128 kb/s
Channel(s)                               : 1 channel
Channel layout                           : C
Sampling rate                            : 32.0 kHz
Frame rate                               : 31.250 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 1.29 MiB (6%)
Title                                    : SoundHandle
Language                                 : English

VLC is doing this, shifted to the right, not centered and cut on the right side and the bottom:

https://i.postimg.cc/NQvTbB85/Scr-Rec-VLC.png

Other players are playing it fine:

https://i.postimg.cc/ZJPNM2jj/Scr-Rec-MPV.png

Sample file: https://we.tl/t-5f1PIVPkHW

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information