FWIW, from my experience:
My mobile phone wraps the files in .mp4 containers which support the rotation flag. For example a picture taken in portrait (phone held upright) mode will have the rotaion flag 90 degrees. Media info will however report it as 16:9, width 1920, height 1080. When the player recognizes the flag, it will display the picture upright, i.e. as 9:16. If the player does not recognize the flag or when the container is changed, the portrait picture will be displayed as a landscape picture with DAR 16:9. Also, the demuxed video stream will normally not keep the rotation info in its metadata; it's in the container only.
Hence in order to make it independent of the flags and container I always reencode the video with something like
Code:
ffmpeg.exe -i "source.mp4" -map 0 -c:a copy -c:v libx264 -preset medium -crf 18 -filter:v "scale=-2:1080, pad=1920:1080:(ow-iw)/2:(oh-ih)/2, setdar=16/9" "out.mp4"
Mobile phone files may have to be reencoded anyway as they are often VFR (variable frame rate) which most editors have problems with.