Kodi Community Forum
How to retrieve width and height of the playing video ? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Service Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=152)
+---- Thread: How to retrieve width and height of the playing video ? (/showthread.php?tid=179018)



How to retrieve width and height of the playing video ? - Danatoth - 2013-11-26

Hello,

I'm currently writing a small addon/service and I need to find the width and height of the playing video.
In my xbmc.log, I can see this line :
Code:
20:50:16 T:2300  NOTICE:  fps: 23.976024, pwidth: 1280, pheight: 720, dwidth: 1280, dheight: 720
Is there any way with the python API to get these informations ?

I searched here but didn't find anything.
InfoTagVideo does not have these informations and RenderCapture.getWidth() and getHeight() gives the width and height you specify to capture() method.

Thanks!