Fixes #5250 and #3843. Gets dimensions, aspect ratio and orientation/rotation from source video track.