Kodi Community Forum
Auto rotate videos - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: Auto rotate videos (/showthread.php?tid=115427)



Auto rotate videos - acmay - 2011-11-25

I am new to looking at the xbmc code, but I submitted this patch to handle rotated iphone videos. It works fine for me, but I am not sure if it is all in the best spots.
http://trac.xbmc.org/ticket/12231

It would be nice to add a button to do this on the fly as well. To handle the cases were it can't be detected, or the camera is rotated while the movie is being recorded.

I would also like it to work with the hardware decoders too. The VDPAU docs sure don't seem to show they can do the flips in HW on the decode path.
There are bits to set on output surface render, but that doesn't seem to be used in the xbmc code.
Doxygen
With the current vdp decodes it looks like it would be possible to do the flips around the color conversion spots. But I don't know the APIs well enough to do it.


- Anastrophe - 2011-11-27

Thanks! (from an end-user perspective!)


- acmay - 2011-11-29

No problem. Glad to hear it works. What resolution are you videos?
Mine are 640x480 and I don't even notice a much extra load to do the flips even on my Atom/Ion machine.