Videos from phone to KODI. Orientation problems.

I have recorded a video on my android phone while flipped horizontally. When it is played on KODI the film is viewed veritcally i.e. it needs to be rotated 90 degrees couter-clockwise.

Does anyone know how to rectify this?

Oddly, the film plays in the correct orientation in Windows media player. But in VLC and Quicktime it plays the same way that it does in KODI.

Thanks in advance.