Biodiesel processor through a polygeneration system produce oil-rich waste valorisation, and waste water, glycerol and extra biodiesel. It is integrated to a global wastes-to-oil separation unit. After the oil is separated, it is fed into the biodiesel processor to produce biofuel.