code: def frameSize(self):
          
          size=None
          if self.isVideo():
              if self.__dict__['width'] and self.__dict__['height']:
                  try:
                      size=(int(self.__dict__['width']),int(self.__dict__['height']))
                  except Exception as e:
                      print "None integer size %s:%s" %(str(self.__dict__['width']),str(+self.__dict__['height']))
                      size=(0,0)
          return size
docs: Returns the pixel frame size as an integer tuple (width,height) if the stream is a video stream.
          Returns None if it is not a video stream.