Sorry if this has an answer elsewhere - There’s a few topics I’ve found related to this but none with an answer my simple mind understands as to whether it’s fixable.
I have a load of ‘home videos’ taken on phones - some of which portrait or wrong orientation. Kodi used to sort this out (i guess it recognised the ‘tag’ from the phone somewhere) and they’d play the correct orientation but at some point (assume with an update) this stopped working. Portrait videos play flipped and squashed and rotating within Kodi doesn’t fix it. Landscape videos, if taken on the phone upside down, will play upside down. For what it’s worth the thumbnail extracted from the video displays correctly so it must know the orientation somewhere!
Is there a way to resolve this or did something change with the way it handles ‘incorrectly’ filmed videos from phones that is now unfixable?
Thanks.
I don’t know about RPi. We fixed this on Vero a while back but got a regression with the latest kernel which we’re working to fix. You could ask in the Kodi forum.
Bit of an old post but I have been having the same issue with my Vero V and Google Pixel videos recorded in Portrait mode.
They play in portrait but the video is displayed in landscape so they look really terrible.
The only way I have found to fix this is to:
- Use HandBrake (https://handbrake.fr/) to re-encode the video with “Dimensions → Rotation” set to 270 degrees. This makes the video landscape but rotated anticlockwise by 90 degrees
- I then used exiftool (https://exiftool.org/) to set the exif data on the video to rotation=90
./exiftool -rotation=90 "PXL_20250523.mp4" which then makes kodi rotate it 90degrees clockwise so it displays in portrait correctly.
Bit of a faff but it only takes a few minutes to re-encode them and it seems to have fixed my issues in Kodi and they still display correctly in Windows.
Hope this is useful to other people.